CVE-2026-40553

Stack-based buffer overflow in gawk

State
Published
Severity
5.1 Medium
Published
Jul 13, 2026
Updated
Jul 13, 2026
Reserved
Apr 14, 2026

Read the record on cve.org

Description

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.

Scores

CVSSScoreVectorSource
4.05.1 MediumCVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:L/SC:L/SI:L/SA:LCERT-PL

Weaknesses

  • CWE-121 Stack-based Buffer Overflow

Affected Products

ProductVersions
gawkGNU
  • 5.4.0 and earlierAffected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.