CVE-2026-40553: "extension/readdir.c" program file of gawk (ftype() · Buffer Overflow Vulnerability Has Been Found
Affects gawkSource GCVE Database
Not known to be exploited · CVSS 5.1 Medium.
Data as of 26 Oct 2026, 10:12 UTC
- EPSS
- 0.2% chance of exploitation in 30 days – higher than 21% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:L/SC:L/SI:L/SA:LExploitation evidence
Disclosed: evidence found.
CVE published 13 Jul 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 26.04 LTSgawkpkg:deb/ubuntu/gawk@1:5.3.2-1ubuntu1?arch=source&distro=resoluteOther threats | Affected
| Fixed in– |
Ubuntu 24.04 LTSgawkpkg:deb/ubuntu/gawk@1:5.2.1-2build3?arch=source&distro=nobleOther threats | Affected
| Fixed in– |
Ubuntu 22.04 LTSgawkpkg:deb/ubuntu/gawk@1:5.1.0-1ubuntu0.1?arch=source&distro=jammyOther threats | Affected
| Fixed in– |
Ubuntu 20.04 LTSgawkpkg:deb/ubuntu/gawk@1:5.0.1+dfsg-1ubuntu0.1?arch=source&distro=focalOther threats | Affected
| Fixed in– |
Ubuntu Pro 18.04 LTSgawkpkg:deb/ubuntu/gawk@1:4.1.4+dfsg-1ubuntu0.1~esm1?arch=source&distro=esm-infra/bionicOther threats | Affected
| Fixed in– |
Ubuntu Pro 16.04 LTSgawkpkg:deb/ubuntu/gawk@1:4.1.3+dfsg-0.1ubuntu0.1~esm1?arch=source&distro=esm-infra/xenialOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Until a fix is available, cautious use or avoidance of affected gawk versions is advised.
Description
A buffer overflow vulnerability exists in the ftype() routine of the extension/readdir.c file in gawk versions 5.4.0 and below. This flaw can cause the program to crash and may potentially allow code execution, although code execution feasibility has not been confirmed. The vulnerability affects multiple specific builds of gawk up to version 5.4.0.