CVE-2026-40469
published medium CVSS 4.0 · 5.1Heap buffer overflow in gawk
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| GNU | — | gawk0 through 5.4.0 · Other versions: unaffected · Platforms: 32 bit | Affected | Not stated | CERT-PL |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Ubuntu | bionic | gawk | Advisory build | 1:4.1.4+dfsg-1ubuntu0.1~esm2 | USN-8588-1 |
| Ubuntu | focal | gawk | Advisory build | 1:5.0.1+dfsg-1ubuntu0.1+esm1 | USN-8588-1 |
| Ubuntu | jammy | gawk | Advisory build | 1:5.1.0-1ubuntu0.2 | USN-8588-1 |
| Ubuntu | noble | gawk | Advisory build | 1:5.2.1-2ubuntu0.1 | USN-8588-1 |
| Ubuntu | resolute | gawk | Advisory build | 1:5.3.2-1ubuntu1.1 | USN-8588-1 |
Show 2 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Ubuntu | trusty | gawk | Advisory build | 1:4.0.1+dfsg-2.1ubuntu2+esm2 | USN-8588-1 |
| Ubuntu | xenial | gawk | Advisory build | 1:4.1.3+dfsg-0.1ubuntu0.1~esm2 | USN-8588-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 5.1 / 10
- Severity
- medium
- Provider
- CERT-PL · cna
- Vector string
- 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
- Scenarios
- en: GENERAL
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| GNU | gawk | 0 through 5.4.0 (affected · semver)Default: unaffected | CERT-PL · cna |
Weaknesses
1- CWE-190 CWE-190 Integer Overflow or Wraparound
References
2Provider assertions
2CERT-PL · cna
Heap buffer overflow in gawk
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 926408529dc9c3c2047917060fdcbef0fc70cf27e06126134dd41c8779c9d3e9
- Ingested
- 23 Sep 2026, 09:13:21 UTC
- Source record
- Official CVE record