CVE catalog

CVE-2026-40553

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, a

[CVE catalog]

Severity
Medium · CVSS 6.2CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Published
Source
[NVD] · [CVE record]
EPSS
0.29% · Oct 25, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debiangawksid1:5.3.2-1vulnerable
Debiangawkforky1:5.3.2-1vulnerable
Debiangawktrixie1:5.2.1-2vulnerable
Debiangawkbookworm1:5.2.1-2vulnerable
CpegawkNot reportedNot reportedvulnerable
Ubuntugawknoble1:5.2.1-2ubuntu0.1fixed
Ubuntugawk26.041:5.3.2-1build1vulnerable
Ubuntugawk26.041:5.3.2-1ubuntu1vulnerable
Ubuntugawk26.041:5.3.2-1ubuntu1.1fixed
CpegawkNot reportedNot reportedunknown

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debiangawksourcesid(unfixed)not yet assignedNot reported[1142071]
Debiangawksourceforky(unfixed)not yet assignedNot reported[1142071]
Debiangawksourcetrixie(unfixed)not yet assignedNot reported[1142071]
Debiangawksourcebookworm(unfixed)not yet assignedNot reported[1142071]
Ubuntugawkdebnoble1:5.2.1-2ubuntu0.1Not reportedNot reportedNot reported
Ubuntugawkdeb26.041:5.3.2-1ubuntu1.1Not reportedUBUNTU-CVE-2026-40553Not reported

[Debian bug #1142071]

Notes

[trixie] gawk: Minor issue

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • [gawk]Affected
    Details (2)
    • 1:5.2.1-2 · amd64 · bookworm

      Affected

      nvd · gawk · debian · bookworm; nvd · gawk · debian · 12

    • 1:5.2.1-2 · arm64 · bookworm

      Affected

      nvd · gawk · debian · bookworm; nvd · gawk · debian · 12

[Debian 13 (Trixie)]

  • [gawk]Affected

    Source package: [gawk]

    Details (2)
    • 1:5.2.1-2+b1 · amd64 · trixie

      Affected

      nvd · gawk · debian · 13

    • 1:5.2.1-2+b2 · arm64 · trixie

      Affected

      nvd · gawk · debian · 13

Observed:

References