All reports
Medium

gawk: Gawk: Buffer overflow in ftype() routine may lead to code execution or denial of service

Affected versions

Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2026-40553

Probability of exploitation in the next 30 days: 0.29%

FIRST EPSS · 2026-11-22

Description

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.

A flaw was found in gawk. A buffer overflow vulnerability exists in the ftype() routine, located in the extension/readdir.c program file. This vulnerability could allow an attacker to crash the program, resulting in a denial of service. It may also potentially lead to arbitrary code execution, though this has not been definitively confirmed.