CVE catalog

CVE-2025-6170

libxml2 vulnerabilities

[CVE catalog]

A flaw was found in the interactive shell of the xmllint command-line tool, used for parsing XML files. When a user inputs an overly long command, the program does not check the input size properly, which can cause it to crash. This issue might allow attackers to run harmful code in rare configurations without modern protections.

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

Projects and upstream resources

Reported versions and fixes

Each observation applies to its named package, distribution, and release. Distribution backports can fix a vulnerability while retaining an older upstream version number.

Version impact has not been established. The original provider fields are retained below.

Provider details and historical evidence
Original provider fields
{
  "package_releases": [
    {
      "name": "libxml2",
      "status": "fixed",
      "release": "sid",
      "version": "2.15.4+dfsg-1"
    },
    {
      "name": "libxml2",
      "status": "fixed",
      "release": "forky",
      "version": "2.15.4+dfsg-1"
    },
    {
      "name": "libxml2",
      "status": "fixed",
      "release": "trixie",
      "version": "2.12.7+dfsg+really2.9.14-2.1+deb13u3"
    },
    {
      "name": "libxml2",
      "status": "fixed",
      "release": "trixie-security",
      "version": "2.12.7+dfsg+really2.9.14-2.1+deb13u1"
    },
    {
      "name": "libxml2",
      "status": "fixed",
      "release": "bookworm",
      "version": "2.9.14+dfsg-1.3~deb12u6"
    },
    {
      "name": "libxml2",
      "status": "fixed",
      "release": "bookworm-security",
      "version": "2.9.14+dfsg-1.3~deb12u4"
    }
  ],
  "fixed_versions": [
    {
      "bug": 1107938,
      "name": "libxml2",
      "type": "source",
      "origin": null,
      "release": "sid",
      "urgency": "unimportant",
      "fixed_version": "2.12.7+dfsg+really2.9.14-2.1"
    },
    {
      "bug": 1107938,
      "name": "libxml2",
      "type": "source",
      "origin": null,
      "release": "forky",
      "urgency": "unimportant",
      "fixed_version": "2.12.7+dfsg+really2.9.14-2.1"
    },
    {
      "bug": 1107938,
      "name": "libxml2",
      "type": "source",
      "origin": null,
      "release": "trixie",
      "urgency": "unimportant",
      "fixed_version": "2.12.7+dfsg+really2.9.14-2.1"
    },
    {
      "bug": 1107938,
      "name": "libxml2",
      "type": "source",
      "origin": null,
      "release": "bookworm",
      "urgency": "not yet assigned",
      "fixed_version": "2.9.14+dfsg-1.3~deb12u3"
    }
  ],
  "distribution_packages": [
    {
      "name": "libxml2",
      "distro": "ubuntu",
      "release": "noble",
      "ecosystem": "deb",
      "fixed_version": "2.9.14+dfsg-1.3~deb12u3"
    },
    {
      "name": "libxml2",
      "distro": "ubuntu",
      "release": "noble",
      "ecosystem": "deb",
      "fixed_version": "2.9.14+dfsg-1.3ubuntu3.4"
    },
    {
      "name": "libxml2-dev",
      "distro": "ubuntu",
      "release": "noble",
      "ecosystem": "deb",
      "fixed_version": "2.9.14+dfsg-1.3ubuntu3.4"
    },
    {
      "name": "libxml2-doc",
      "distro": "ubuntu",
      "release": "noble",
      "ecosystem": "deb",
      "fixed_version": "2.9.14+dfsg-1.3ubuntu3.4"
    },
    {
      "name": "libxml2-utils",
      "distro": "ubuntu",
      "release": "noble",
      "ecosystem": "deb",
      "fixed_version": "2.9.14+dfsg-1.3ubuntu3.4"
    },
    {
      "name": "python3-libxml2",
      "distro": "ubuntu",
      "release": "noble",
      "ecosystem": "deb",
      "fixed_version": "2.9.14+dfsg-1.3ubuntu3.4"
    },
    {
      "name": "jboss_core_services",
      "ranges": [],
      "ecosystem": "cpe",
      "fixed_version": "",
      "provider_record_id": "NVD-CVE-2025-6170"
    },
    {
      "name": "openshift_container_platform",
      "ranges": [],
      "ecosystem": "cpe",
      "fixed_version": "",
      "provider_record_id": "NVD-CVE-2025-6170"
    },
    {
      "name": "enterprise_linux",
      "ranges": [],
      "ecosystem": "cpe",
      "fixed_version": "",
      "provider_record_id": "NVD-CVE-2025-6170"
    },
    {
      "name": "libxml2",
      "ranges": [],
      "ecosystem": "cpe",
      "fixed_version": "",
      "provider_record_id": "NVD-CVE-2025-6170"
    },
    {
      "name": "libxml2",
      "distro": "alpine",
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "2.13.9-r0"
            }
          ]
        }
      ],
      "release": "3.21",
      "versions": [],
      "ecosystem": "apk",
      "fixed_version": "2.13.9-r0",
      "provider_record_id": "ALPINE-CVE-2025-6170"
    },
    {
      "name": "libxml2",
      "distro": "alpine",
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "2.13.9-r0"
            }
          ]
        }
      ],
      "release": "3.22",
      "versions": [],
      "ecosystem": "apk",
      "fixed_version": "2.13.9-r0",
      "provider_record_id": "ALPINE-CVE-2025-6170"
    },
    {
      "name": "libxml2",
      "distro": "alpine",
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "2.13.9-r0"
            }
          ]
        }
      ],
      "release": "3.23",
      "versions": [],
      "ecosystem": "apk",
      "fixed_version": "2.13.9-r0",
      "provider_record_id": "ALPINE-CVE-2025-6170"
    },
    {
      "name": "libxml2",
      "distro": "alpine",
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "2.13.9-r0"
            }
          ]
        }
      ],
      "release": "3.24",
      "versions": [],
      "ecosystem": "apk",
      "fixed_version": "2.13.9-r0",
      "provider_record_id": "ALPINE-CVE-2025-6170"
    },
    {
      "name": "libxml2",
      "distro": "ubuntu",
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "2.9.10+dfsg-5ubuntu0.20.04.10+esm1"
            }
          ]
        }
      ],
      "release": "pro",
      "versions": [
        "2.9.4+dfsg1-7ubuntu3",
        "2.9.4+dfsg1-7ubuntu5",
        "2.9.4+dfsg1-8ubuntu1",
        "2.9.4+dfsg1-8ubuntu2",
        "2.9.4+dfsg1-8ubuntu3",
        "2.9.10+dfsg-1ubuntu3",
        "2.9.10+dfsg-4build1",
        "2.9.10+dfsg-5",
        "2.9.10+dfsg-5ubuntu0.20.04.1",
        "2.9.10+dfsg-5ubuntu0.20.04.2",
        "2.9.10+dfsg-5ubuntu0.20.04.3",
        "2.9.10+dfsg-5ubuntu0.20.04.4",
        "2.9.10+dfsg-5ubuntu0.20.04.5",
        "2.9.10+dfsg-5ubuntu0.20.04.6",
        "2.9.10+dfsg-5ubuntu0.20.04.7",
        "2.9.10+dfsg-5ubuntu0.20.04.8",
        "2.9.10+dfsg-5ubuntu0.20.04.9",
        "2.9.10+dfsg-5ubuntu0.20.04.10"
      ],
      "ecosystem": "deb",
      "fixed_version": "2.9.10+dfsg-5ubuntu0.20.04.10+esm1",
      "provider_record_id": "UBUNTU-CVE-2025-6170"
    },
    {
      "name": "libxml2",
      "distro": "ubuntu",
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "2.9.13+dfsg-1ubuntu0.8"
            }
          ]
        }
      ],
      "release": "22.04",
      "versions": [
        "2.9.12+dfsg-4",
        "2.9.12+dfsg-5",
        "2.9.12+dfsg-6",
        "2.9.13+dfsg-1",
        "2.9.13+dfsg-1build1",
        "2.9.13+dfsg-1ubuntu0.1",
        "2.9.13+dfsg-1ubuntu0.2",
        "2.9.13+dfsg-1ubuntu0.3",
        "2.9.13+dfsg-1ubuntu0.4",
        "2.9.13+dfsg-1ubuntu0.5",
        "2.9.13+dfsg-1ubuntu0.6",
        "2.9.13+dfsg-1ubuntu0.7"
      ],
      "ecosystem": "deb",
      "fixed_version": "2.9.13+dfsg-1ubuntu0.8",
      "provider_record_id": "UBUNTU-CVE-2025-6170"
    },
    {
      "name": "libxml2",
      "distro": "ubuntu",
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "2.9.14+dfsg-1.3ubuntu3.4"
            }
          ]
        }
      ],
      "release": "24.04",
      "versions": [
        "2.9.14+dfsg-1.3",
        "2.9.14+dfsg-1.3build1",
        "2.9.14+dfsg-1.3build2",
        "2.9.14+dfsg-1.3build3",
        "2.9.14+dfsg-1.3ubuntu1",
        "2.9.14+dfsg-1.3ubuntu2",
        "2.9.14+dfsg-1.3ubuntu3",
        "2.9.14+dfsg-1.3ubuntu3.1",
        "2.9.14+dfsg-1.3ubuntu3.2",
        "2.9.14+dfsg-1.3ubuntu3.3"
      ],
      "ecosystem": "deb",
      "fixed_version": "2.9.14+dfsg-1.3ubuntu3.4",
      "provider_record_id": "UBUNTU-CVE-2025-6170"
    }
  ]
}

