CVEfocus › CVE database › CVE-2026-40553

CVE-2026-40553Stack-based buffer overflow in gawk

CVSS 5.1 MediumEPSS 0.5% (higher than 32% of CVEs)Published 2026-07-13Updated 2026-07-13Assigner: CERT-PL

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.

CWE-121

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 has 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

11Fixed
3Fix pending
1Will not fix
4Not affected

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04gawkFixed1:5.3.2-1ubuntu1.1UBUNTU-CVE-2026-40553
Ubuntu 24.04gawkNot affected
vulnerable_code_not_present
Ubuntu 22.04gawkNot affected
vulnerable_code_not_present
Debian 14gawkFix pendingDEBIAN-CVE-2026-40553
Debian 13gawkFix pendingDEBIAN-CVE-2026-40553
Debian 12gawkFix pendingDEBIAN-CVE-2026-40553
Red Hat Enterprise Linux 10gawkFixed0:5.3.0-6.el10_2.1RHSA-2026:73429
Red Hat Enterprise Linux 10gawk-all-langpacksFixed0:5.3.0-6.el10_2.1RHSA-2026:73429
Red Hat Enterprise Linux 9gawkFixed0:5.1.0-6.el9_8.1RHSA-2026:73512
Red Hat Enterprise Linux 9gawk-all-langpacksFixed0:5.1.0-6.el9_8.1RHSA-2026:73512
Red Hat Enterprise Linux 8gawkNot affected
Red Hat Enterprise Linux 7gawkNot affected
Red Hat Enterprise Linux 6gawkWill not fix
Out of support scope
AlmaLinux 10gawkFixed5.3.0-6.el10_2.1ALSA-2026:73429
AlmaLinux 10gawk-all-langpacksFixed5.3.0-6.el10_2.1ALSA-2026:73429
AlmaLinux 9gawkFixed5.1.0-6.el9_8.1ALSA-2026:73512
AlmaLinux 9gawk-all-langpacksFixed5.1.0-6.el9_8.1ALSA-2026:73512
Rocky Linux 10gawkFixed0:5.3.0-6.el10_2.1RLSA-2026:73429
Rocky Linux 9gawkFixed0:5.1.0-6.el9_8.1RLSA-2026:73512

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.

Vendor advisories:

References

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.