CVE-2026-40467

Use after free in gawk

Published Jul 13, 2026 CVSS 4.0 · 5.1 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

A Use-After-Free flaw was identified in the do_getline_redir() routine of gawk’s io.c file. The vulnerability can cause the program to terminate unexpectedly, resulting in a denial-of-service condition. This weakness is classified as CWE-416.

Affected Systems

GNU gawk versions 5.4.0 and earlier are affected. No specific fixed release is listed in the CVE data; users must seek an updated release or apply the official patch.

Risk and Exploitability

The CVSS score of 5.1 indicates moderate severity. The EPSS score of < 1% reflects a very low but non-zero likelihood, and it is not listed in CISA’s KEV catalog. It can be triggered by feeding specially crafted input to gawk; the attack vector is inferred to be local or remote through processed data, but it does not provide remote code execution.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the source patch available from the GNU gawk repository for commit a2d18c74109e41bec29a23098eba2e00057286d8.
  • If a patched binary is released in a newer gawk version, upgrade to that release.
  • If patching or upgrading cannot be performed, restrict execution of gawk scripts to trusted inputs, monitor for crashes, and consider running gawk within a watchdog or container to isolate any impact.

Generated by OpenCVE AI on July 31, 2026 at 11:37 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Ubuntu USN Ubuntu USN USN-8588-1 Gawk vulnerabilities
History
Type Values Removed Values Added
First Time appeared Gnu
Gnu gawk
Vendors & Products Gnu
Gnu gawk
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.
Title Use after free in gawk
Weaknesses CWE-416
References
Metrics cvssV4_0

{'score': 5.1, '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'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
CERT-PL
Published
Updated
Jul 13, 2026, 1:02 PM
Reserved
Apr 13, 2026, 2:44 PM
Status
Analyzed
Published
Jul 13, 2026, 1:16 PM
Modified
Oct 24, 2026, 10:10 PM