CVE-2026-40468 PUBLISHED

Heap buffer overflow in gawk

Assigner: CERT-PL
Reserved: 13.04.2026 Published: 13.07.2026 Updated: 13.07.2026

Integer overflow vulnerability has been found in "builtin.c" program file of gawk. This issue may lead to memory exhaustion on the hosting operating system and could be used to overwrite gawk heap metadata and objects with attacker-controlled bytes. It affects gawk in versions 5.4.0 and below.

Metrics

CVSS Vector: CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:L
CVSS Score: 2.1

Product Status

Vendor GNU
Product gawk
Versions Default: unaffected
  • affected from 0 to 5.4.0 (incl.)

Affected Configurations

An operating system hosting the vulnerable program must have at least 6GB of available memory.

Credits

  • Michał Majchrowicz (AFINE) finder
  • Marcin Wyczechowski (AFINE) finder

References

Problem Types

  • CWE-190 Integer Overflow or Wraparound CWE