Skip to content
OpenAdvisories
Medium · 5.1 CVE-2026-40469 EUVD-2026-43494GHSA-5x2x-26c9-4q5x

Heap buffer overflow in gawk

Published Jul 13, 2026 · Updated Jul 13, 2026 · Assigned by CERT-PL

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.

Affected products

VendorProductAffectedFixed
GNU gawk ≤ 5.4.0 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 gawk No fix yet —
Debian 13 gawk No fix yet —
Debian 12 gawk No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.04 LTS gawk 1:5.3.2-1ubuntu1.1 USN-8588-1
Ubuntu 24.04 LTS gawk 1:5.2.1-2ubuntu0.1 USN-8588-1
Ubuntu 22.04 LTS gawk 1:5.1.0-1ubuntu0.2 USN-8588-1
Show 4 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 20.04 LTS gawk 1:5.0.1+dfsg-1ubuntu0.1+esm1 USN-8588-1
Ubuntu Pro 18.04 LTS gawk 1:4.1.4+dfsg-1ubuntu0.1~esm2 USN-8588-1
Ubuntu Pro 16.04 LTS gawk 1:4.1.3+dfsg-0.1ubuntu0.1~esm2 USN-8588-1
Ubuntu Pro 14.04 LTS gawk 1:4.0.1+dfsg-2.1ubuntu2+esm2 USN-8588-1
ReleasePackageFixed inAdvisory
Red Hat Hardened Images 1 gawk +3 5.4.0-3.1.hum1 RHSA-2026:49661, RHSA-2026:40041

Advisories 3

References