# JLSEC-2026-787: Integer overflow in gawk's `do_sub()` can cause buffer overflow and denial of service

- Severity: Critical 9.1 (CVSS:3.1, scored by Julia Security Advisories) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/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.667Z
- Related: CVE-2026-40469

## Description

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 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 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H`
- Julia Security Advisories: CVSS:4.0 `CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/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=ae1b2d508f46913269a9e62aceda3636afe8147b> (web)

## Sources

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

---

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