[Debian bug #1107938]

OpenFactory catalog packages

Matching against OpenFactory catalog package versions is in progress.

[Debian 12 (Bookworm)]

  • [libxml2]Unknown
    Details (4)
    • 2.9.14+dfsg-1.3~deb12u6 · amd64 · bookworm

      Fixed · Fixed: 2.9.14+dfsg-1.3~deb12u3

      usn · libxml2 · debian · bookworm

    • 2.9.14+dfsg-1.3~deb12u6 · arm64 · bookworm

      Fixed · Fixed: 2.9.14+dfsg-1.3~deb12u3

      usn · libxml2 · debian · bookworm

    • 2.9.14+dfsg-1.3~deb12u4 · amd64 · bookworm-security

      Fixed · Fixed: 2.9.14+dfsg-1.3~deb12u3

      usn · libxml2 · debian · bookworm

    • 2.9.14+dfsg-1.3~deb12u4 · arm64 · bookworm-security

      Fixed · Fixed: 2.9.14+dfsg-1.3~deb12u3

      usn · libxml2 · debian · bookworm

  • [libxml2-dev]Unknown

    Source package: [libxml2]

    Details (4)
    • 2.9.14+dfsg-1.3~deb12u6 · amd64 · bookworm

      Fixed · Fixed: 2.9.14+dfsg-1.3~deb12u3

      usn · libxml2 · debian · bookworm

    • 2.9.14+dfsg-1.3~deb12u6 · arm64 · bookworm

      Fixed · Fixed: 2.9.14+dfsg-1.3~deb12u3

      usn · libxml2 · debian · bookworm

    • 2.9.14+dfsg-1.3~deb12u4 · amd64 · bookworm-security

      Fixed · Fixed: 2.9.14+dfsg-1.3~deb12u3

      usn · libxml2 · debian · bookworm

    • 2.9.14+dfsg-1.3~deb12u4 · arm64 · bookworm-security

      Fixed · Fixed: 2.9.14+dfsg-1.3~deb12u3

      usn · libxml2 · debian · bookworm

  • [libxml2-doc]Unknown

    Source package: [libxml2]

    Details (4)
    • 2.9.14+dfsg-1.3~deb12u6 · all · bookworm

      Fixed · Fixed: 2.9.14+dfsg-1.3~deb12u3

      usn · libxml2 · debian · bookworm

    • 2.9.14+dfsg-1.3~deb12u6 · all · bookworm

      Fixed · Fixed: 2.9.14+dfsg-1.3~deb12u3

      usn · libxml2 · debian · bookworm

    • 2.9.14+dfsg-1.3~deb12u4 · all · bookworm-security

      Fixed · Fixed: 2.9.14+dfsg-1.3~deb12u3

      usn · libxml2 · debian · bookworm

    • 2.9.14+dfsg-1.3~deb12u4 · all · bookworm-security

      Fixed · Fixed: 2.9.14+dfsg-1.3~deb12u3

      usn · libxml2 · debian · bookworm

  • [libxml2-utils]Unknown

    Source package: [libxml2]

    Details (4)
    • 2.9.14+dfsg-1.3~deb12u6 · amd64 · bookworm

      Fixed · Fixed: 2.9.14+dfsg-1.3~deb12u3

      usn · libxml2 · debian · bookworm

    • 2.9.14+dfsg-1.3~deb12u6 · arm64 · bookworm

      Fixed · Fixed: 2.9.14+dfsg-1.3~deb12u3

      usn · libxml2 · debian · bookworm

    • 2.9.14+dfsg-1.3~deb12u4 · amd64 · bookworm-security

      Fixed · Fixed: 2.9.14+dfsg-1.3~deb12u3

      usn · libxml2 · debian · bookworm

    • 2.9.14+dfsg-1.3~deb12u4 · arm64 · bookworm-security

      Fixed · Fixed: 2.9.14+dfsg-1.3~deb12u3

      usn · libxml2 · debian · bookworm

  • Source package: [libxml2]

    Details (4)
    • 2.9.14+dfsg-1.3~deb12u6 · amd64 · bookworm

      Fixed · Fixed: 2.9.14+dfsg-1.3~deb12u3

      usn · libxml2 · debian · bookworm

    • 2.9.14+dfsg-1.3~deb12u6 · arm64 · bookworm

      Fixed · Fixed: 2.9.14+dfsg-1.3~deb12u3

      usn · libxml2 · debian · bookworm

    • 2.9.14+dfsg-1.3~deb12u4 · amd64 · bookworm-security

      Fixed · Fixed: 2.9.14+dfsg-1.3~deb12u3

      usn · libxml2 · debian · bookworm

    • 2.9.14+dfsg-1.3~deb12u4 · arm64 · bookworm-security

      Fixed · Fixed: 2.9.14+dfsg-1.3~deb12u3

      usn · libxml2 · debian · bookworm

Observed:

References