Skip to content
Heist/ feed
Back to feed
Low

Heap buffer overflow in gawk

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-40468
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 10:33 UTC · Revision 1

Source evidence

Heap buffer overflow in gawk

core-osv · Original source

Published 13 Jul 2026, 12:07 UTC

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.

osv:CVE-2026-40468
Complete source record
{
  "id": "f27078b64c20861cefafb15ef2555366a10809572ec46757be429058e237bebc",
  "url": "https://osv.dev/vulnerability/CVE-2026-40468",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Heap buffer overflow in gawk",
    "summary": "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.",
    "evidence": "osv:CVE-2026-40468",
    "products": [],
    "severity": "low",
    "structured": {
      "id": "CVE-2026-40468",
      "aliases": [
        "CVE-2026-40468"
      ],
      "metrics": [
        {
          "type": "CVSS_V4",
          "score": "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"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://cgit.git.savannah.gnu.org/cgit/gawk.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "062f2f2581b991362c046f7f2e238ffa34e6f8c7"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "fixed": "062f2f2581b991362c046f7f2e238ffa34e6f8c7"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-40468.json"
          }
        }
      ],
      "modified": "2026-10-31T10:30:36.495528161Z",
      "provider": "osv",
      "references": [
        "https://cgit.git.savannah.gnu.org/cgit/gawk.git/",
        "https://cert.pl/en/posts/2026/07/CVE-2026-40467",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/40xxx/CVE-2026-40468.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-40468",
        "https://cgit.git.savannah.gnu.org/cgit/gawk.git/commit/?id=062f2f2581b991362c046f7f2e238ffa34e6f8c7"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-190"
        ],
        "cna_assigner": "CERT-PL",
        "unresolved_ranges": [
          {
            "extracted_events": [
              {
                "range": [
                  {
                    "last_affected": "5.4.0"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              }
            ]
          },
          {
            "extracted_events": [
              {
                "range": [
                  {
                    "last_affected": "5.4.0"
                  }
                ],
                "source": "DESCRIPTION"
              }
            ]
          }
        ],
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/40xxx/CVE-2026-40468.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-40468",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 446627,
  "published_at": "2026-07-13T12:07:54.91+00:00"
}