CVE-2026-40469: Heap buffer overflow in gawk

Published Jul 13, 2026
·
Updated

Integer overflow vulnerability has been found in "builtin.c" program file of gawk (dosub() 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.

Affected Software

10 affected componentsFixes available
gawk<=5.4.0
Fossies Gawk<=5.4.0
debian/gawk<=1:5.2.1-2, <=1:5.3.2-1
ubuntu/gawk<1:4.0.1+dfsg-2.1ubuntu2+esm2
1:4.0.1+dfsg-2.1ubuntu2+esm2
ubuntu/gawk<1:4.1.3+dfsg-0.1ubuntu0.1~esm2
1:4.1.3+dfsg-0.1ubuntu0.1~esm2
ubuntu/gawk<1:4.1.4+dfsg-1ubuntu0.1~esm2
1:4.1.4+dfsg-1ubuntu0.1~esm2
ubuntu/gawk<1:5.0.1+dfsg-1ubuntu0.1+esm1
1:5.0.1+dfsg-1ubuntu0.1+esm1
ubuntu/gawk<1:5.1.0-1ubuntu0.2
1:5.1.0-1ubuntu0.2
ubuntu/gawk<1:5.2.1-2ubuntu0.1
1:5.2.1-2ubuntu0.1
ubuntu/gawk<1:5.3.2-1ubuntu1.1
1:5.3.2-1ubuntu1.1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade ubuntu/gawk to a version that resolves this vulnerability.

    Fixed in 1:4.0.1+dfsg-2.1ubuntu2+esm2
  2. Upgrade

    Upgrade ubuntu/gawk to a version that resolves this vulnerability.

    Fixed in 1:4.1.3+dfsg-0.1ubuntu0.1~esm2
  3. Upgrade

    Upgrade ubuntu/gawk to a version that resolves this vulnerability.

    Fixed in 1:4.1.4+dfsg-1ubuntu0.1~esm2
  4. Upgrade

    Upgrade ubuntu/gawk to a version that resolves this vulnerability.

    Fixed in 1:5.0.1+dfsg-1ubuntu0.1+esm1
  5. Upgrade

    Upgrade ubuntu/gawk to a version that resolves this vulnerability.

    Fixed in 1:5.1.0-1ubuntu0.2
  6. Upgrade

    Upgrade ubuntu/gawk to a version that resolves this vulnerability.

    Fixed in 1:5.2.1-2ubuntu0.1
  7. Upgrade

    Upgrade ubuntu/gawk to a version that resolves this vulnerability.

    Fixed in 1:5.3.2-1ubuntu1.1

Event History

Jul 13, 2026
CVE Published
via MITRE·12:07 PM
Data Sourced
via MITRE·12:07 PM
DescriptionWeakness
Data Sourced
via OSV·12:07 PM
DescriptionSeverityWeakness
Data Sourced
via Red Hat·01:01 PM
DescriptionSeverityAffected Software
Data Sourced
via NVD·01:16 PM
DescriptionSeverityWeakness
Jul 14, 2026
Data Sourced
via NVD·01:11 AM
RemedyAffected Software
Updated
via NVD·01:11 AM
Severity
Nov 24, 2026
Data Sourced
via OSV·02:55 PM
Affected Software

Frequently Asked Questions

1

What is the severity of CVE-2026-40469?

CVE-2026-40469 has a medium severity rating of 5.1 according to the CVSS.

2

How does CVE-2026-40469 affect gawk?

CVE-2026-40469 affects 32-bit builds of gawk version 5.4.0 and below, allowing an integer overflow that can overwrite heap metadata.

3

How do I fix CVE-2026-40469?

To mitigate CVE-2026-40469, upgrade gawk to a version above 5.4.0 or apply relevant patches.

4

What type of vulnerability is CVE-2026-40469?

CVE-2026-40469 is classified as an integer overflow vulnerability leading to a heap buffer overflow.

5

What component of gawk is affected by CVE-2026-40469?

CVE-2026-40469 specifically affects the 'builtin.c' program file in the do_sub() routine of gawk.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203