Skip to content
Vulnerabilities in GNU gawk software

Vulnerabilities in GNU gawk software

Cert.Pl • July 13, 2026

CERT Polska has received a report vulnerabilities in GNU gawk software and participated in coordination of their disclosure.

The vulnerability CVE-2026-40467 : Use After Free vulnerability has been found in io.c program file of gawk ( do_getline_redir() routine). This issue may lead to a crash.

The vulnerability CVE-2026-40468 : Integer overflow vulnerability has been found in builtin.c program file of gawk. This issue may lead to memory exhaustion on the hosting operating system and could be used to overwrite gawk heap metadata and objects with attacker-controlled bytes.

The vulnerability CVE-2026-40469 : Integer overflow vulnerability has been found in builtin.c program file of gawk ( do_sub() routine). This issue could be used to overwrite gawk heap metadata and objects causing the program to crash. It affects 32-bit builds of gawk.

The vulnerability CVE-2026-40553 : Buffer overflow vulnerability has been found in extension/readdir.c program file of gawk ( ftype() routine). This issue could be used to crash the program and potentially to achieve code execution, although the latter has not been confirmed to be feasible.

These vulnerabilities were fixed in release 5.4.1 of gawk.

We thank Michał Majchrowicz and Marcin Wyczechowski (AFINE) for the responsible vulnerability report.