cve.bz

CVE-2026-40553 fossies gawk: Stack-based Buffer Overflow

5.1 mediumEPSS 0.3%Fix available

Medium (5.1) in fossies gawk. EPSS 0.3% estimated probability of exploitation activity in the next 30 days.

On this page
Buffer overflow vulnerability has been found in "extension/readdir.c" program file of gawk (ftype() routine). This issue could be used to crash the program and potentially to achieve code execution, although the latter has not been confirmed to be feasible. It affects gawk in versions 5.4.0 and below.

Severity

CVSS 4.0

5.1 medium
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:L/SC:L/SI:L/SA:L

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
0.3% (unchanged from 0.3% a week ago; 0.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 22nd percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2026-07-13. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-121 Stack-based Buffer Overflow
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-40553 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-40553?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-40553?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-40553 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
GNU gawkthrough 5.4.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14gawkno fix listedDEBIAN-CVE-2026-40553
Ubuntu22.04:LTSgawk1:5.1.0-1ubuntu0.2USN-8588-1
Ubuntu24.04:LTSgawk1:5.2.1-2ubuntu0.1USN-8588-1
Ubuntu26.04:LTSgawk1:5.3.2-1ubuntu1.1UBUNTU-CVE-2026-40553 USN-8588-1
UbuntuPro:14.04:LTSgawk1:4.0.1+dfsg-2.1ubuntu2+esm2USN-8588-1
UbuntuPro:16.04:LTSgawk1:4.1.3+dfsg-0.1ubuntu0.1~esm2USN-8588-1
UbuntuPro:18.04:LTSgawk1:4.1.4+dfsg-1ubuntu0.1~esm2USN-8588-1
UbuntuPro:20.04:LTSgawk1:5.0.1+dfsg-1ubuntu0.1+esm1USN-8588-1
Red Hatenterprise_linux:9::appstreamgawk-debuginfo, gawk-debugsource, gawk-all-langpacks0:5.1.0-6.el9_8.1RHSA-2026:73512
Red Hatenterprise_linux:9::baseosgawk, gawk-debuginfo, gawk-debugsource0:5.1.0-6.el9_8.1RHSA-2026:73512
Red Hatenterprise_linux:10.2gawk, gawk-debuginfo, gawk-debugsource and 1 more0:5.3.0-6.el10_2.1RHSA-2026:73429
Red Hathummingbird:1gawk, gawk-doc, gawk-devel and 1 more0:5.4.0-3.1.hum1RHSA-2026:40041
Red Hathummingbird:1gawk, gawk-doc, gawk-devel and 1 more0:5.4.1-1.hum1RHSA-2026:49661
SUSELinux Enterprise Micro 5.3, Linux Enterprise Micro 5.4, Linux Enterprise Micro 5.5 and 1 moregawk4.2.1-150000.3.6.1SUSE-SU-2026:3455-1
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0gawk5.3.2-160000.3.1SUSE-SU-2026:22831-1
SUSELinux Micro 6.0gawk5.3.0-2.1SUSE-SU-2026:23042-1
SUSELinux Micro 6.2gawk5.3.2-160000.3.1SUSE-SU-2026:22767-1
openSUSELeap 16.0gawk5.3.2-160000.3.1openSUSE-SU-2026:21393-1
AlmaLinux9gawk, gawk-all-langpacks5.1.0-6.el9_8.1ALSA-2026:73512
AlmaLinux10gawk, gawk-all-langpacks5.3.0-6.el10_2.1ALSA-2026:73429
Rocky Linux9gawk0:5.1.0-6.el9_8.1RLSA-2026:73512
Rocky Linux10gawk0:5.3.0-6.el10_2.1RLSA-2026:73429
Azure Linux3gawk5.2.2-2AZL-92283
Alpaquita23gawk5.1.1-r2BELL-CVE-2026-40553
Alpaquita25, streamgawk5.3.2-r3BELL-CVE-2026-40553
BellSoft Hardened Containers23gawk5.1.1-r2BELL-CVE-2026-40553
BellSoft Hardened Containers25, streamgawk5.3.2-r3BELL-CVE-2026-40553

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpaquita · BellSoft Hardened Containers.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

Moderate: A buffer overflow in gawk's `ftype()` routine, when processing untrusted input, could lead to a denial of service or potentially arbitrary code execution. This is rated Moderate as successful exploitation requires user interaction, such as processing a specially crafted file.

Red Hat's mitigation

Do not run gawk against untrusted scripts, files, or directories to prevent triggering these vulnerabilities. If an attack is attempted, Red Hat's built-in memory protections will safely crash the program, preventing malicious code execution.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10gawk-0:5.3.0-6.el10_2.1Fixed 2026-09-29RHSA-2026:73429
Red Hat Enterprise Linux 9gawk-0:5.1.0-6.el9_8.1Fixed 2026-09-29RHSA-2026:73512
Red Hat Cost Management On-Premise 1costmanagement/costmanagement-ui-rhel10:1791460851Fixed 2026-10-08RHSA-2026:79357
Red Hat Hardened Imagesgawk-main-5.4.0-3.1.hum1Fixed 2026-07-15RHSA-2026:40041
Red Hat Hardened Imagesgawk-main-5.4.1-1.hum1Fixed 2026-08-03RHSA-2026:49661
Red Hat Update Infrastructure 5rhui5/cds-kubernetes-rhel9:1791978534Fixed 2026-10-14RHSA-2026:82939
Red Hat Update Infrastructure 5rhui5/cds-rhel9:1791978528Fixed 2026-10-14RHSA-2026:82939
Red Hat Update Infrastructure 5rhui5/haproxy-rhel9:1791978528Fixed 2026-10-14RHSA-2026:82939
Red Hat Update Infrastructure 5rhui5/installer-rhel9:1791964013Fixed 2026-10-14RHSA-2026:82939
Red Hat Update Infrastructure 5rhui5/rhua-rhel9:1791978693Fixed 2026-10-14RHSA-2026:82939
Red Hat Enterprise Linux 6gawkOut of support scope
Red Hat Enterprise Linux 7gawkNot affected
Red Hat Enterprise Linux 8gawkNot affected
Red Hat OpenShift Container Platform 4openshift/ose-rhel-coreos-8Not affected
Red Hat OpenShift Container Platform 4openshift/ose-rhel-coreos-9Not affected
Red Hat OpenShift Container Platform 5openshift/ose-rhel-coreos-9Not affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-40553.

References

Check your stackJSON