{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "cpe": "cpe:2.3:a:libexpat_project:libexpat:*:*:*:*:*:*:*:*",
                "range": [
                  {
                    "introduced": "0"
                  },
                  {
                    "last_affected": "2.9.0"
                  }
                ],
                "source": "CPE_RANGE"
              },
              {
                "range": [
                  {
                    "fixed": "1bac53c4fc460a03cd9860f39501c7979f6750ae"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              },
              {
                "range": [
                  {
                    "fixed": "621cb2c78b253ee023a86bc91d6ddb048481c04c"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "1bac53c4fc460a03cd9860f39501c7979f6750ae"
            },
            {
              "fixed": "621cb2c78b253ee023a86bc91d6ddb048481c04c"
            }
          ],
          "repo": "https://github.com/libexpat/libexpat",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "VulnCheck",
    "cwe_ids": [
      "CWE-190"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/118xxx/CVE-2026-118370.json"
  },
  "details": "libexpat through 2.9.0 contains a signed integer overflow vulnerability in storeAtts() in lib/xmlparse.c that allows attackers to trigger out-of-bounds writes via oversized attribute counts. Attackers can supply a multi-gigabyte document with a start tag carrying over 2^30 attributes to overflow attIndex and nPrefixes, crashing applications or corrupting heap memory.",
  "id": "CVE-2026-118370",
  "modified": "2026-11-04T02:30:59.362055130Z",
  "published": "2026-10-28T02:03:19.447Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/118xxx/CVE-2026-118370.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-118370"
    },
    {
      "type": "ADVISORY",
      "url": "https://www.vulncheck.com/advisories/libexpat-through-2.9.0-integer-overflow-in-storeatts-via-attindex-and-nprefixes"
    },
    {
      "type": "FIX",
      "url": "https://github.com/libexpat/libexpat/commit/1bac53c4fc460a03cd9860f39501c7979f6750ae"
    },
    {
      "type": "FIX",
      "url": "https://github.com/libexpat/libexpat/commit/621cb2c78b253ee023a86bc91d6ddb048481c04c"
    },
    {
      "type": "FIX",
      "url": "https://github.com/libexpat/libexpat/pull/1450"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/libexpat/libexpat"
    },
    {
      "type": "ARTICLE",
      "url": "https://github.com/libexpat/libexpat/blob/a76b1174c1ea52abb639a4c69d52b630a8a106a2/expat/lib/xmlparse.c#L4138-L4140"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N",
      "type": "CVSS_V4"
    }
  ],
  "summary": "libexpat through 2.9.0 Integer Overflow in storeAtts via attIndex and nPrefixes"
}