# JLSEC-2026-788: Buffer overflow in gawk's `readdir.c` can cause denial of service and possible code execution

- Severity: High 7.5 (CVSS:3.1, scored by Julia Security Advisories) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2026-07-25T03:14:11.289Z
- Modified: 2026-07-25T03:30:03.699Z
- Related: CVE-2026-40553

## 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 Julia Security Advisories.)

## Affected

- gawk_jll (Julia): before 5.4.1+0

## Every score

- Julia Security Advisories: 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`
- Julia Security Advisories: CVSS:4.0 `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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X`

## References

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

## Sources

- Julia Security Advisories: [JLSEC-2026-788](https://osv.dev/vulnerability/JLSEC-2026-788), CC-BY-4.0, modified 2026-07-25

---

Page: https://cve.day/JLSEC-2026-788 · Whole record: https://cve.day/JLSEC-2026-788.json · Rebuilt by cve.day 2026-11-25T22:56:26.237Z
