Home / libxml2 / libxml2 / CVE-2021-3518
CVE-2021-3518: is it exploited, and which versions of libxml2 are affected and fixed?
CVE-2021-3518 is an use after free vulnerability in libxml2. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 13:08 UTC). Affected: nokogiri before 1.11.4 (GitHub advisory GHSA-v4f8-2847-rwm7). Fixed in 1.11.4 (GitHub advisory GHSA-v4f8-2847-rwm7). Severity: High (8.8, CVSS 3.1, from NVD).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 13:08 UTC, CVE record November 19, 2026, 07:15 UTC and NVD November 19, 2026, 07:58 UTC.
What is CVE-2021-3518?
There's a flaw in libxml2 in versions before 2.9.11. An attacker who is able to submit a crafted file to be processed by an application linked with libxml2 could trigger a use-after-free. The greatest impact from this flaw is to confidentiality, integrity, and availability.
From the CVE record by redhat, last updated October 14, 2026, 09:49 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| libxml2 | libxml2 2.9.11 |
As the CVE record by redhat states it, last updated October 14, 2026. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| RubyGems | nokogiri | < 1.11.4 | 1.11.4 | GHSA-v4f8-2847-rwm7 |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated July 10, 2023. Summary: Nokogiri Implements libxml2 version vulnerable to use-after-free.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| xmlsoft | libxml2 | before 2.9.11 | application |
| debian | debian linux | 9.0 | operating system |
| redhat | jboss core services | all versions | application |
| redhat | enterprise linux | 8.0 | operating system |
| fedoraproject | fedora | 33 | operating system |
| fedoraproject | fedora | 34 | operating system |
| netapp | active iq unified manager | all versions | application |
| netapp | clustered data ontap | all versions | application |
| netapp | clustered data ontap antivirus connector | all versions | application |
| netapp | manageability software development kit | all versions | application |
| netapp | ontap select deploy administration utility | all versions | application |
| netapp | snapdrive | all versions | application |
| netapp | hci h410c firmware | all versions | operating system |
| oracle | communications cloud native core network function cloud native environment | 1.10.0 | application |
| oracle | enterprise manager base platform | 13.4.0.0 | application |
| oracle | enterprise manager base platform | 13.5.0.0 | application |
| oracle | enterprise manager ops center | 12.4.0.0 | application |
| oracle | mysql workbench | through 8.0.26 | application |
| oracle | peoplesoft enterprise peopletools | 8.58 | application |
| oracle | real user experience insight | 13.4.1.0 | application |
| oracle | real user experience insight | 13.5.1.0 | application |
NVD analysis (status Modified), last modified October 14, 2026, 10:17 UTC.
How severe is CVE-2021-3518?
| Score | Version | Vector | Source |
|---|---|---|---|
| High 8.8 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H | NVD |
| Medium 6.8 | CVSS 2.0 | AV:N/AC:M/Au:N/C:P/I:P/A:P | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2021-3518 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- EPSS
- 18.9% probability of exploitation activity in the next 30 days, percentile 97.4 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-416 Use After Free
Where are the vendor advisories and references?
- FEDORA-2021-e3ed1ba38b vendor-advisory, x_refsource_FEDORA
- [debian-lts-announce] 20210510 [SECURITY] [DLA 2653-1] libxml2 security update mailing-list, x_refsource_MLIST
- https://bugzilla.redhat.com/show_bug.cgi?id=1954242 x_refsource_MISC
- FEDORA-2021-b950000d2b vendor-advisory, x_refsource_FEDORA
- [bookkeeper-issues] 20210628 [GitHub] [bookkeeper] padma81 opened a new issue #2746: Security Vulnerabilities in CentOS 7 image, Upgrade image to CentOS 8 mailing-list, x_refsource_MLIST
- [bookkeeper-issues] 20210629 [GitHub] [bookkeeper] padma81 opened a new issue #2746: Security Vulnerabilities in CentOS 7 image, Upgrade image to CentOS 8 mailing-list, x_refsource_MLIST
- GLSA-202107-05 vendor-advisory, x_refsource_GENTOO
- https://security.netapp.com/advisory/ntap-20210625-0002/ x_refsource_CONFIRM
- 20210723 APPLE-SA-2021-07-21-5 watchOS 7.6 mailing-list, x_refsource_FULLDISC
- 20210723 APPLE-SA-2021-07-21-1 iOS 14.7 and iPadOS 14.7 mailing-list, x_refsource_FULLDISC
- 20210723 APPLE-SA-2021-07-21-2 macOS Big Sur 11.5 mailing-list, x_refsource_FULLDISC
- 20210723 APPLE-SA-2021-07-21-6 tvOS 14.7 mailing-list, x_refsource_FULLDISC
- https://www.oracle.com/security-alerts/cpuoct2021.html x_refsource_MISC
- https://support.apple.com/kb/HT212605 x_refsource_CONFIRM
- https://support.apple.com/kb/HT212602 x_refsource_CONFIRM
- https://support.apple.com/kb/HT212601 x_refsource_CONFIRM
- https://support.apple.com/kb/HT212604 x_refsource_CONFIRM
- https://www.oracle.com/security-alerts/cpuapr2022.html x_refsource_MISC
- https://www.oracle.com/security-alerts/cpujul2022.html x_refsource_MISC
- https://cert-portal.siemens.com/productcert/html/ssa-398330.html
When was it published, and where is the official record?
- Reserved
- April 27, 2021
- Published
- May 18, 2021, 11:20 UTC
- CVE record updated
- October 14, 2026, 09:49 UTC by redhat
- NVD
- Modified, last modified October 14, 2026, 10:17 UTC
- Last checked
- CVE list November 19, 2026, 07:15 UTC; NVD November 19, 2026, 07:58 UTC; KEV December 3, 2026, 13:08 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect libxml2?
- Sep 10, 2025CVE-2025-9714 libxml2: uncontrolled recursion
- Aug 8, 2025CVE-2025-8732 libxml2: uncontrolled recursion disputed
- Dec 23, 2024CVE-2024-40896 libxml2: XML external entity (XXE)
- Jul 28, 2022CVE-2016-3709 libxml2: cross-site scripting (XSS)
- Jul 9, 2021CVE-2021-3541 libxml2: XML entity expansion (billion laughs)
- Jun 1, 2021CVE-2021-3516 libxml2: use after free
- May 19, 2021CVE-2021-3517 libxml2: out-of-bounds write (memory corruption)
- May 14, 2021CVE-2021-3537 libxml2: NULL pointer dereference (crash)
Questions about CVE-2021-3518
Is CVE-2021-3518 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 13:08 UTC. FIRST's EPSS gives it a 18.9% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of libxml2 are affected by CVE-2021-3518?
nokogiri before 1.11.4, per the GitHub advisory GHSA-v4f8-2847-rwm7. The tables above give every range the sources list.
Which version fixes CVE-2021-3518?
1.11.4, per the GitHub advisory GHSA-v4f8-2847-rwm7. Check the vendor's advisory before you rely on it.
How severe is CVE-2021-3518?
High (8.8, CVSS 3.1, from NVD). The severity table above shows each score with its source.
Where is the official record of CVE-2021-3518?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.