# CVE-2026-40553: Stack-based buffer overflow in gawk

- Severity: Medium 5.1 (CVSS:4.0, scored by CERT-PL) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.29%, higher than 23% of CVEs (2026-12-01)
- Published: 2026-07-13T12:07:56.611Z
- Modified: 2026-10-24T22:10:00.210Z
- Weaknesses: CWE-121
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: CERT-PL

## 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.

(As written by CVE List.)

## Affected

- GNU gawk: up to 5.4.0
- fossies gawk: up to 5.4.0

## Every score

- CERT-PL: CVSS:4.0 5.1 Medium `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`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://cgit.git.savannah.gnu.org/cgit/gawk.git/commit/?id=cca0366144336b49aaa7d5d949966ce8e2c70843> (patch)
- <https://cert.pl/en/posts/2026/07/CVE-2026-40467> (third-party-advisory)

## Sources

- CVE List: [CVE-2026-40553](https://www.cve.org/CVERecord?id=CVE-2026-40553), CVE Terms of Use, modified 2026-07-13
- NVD: [CVE-2026-40553](https://nvd.nist.gov/vuln/detail/CVE-2026-40553), Public domain, modified 2026-10-24

---

Page: https://cve.day/CVE-2026-40553 · Whole record: https://cve.day/CVE-2026-40553.json · Rebuilt by cve.day 2026-11-25T22:59:27.831Z
