Vulnerabilities / CVE-2026-40468

critical

CVE-2026-40468

gawk: gawk: Memory corruption via integer overflow

Published Modified CWE 190
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

NVD9.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
Red Hat4.4CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L
Julia2.1CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:L

Trivy's own label is CRITICAL. Rated critical by NVD, Photon OS. Rated lower by Amazon (high), Red Hat (medium), AlmaLinux (medium), Oracle (medium), Rocky Linux (medium), Ubuntu (medium), Azure Linux (low), Julia (low).

Description

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.

Affected packages and fixed versions

SourcePackageFixed in
Photon OS 5.0gawk, gawk-all-langpacks, gawk-bin and 3 more5.3.2-5.ph5
alma 10gawk, gawk-all-langpacks5.3.0-6.el10_2.1
alma 8gawk4.2.1-5.el8_10
alma 9gawk, gawk-all-langpacks5.1.0-6.el9_8.1
amazon linux 2023gawk, gawk-all-langpacks, gawk-debuginfo and 3 more5.1.0-3.amzn2023.0.4
Azure Linux 3.0gawk0:5.2.2-2.azl3
debian 11gawkno fix listed
debian 12gawkno fix listed
debian 13gawkno fix listed
debian 14gawkno fix listed
echogawk1:5.2.1-2+e1
julia::Julia Ecosystem Security Advisoriesgawk_jll5.4.1+0
Show all 88 entries from 46 sources
SourcePackageFixed in
Photon OS 5.0gawk5.3.2-5.ph5
Photon OS 5.0gawk-all-langpacks5.3.2-5.ph5
Photon OS 5.0gawk-bin5.3.2-5.ph5
Photon OS 5.0gawk-devel5.3.2-5.ph5
Photon OS 5.0gawk-doc5.3.2-5.ph5
Photon OS 5.0gawk-extras5.3.2-5.ph5
alma 10gawk5.3.0-6.el10_2.1
alma 10gawk-all-langpacks5.3.0-6.el10_2.1
alma 8gawk4.2.1-5.el8_10
alma 9gawk5.1.0-6.el9_8.1
alma 9gawk-all-langpacks5.1.0-6.el9_8.1
amazon linux 2023gawk5.1.0-3.amzn2023.0.4
amazon linux 2023gawk-all-langpacks5.1.0-3.amzn2023.0.4
amazon linux 2023gawk-debuginfo5.1.0-3.amzn2023.0.4
amazon linux 2023gawk-debugsource5.1.0-3.amzn2023.0.4
amazon linux 2023gawk-devel5.1.0-3.amzn2023.0.4
amazon linux 2023gawk-doc5.1.0-3.amzn2023.0.4
Azure Linux 3.0gawk0:5.2.2-2.azl3
debian 11gawkno fix listed
debian 12gawkno fix listed
debian 13gawkno fix listed
debian 14gawkno fix listed
echogawk1:5.2.1-2+e1
julia::Julia Ecosystem Security Advisoriesgawk_jll5.4.1+0
Oracle Linux 8gawk4.2.1-5.el8_10
Oracle Linux 9gawk5.1.0-6.el9_8.1
Oracle Linux 9gawk-all-langpacks5.1.0-6.el9_8.1
rapidfort alma 10gawk0:5.3.0-6.el10_2.1
rapidfort alma 10gawk-all-langpacks5.3.0-6.el10_2.1
rapidfort alma 9gawk0:5.1.0-6.el9_8.1
rapidfort alma 9gawk-all-langpacks5.1.0-6.el9_8.1
rapidfort alpine 3.20gawkno fix listed
rapidfort alpine 3.21gawkno fix listed
rapidfort alpine 3.22gawkno fix listed
rapidfort alpine 3.23gawkno fix listed
rapidfort alpine 3.24gawkno fix listed
rapidfort amazon linux 2023gawk0:5.1.0-3.amzn2023.0.4
rapidfort amazon linux 2023gawk-all-langpacks5.1.0-3.amzn2023.0.4
rapidfort amazon linux 2023gawk-devel5.1.0-3.amzn2023.0.4
rapidfort amazon linux 2023gawk-doc5.1.0-3.amzn2023.0.4
rapidfort amazon linux 2023rf-gawk0:5.1.0-3.amzn2023.0.4
rapidfort amazon linux 2023rf-gawk-all-langpacks5.1.0-3.amzn2023.0.4
rapidfort amazon linux 2023rf-gawk-devel5.1.0-3.amzn2023.0.4
rapidfort amazon linux 2023rf-gawk-doc5.1.0-3.amzn2023.0.4
rapidfort debian 12gawkno fix listed
rapidfort debian 13gawkno fix listed
rapidfort fedora 41gawk0:5.3.0-5.fc41
rapidfort fedora 41rf-gawk0:5.3.0-5.fc41
rapidfort fedora 43gawk0:5.3.2-3.fc43
rapidfort fedora 43gawk-all-langpacks5.3.2-3.fc43
rapidfort fedora 43gawk-devel5.3.2-3.fc43
rapidfort fedora 43gawk-doc5.3.2-3.fc43
rapidfort fedora 43rf-gawk0:5.3.2-3.fc43
rapidfort fedora 43rf-gawk-all-langpacks5.3.2-3.fc43
rapidfort fedora 43rf-gawk-devel5.3.2-3.fc43
rapidfort fedora 43rf-gawk-doc5.3.2-3.fc43
rapidfort Oracle Linuxrf-gawk0:5.4.1-10.rf, 5.4.1-10.rf
rapidfort Oracle Linuxrf-gawk-all-langpacks5.4.1-10.rf
rapidfort Oracle Linuxrf-gawk-devel5.4.1-10.rf
rapidfort Oracle Linuxrf-gawk-doc5.4.1-10.rf
rapidfort Oracle Linux 10gawk0:5.3.0-6.el10_2.1
rapidfort Oracle Linux 10gawk-all-langpacks0:5.3.0-6.el10_2.1
rapidfort Oracle Linux 9gawk0:5.1.0-6.el9_8.1
rapidfort Oracle Linux 9gawk-all-langpacks0:5.1.0-6.el9_8.1
rapidfort Red Hat 10gawk0:5.3.0-6.el10_2.1
rapidfort Red Hat 10rf-gawk0:5.3.0-6.el10_2.1
rapidfort rockyrf-gawk0:5.4.1-10.rf
rapidfort rockyrf-gawk-all-langpacks0:5.4.1-10.rf
rapidfort rocky 9gawk0:5.1.0-6.el9_8.1
rapidfort rocky 9gawk-all-langpacks0:5.1.0-6.el9_8.1
rapidfort ubuntu 20.04gawk1:5.1.0-1ubuntu0.2, 1:5.2.1-2ubuntu0.1, 1:5.3.2-1ubuntu1.1
rapidfort ubuntu 22.04gawk1:5.1.0-1ubuntu0.2, 1:5.2.1-2ubuntu0.1, 1:5.3.2-1ubuntu1.1
rapidfort ubuntu 24.04gawk1:5.1.0-1ubuntu0.2, 1:5.2.1-2ubuntu0.1, 1:5.3.2-1ubuntu1.1
Red Hatgawkno fix listed
Red Hatopenshift/ose-rhel-coreos-8no fix listed
Red Hatopenshift/ose-rhel-coreos-9no fix listed
rocky 10gawk5.3.0-6.el10_2.1
rocky 8gawk4.2.1-5.el8_10
rocky 9gawk5.1.0-6.el9_8.1
seal Red Hat 7gawk4.0.2-4.el7_3.1+sp999
seal Red Hat 7seal-gawk4.0.2-4.el7_3.1+sp999
seal Red Hat 9gawk5.1.0-6.el9+sp999
seal Red Hat 9seal-gawk5.1.0-6.el9+sp999
ubuntu 18.04-ESMgawk1:4.1.4+dfsg-1ubuntu0.1~esm2
ubuntu 20.04-ESMgawk1:5.0.1+dfsg-1ubuntu0.1+esm1
ubuntu 22.04gawk1:5.1.0-1ubuntu0.2
ubuntu 24.04gawk1:5.2.1-2ubuntu0.1
ubuntu 26.04gawk1:5.3.2-1ubuntu1.1

References

All 21 references

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.