CVE-2026-40468Heap buffer overflow in gawk
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.
What to do
Fixed builds are available from AlmaLinux, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.
Debian, Red Hat, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.04 | gawk | Fixed | 1:5.3.2-1ubuntu1.1 | UBUNTU-CVE-2026-40468 |
| Ubuntu 24.04 | gawk | Fixed | 1:5.2.1-2ubuntu0.1 | UBUNTU-CVE-2026-40468 |
| Ubuntu 22.04 | gawk | Fixed | 1:5.1.0-1ubuntu0.2 | UBUNTU-CVE-2026-40468 |
| Ubuntu 20.04 | gawk | Fix pending | 1:5.0.1+dfsg-1ubuntu0.1+esm1 (Ubuntu Pro) | UBUNTU-CVE-2026-40468 |
| Ubuntu 18.04 | gawk | Fix pending | 1:4.1.4+dfsg-1ubuntu0.1~esm2 (Ubuntu Pro) | UBUNTU-CVE-2026-40468 |
| Ubuntu 16.04 | gawk | Fix pending | 1:4.1.3+dfsg-0.1ubuntu0.1~esm2 (Ubuntu Pro) | UBUNTU-CVE-2026-40468 |
| Ubuntu 14.04 | gawk | Fix pending | 1:4.0.1+dfsg-2.1ubuntu2+esm2 (Ubuntu Pro) | UBUNTU-CVE-2026-40468 |
| Debian 14 | gawk | Fix pending | DEBIAN-CVE-2026-40468 | |
| Debian 13 | gawk | Fix pending | DEBIAN-CVE-2026-40468 | |
| Debian 12 | gawk | Fix pending | DEBIAN-CVE-2026-40468 | |
| Red Hat Enterprise Linux 10 | gawk | Fixed | 0:5.3.0-6.el10_2.1 | RHSA-2026:73429 |
| Red Hat Enterprise Linux 10 | gawk-all-langpacks | Fixed | 0:5.3.0-6.el10_2.1 | RHSA-2026:73429 |
| Red Hat Enterprise Linux 9 | gawk | Fixed | 0:5.1.0-6.el9_8.1 | RHSA-2026:73512 |
| Red Hat Enterprise Linux 9 | gawk-all-langpacks | Fixed | 0:5.1.0-6.el9_8.1 | RHSA-2026:73512 |
| Red Hat Enterprise Linux 8 | gawk | Fixed | 0:4.2.1-5.el8_10 | RHSA-2026:73511 |
| Red Hat Enterprise Linux 7 | gawk | Fix pending Affected | ||
| Red Hat Enterprise Linux 6 | gawk | Will not fix Out of support scope | ||
| AlmaLinux 10 | gawk | Fixed | 5.3.0-6.el10_2.1 | ALSA-2026:73429 |
| AlmaLinux 10 | gawk-all-langpacks | Fixed | 5.3.0-6.el10_2.1 | ALSA-2026:73429 |
| AlmaLinux 9 | gawk | Fixed | 5.1.0-6.el9_8.1 | ALSA-2026:73512 |
| AlmaLinux 9 | gawk-all-langpacks | Fixed | 5.1.0-6.el9_8.1 | ALSA-2026:73512 |
| AlmaLinux 8 | gawk | Fixed | 4.2.1-5.el8_10 | ALSA-2026:73511 |
| Rocky Linux 10 | gawk | Fixed | 0:5.3.0-6.el10_2.1 | RLSA-2026:73429 |
| Rocky Linux 9 | gawk | Fixed | 0:5.1.0-6.el9_8.1 | RLSA-2026:73512 |
| Rocky Linux 8 | gawk | Fixed | 0:4.2.1-5.el8_10 | RLSA-2026:73511 |
What the vendor says
As published in the CVE record by CERT-PL, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- GNU gawk: affected: up to 5.4.0
Vendor advisories:
References
- https://cgit.git.savannah.gnu.org/cgit/gawk.git/commit/?id=062f2f2581b991362c046f7f2e238ffa34e6f8c7
- https://cert.pl/en/posts/2026/07/CVE-2026-40467
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.