Skip to content
Heist/ feed
Back to feed
High

Security advisory

Type: advisorySources: OSVCVE: 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
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2021-3516
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 12:38 UTC · Revision 1

Source evidence

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:CVE-2021-3516
Complete source record
{
  "id": "1c316e4419a2aebf376444e26f4763e12488685895a839747a6baf9004b680ca",
  "url": "https://osv.dev/vulnerability/CVE-2021-3516",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "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:CVE-2021-3516",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2021-3516",
      "aliases": [
        "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": [
            {
              "repo": "https://gitlab.gnome.org/gnome/libxml2",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "e1bcffea180d6cc0651757bb64284a763e0e2239"
                },
                {
                  "introduced": "2189b59b1005976970ebadb65edbb289f9e091ff"
                },
                {
                  "last_affected": "2189b59b1005976970ebadb65edbb289f9e091ff"
                },
                {
                  "fixed": "1358d157d0bd83be1dfe356a69213df9fac0b539"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:xmlsoft:xmllint:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "2.9.11"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:o:redhat:enterprise_linux:6.0:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "6.0"
                      },
                      {
                        "last_affected": "6.0"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "range": [
                      {
                        "fixed": "1358d157d0bd83be1dfe356a69213df9fac0b539"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "6.0",
            "LIBXML2_6_0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-3516.json",
            "vanir_signatures": [
              {
                "id": "CVE-2021-3516-22c624ac",
                "digest": {
                  "threshold": 0.9,
                  "line_hashes": [
                    "125923364555687102912767750593616075062",
                    "164402031157988608807981467698484062586",
                    "187480151731575691958788539215601771876",
                    "198926099027557728522349673134118447470"
                  ]
                },
                "source": "https://gitlab.gnome.org/gnome/libxml2@1358d157d0bd83be1dfe356a69213df9fac0b539",
                "target": {
                  "file": "xmllint.c"
                },
                "deprecated": false,
                "signature_type": "Line",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2021-3516-5d358667",
                "digest": {
                  "threshold": 0.9,
                  "line_hashes": [
                    "61551077790304056876126381115245055965",
                    "278846916215258117913027984776762678417",
                    "335982757857177150834168525661853921922",
                    "87840030754328165737181167332541198940",
                    "61551077790304056876126381115245055965",
                    "278846916215258117913027984776762678417",
                    "105711474186756975709469310745455797308",
                    "103706706750952072917010335478765316004",
                    "227047217400973127911964602216150042388",
                    "253258039250536385915162828640596572926",
                    "335982757857177150834168525661853921922",
                    "87840030754328165737181167332541198940",
                    "227047217400973127911964602216150042388",
                    "253258039250536385915162828640596572926",
                    "105711474186756975709469310745455797308",
                    "263486003320329746243870951465374401173",
                    "112950646771093583388072220651695062566",
                    "231864520689178078662381811343978537663",
                    "213333773092754020127207462965134162165",
                    "19008729915787537273927561381864711242",
                    "112950646771093583388072220651695062566",
                    "231864520689178078662381811343978537663",
                    "213333773092754020127207462965134162165",
                    "19008729915787537273927561381864711242",
                    "273240550832595461615251408636344817319",
                    "162912241845094166163791832543701405088",
                    "671650474723048413359612334217206008",
                    "22766956053755843453510076977580137201",
                    "13167474649499926961065524423099785312",
                    "83470413458974766405520199037916535562",
                    "276402490468899750538561900822383734744",
                    "333682037389609673181412300351361172030",
                    "9499193487410093391036358074880903632",
                    "30805303948970631633603096678317204355",
                    "93889085830397632709481663916004609330",
                    "229956981014592868447519071218013779439",
                    "240624245583924818381392266620352655927",
                    "223174899253645334504338538819361168413",
                    "294476493037697202535040764027097131119",
                    "129304591418198192271541858825325701656",
                    "140204848231080657012011575632498051783",
                    "75311632195512841680531928924350830586",
                    "256053888072821081238103619703165798762",
                    "235378452580802392739918607691411522119",
                    "244992818881073020881304797438692585130",
                    "66651940352215863530508914348900210359",
                    "48019944339009281467628355593178272818",
                    "106918772490863171659640772695582053951",
                    "116925370429586760959130651896312835976",
                    "148133004854708868535797103792350393744",
                    "102183146399774788380381559441867815797",
                    "308117370035021215489377534456228663968",
                    "187339639605561687559806077174150854909",
                    "130836858511549172127312257489846408951",
                    "52797561731550596294797782502825671297",
                    "313419538420946173683294680071732735569",
                    "246138447249870484217065672110268629284"
                  ]
                },
                "source": "https://gitlab.gnome.org/gnome/libxml2@e1bcffea180d6cc0651757bb64284a763e0e2239",
                "target": {
                  "file": "testapi.c"
                },
                "deprecated": false,
                "signature_type": "Line",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2021-3516-88b79f4c",
                "digest": {
                  "length": 1155,
                  "function_hash": "198329610838053062539893085088781189951"
                },
                "source": "https://gitlab.gnome.org/gnome/libxml2@e1bcffea180d6cc0651757bb64284a763e0e2239",
                "target": {
                  "file": "testapi.c",
                  "function": "test_xmlIO"
                },
                "deprecated": false,
                "signature_type": "Function",
                "signature_version": "v1"
              }
            ],
            "vanir_signatures_modified": "2026-10-20T14:09:46Z"
          }
        }
      ],
      "modified": "2026-10-20T14:09:46.990043172Z",
      "provider": "osv",
      "references": [
        "https://cert-portal.siemens.com/productcert/html/ssa-398330.html",
        "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/BZOMV5J4PMZAORVT64BKLV6YIZAFDGX6/",
        "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/QVM4UJ3376I6ZVOYMHBNX4GY3NIV52WV/",
        "https://lists.debian.org/debian-lts-announce/2021/05/msg00008.html",
        "https://security.gentoo.org/glsa/202107-05",
        "https://security.netapp.com/advisory/ntap-20210716-0005/",
        "https://bugzilla.redhat.com/show_bug.cgi?id=1954225",
        "https://gitlab.gnome.org/GNOME/libxml2/-/issues/230",
        "https://gitlab.gnome.org/GNOME/libxml2/-/commit/1358d157d0bd83be1dfe356a69213df9fac0b539",
        "https://www.oracle.com/security-alerts/cpujan2022.html"
      ],
      "provider_metadata": {
        "unresolved_ranges": [
          {
            "cpes": [
              "cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*"
            ],
            "vendor_product": "debian:debian_linux",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "9.0"
                  },
                  {
                    "last_affected": "9.0"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:*",
              "cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*"
            ],
            "vendor_product": "fedoraproject:fedora",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "33"
                  },
                  {
                    "last_affected": "33"
                  },
                  {
                    "introduced": "34"
                  },
                  {
                    "last_affected": "34"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:a:oracle:zfs_storage_appliance_kit:8.8:*:*:*:*:*:*:*"
            ],
            "vendor_product": "oracle:zfs_storage_appliance_kit",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "8.8"
                  },
                  {
                    "last_affected": "8.8"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:o:redhat:enterprise_linux:7.0:*:*:*:*:*:*:*",
              "cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:*"
            ],
            "vendor_product": "redhat:enterprise_linux",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "7.0"
                  },
                  {
                    "last_affected": "7.0"
                  },
                  {
                    "introduced": "8.0"
                  },
                  {
                    "last_affected": "8.0"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          }
        ]
      }
    },
    "related_cves": [
      {
        "value": "CVE-2021-3516",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 388600,
  "published_at": "2021-06-01T14:15:10.373+00:00"
}