CVE-2026-40468: Heap buffer overflow in gawk
Vulnerability summary
CVE-2026-40468 is a critical (CVSS 9.1) Integer Overflow or Wraparound vulnerability in fossies gawk. EPSS estimates a 0.20% chance of exploitation in the next 30 days, higher than 10.5% of scored vulnerabilities.
Not severe (CVSS 2.1, local access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 12 · Related 6Timeline
- 13-07-2026PublishedVulnerability first disclosed.
- 13-07-2026Last modifiedVulnerability information updated.
Description
Integer overflow vulnerability has been found in "builtin.c" program file of gawk. This issue may lead to memory exhaustion on the hosting operating system and could be used to overwrite gawk heap metadata and objects with attacker-controlled bytes. It affects gawk in versions 5.4.0 and below.
CVSS metrics
6 scores · 4 sources · 2 versions- OSV · UbuntuEcosystem advisory · calculated2.1LowCVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:L
- NVDNIST2.1LowCVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/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
- OSV · UbuntuEcosystem advisory · calculated9.1CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
- OSV · DebianEcosystem advisory · calculated9.1CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
EPSS trend
Probability
0.20%
Chance of exploitation in the next 30 days
Percentile
11%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.20% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: local access, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Debian1 product
- gawkAll versions (No fix recorded)
Fossies1 product
- gawk≤ 5.4.0
Gnu1 product
- gawk≤ 5.4.0
Suse1 product
- gawk&distro=SUSE Linux Enterprise Server LTSS Extended Security 12 SP5< 4.1.0-5.6.1
Ubuntu1 product
- gawk< 1:4.0.1+dfsg-2.1ubuntu2+esm2 | < 1:4.1.3+dfsg-0.1ubuntu0.1~esm2 | < 1:4.1.4+dfsg-1ubuntu0.1~esm2 | < 1:5.0.1+dfsg-1ubuntu0.1+esm1 | < 1:5.1.0-1ubuntu0.2 | < 1:5.2.1-2ubuntu0.1 | < 1:5.3.2-1ubuntu1.1
5 vendors · 5 products
References
10 links- cert.pl/en/posts/2026/07/CVE-2026-40467Third Party Advisory