Skip to content
Heist/ feed
Back to feed
HighFix available

expat, libxmltok — security advisory

Type: advisorySources: OSVAdvisory ID: DEBIAN-CVE-2024-8176

A stack overflow vulnerability exists in the libexpat library due to the way it handles recursive entity expansion in XML documents. When parsing an XML document with deeply nested entity references, libexpat can be forced to recurse indefinitely, exhausting the stack space and causing a crash. This issue could lead to denial of service (DoS) or, in some cases, exploitable memory corruption, depending on the environment and library usage.

Products
expat, libxmltok
Affected versions
1.2-4, 1.2-4.1, 1.2-4.1~exp1, 1.2-4.2, 2.5.0-1, 2.5.0-1+deb12u1
Fixed versions
2.5.0-1+deb12u2, 2.7.0-1
CVEs
CVE-2024-8176
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 23:29 UTC · Revision 1

Source evidence

DEBIAN-CVE-2024-8176

core-osv · Original source

Published 14 Mar 2025, 09:15 UTC

A stack overflow vulnerability exists in the libexpat library due to the way it handles recursive entity expansion in XML documents. When parsing an XML document with deeply nested entity references, libexpat can be forced to recurse indefinitely, exhausting the stack space and causing a crash. This issue could lead to denial of service (DoS) or, in some cases, exploitable memory corruption, depending on the environment and library usage.

osv:DEBIAN-CVE-2024-8176

expat

Fixed versions: 2.5.0-1+deb12u2

expat

Fixed versions: 2.7.0-1

expat

Fixed versions: 2.7.0-1

libxmltok

Fixed versions: Not specified

Complete source record
{
  "id": "b58d0486e8a4ee63835a965b848875798c7abcf49dd05981bf64a670c83ba44c",
  "url": "https://osv.dev/vulnerability/DEBIAN-CVE-2024-8176",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "DEBIAN-CVE-2024-8176",
    "summary": "A stack overflow vulnerability exists in the libexpat library due to the way it handles recursive entity expansion in XML documents. When parsing an XML document with deeply nested entity references, libexpat can be forced to recurse indefinitely, exhausting the stack space and causing a crash. This issue could lead to denial of service (DoS) or, in some cases, exploitable memory corruption, depending on the environment and library usage.",
    "evidence": "osv:DEBIAN-CVE-2024-8176",
    "products": [
      {
        "name": {
          "value": "expat",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "2.5.0-1+deb12u2",
            "evidence": "/affected/0/ranges"
          }
        ],
        "affected_versions": [
          {
            "value": "2.5.0-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "2.5.0-1+deb12u1",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "expat",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "2.7.0-1",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "expat",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "2.7.0-1",
            "evidence": "/affected/2/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "libxmltok",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.2-4",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "1.2-4.1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "1.2-4.1~exp1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "1.2-4.2",
            "evidence": "/affected/3/versions"
          }
        ]
      }
    ],
    "severity": "high",
    "structured": {
      "id": "DEBIAN-CVE-2024-8176",
      "aliases": [
        "DEBIAN-CVE-2024-8176"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "2.5.0-1+deb12u2"
                }
              ]
            }
          ],
          "package": {
            "name": "expat",
            "purl": "pkg:deb/debian/expat?arch=source&distro=bookworm",
            "ecosystem": "Debian:12"
          },
          "versions": [
            "2.5.0-1",
            "2.5.0-1+deb12u1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2024-8176.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "2.7.0-1"
                }
              ]
            }
          ],
          "package": {
            "name": "expat",
            "purl": "pkg:deb/debian/expat?arch=source&distro=trixie",
            "ecosystem": "Debian:13"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2024-8176.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "2.7.0-1"
                }
              ]
            }
          ],
          "package": {
            "name": "expat",
            "purl": "pkg:deb/debian/expat?arch=source&distro=forky",
            "ecosystem": "Debian:14"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2024-8176.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "libxmltok",
            "purl": "pkg:deb/debian/libxmltok?arch=source&distro=bookworm",
            "ecosystem": "Debian:12"
          },
          "versions": [
            "1.2-4",
            "1.2-4.1",
            "1.2-4.1~exp1",
            "1.2-4.2"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2024-8176.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        }
      ],
      "modified": "2026-10-23T17:47:45.154411159Z",
      "provider": "osv",
      "upstream": [
        "CVE-2024-8176"
      ],
      "references": [
        "https://security-tracker.debian.org/tracker/CVE-2024-8176"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2024-8176",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 418709,
  "published_at": "2025-03-14T09:15:14.157+00:00"
}