Skip to content
Heist/ feed
Back to feed
HighFix available

libxml2 — security advisory

Type: advisorySources: OSVAdvisory ID: DEBIAN-CVE-2021-3516

There's a flaw in libxml2's xmllint in versions before 2.9.11. An attacker who is able to submit a crafted file to be processed by xmllint could trigger a use-after-free. The greatest impact of this flaw is to confidentiality, integrity, and availability.

Products
libxml2
Affected versions
Not specified
Fixed versions
2.9.10+dfsg-6.6
CVEs
CVE-2021-3516
Confirmed fixed CVEs
Not specified
Updated in this feed
30 Oct 2026, 16:54 UTC · Revision 1

Source evidence

DEBIAN-CVE-2021-3516

core-osv · Original source

Published 1 Jun 2021, 14:15 UTC

There's a flaw in libxml2's xmllint in versions before 2.9.11. An attacker who is able to submit a crafted file to be processed by xmllint could trigger a use-after-free. The greatest impact of this flaw is to confidentiality, integrity, and availability.

osv:DEBIAN-CVE-2021-3516

libxml2

Fixed versions: 2.9.10+dfsg-6.6

libxml2

Fixed versions: 2.9.10+dfsg-6.6

libxml2

Fixed versions: 2.9.10+dfsg-6.6

Complete source record
{
  "id": "f667e022b589a237870290ebbf8035c6b819ee76b6a0f7249c4700d4b47b6fc8",
  "url": "https://osv.dev/vulnerability/DEBIAN-CVE-2021-3516",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "DEBIAN-CVE-2021-3516",
    "summary": "There's a flaw in libxml2's xmllint in versions before 2.9.11. An attacker who is able to submit a crafted file to be processed by xmllint could trigger a use-after-free. The greatest impact of this flaw is to confidentiality, integrity, and availability.",
    "evidence": "osv:DEBIAN-CVE-2021-3516",
    "products": [
      {
        "name": {
          "value": "libxml2",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "2.9.10+dfsg-6.6",
            "evidence": "/affected/0/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "libxml2",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "2.9.10+dfsg-6.6",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "libxml2",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "2.9.10+dfsg-6.6",
            "evidence": "/affected/2/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "high",
    "structured": {
      "id": "DEBIAN-CVE-2021-3516",
      "aliases": [
        "DEBIAN-CVE-2021-3516"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "2.9.10+dfsg-6.6"
                }
              ]
            }
          ],
          "package": {
            "name": "libxml2",
            "purl": "pkg:deb/debian/libxml2?arch=source&distro=bookworm",
            "ecosystem": "Debian:12"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2021-3516.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "2.9.10+dfsg-6.6"
                }
              ]
            }
          ],
          "package": {
            "name": "libxml2",
            "purl": "pkg:deb/debian/libxml2?arch=source&distro=trixie",
            "ecosystem": "Debian:13"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2021-3516.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "2.9.10+dfsg-6.6"
                }
              ]
            }
          ],
          "package": {
            "name": "libxml2",
            "purl": "pkg:deb/debian/libxml2?arch=source&distro=forky",
            "ecosystem": "Debian:14"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2021-3516.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        }
      ],
      "modified": "2026-10-15T09:47:43.896241443Z",
      "provider": "osv",
      "upstream": [
        "CVE-2021-3516"
      ],
      "references": [
        "https://security-tracker.debian.org/tracker/CVE-2021-3516"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2021-3516",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 328545,
  "published_at": "2021-06-01T14:15:10.373+00:00"
}