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

CVE-2026-40467Use after free in gawk

Medium 5.1

In plain English

A medium-severity use-after-free in gawk from GNU. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 12% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 4.0)5.1Medium
Exploit odds (30 days)0.2%top 88.3% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

Use After Free vulnerability has been found in "io.c" program file of gawk (do_getline_redir() routine). This issue may lead to a crash. It affects gawk in versions 5.4.0 and below.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:10gawk5.3.0-6.el10_2.1ALSA-2026:73429
AlmaLinux:8gawk4.2.1-5.el8_10ALSA-2026:73511
AlmaLinux:9gawk5.1.0-6.el9_8.1ALSA-2026:73512
AlmaLinux:10gawk-all-langpacks5.3.0-6.el10_2.1ALSA-2026:73429
AlmaLinux:9gawk-all-langpacks5.1.0-6.el9_8.1ALSA-2026:73512
Debian:12gawkno fix listedDEBIAN-CVE-2026-40467
Debian:13gawkno fix listedDEBIAN-CVE-2026-40467
Debian:14gawkno fix listedDEBIAN-CVE-2026-40467
Rocky Linux:10gawk0:5.3.0-6.el10_2.1RLSA-2026:73429
Rocky Linux:8gawk0:4.2.1-5.el8_10RLSA-2026:73511
Rocky Linux:9gawk0:5.1.0-6.el9_8.1RLSA-2026:73512
Ubuntu:22.04:LTSgawk1:5.1.0-1ubuntu0.2USN-8588-1
Ubuntu:22.04:LTSgawk1:5.1.0-1ubuntu0.2UBUNTU-CVE-2026-40467
Ubuntu:24.04:LTSgawk1:5.2.1-2ubuntu0.1USN-8588-1
Ubuntu:24.04:LTSgawk1:5.2.1-2ubuntu0.1UBUNTU-CVE-2026-40467
Ubuntu:26.04:LTSgawk1:5.3.2-1ubuntu1.1UBUNTU-CVE-2026-40467
Ubuntu:26.04:LTSgawk1:5.3.2-1ubuntu1.1USN-8588-1

Affected products (as reported)

VendorProductVersions
GNU gawk 0 – through 5.4.0

Weakness: CWE-416 · Vector: CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N

References