CVE-2026-40553 PUBLISHED

Stack-based buffer overflow in gawk

Assigner: CERT-PL
Reserved: 14.04.2026 Published: 13.07.2026 Updated: 13.07.2026

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. It affects gawk in versions 5.4.0 and below.

Metrics

CVSS Vector: CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:L/SC:L/SI:L/SA:L
CVSS Score: 5.1

Product Status

Vendor GNU
Product gawk
Versions Default: unaffected
  • affected from 0 to 5.4.0 (incl.)

Credits

  • Michał Majchrowicz (AFINE) finder
  • Marcin Wyczechowski (AFINE) finder

References

Problem Types

  • CWE-121 Stack-based Buffer Overflow CWE