CVE-2021-3518: There's a flaw in libxml2 in versions before 2.9.11
CVE-2021-3518 is a high-severity flaw (CVSS 8.8) affecting libxml2, debian linux, jboss core services. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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.
Why this priority
- High severity
- EPSS top 2%: very likely to be exploited
- On your watchlist
A fixed release or distro patch exists.
Risk facts
| CVSS score | 8.8 (High) |
| Attack vector | Network (remote) |
| Attack complexity | Low |
| Privileges needed | None |
| User interaction | Required |
| EPSS exploit chance | 21.9% (top 2%) |
| CISA exploited list | No |
| Weakness | CWE-416 |
| Published | 2021-05-18 |
| Last modified | 2026-10-14 |
Last updated 2026-10-14 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2021-3518?
libxml2: upgrade to 2.9.11; debian linux: mitigate or apply the listed mitigation; jboss core services: mitigate or apply the listed mitigation. Exact commands for each OS are on this page.
Is CVE-2021-3518 being exploited?
CVE-2021-3518 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2021-3518 affect?
CVE-2021-3518 affects libxml2, debian linux, jboss core services. Severity is high (CVSS 8.8). 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 confidentia
How urgent is CVE-2021-3518?
Priority 60/100. High severity; EPSS top 2%: very likely to be exploited; On your watchlist
Software pages
Debian vulnerabilities · JBoss and WildFly vulnerabilities · libxml2 vulnerabilities
Related CVEs
- CVE-2025-6170 LOW 2.5 MITIGATE DOWNGRADE A flaw was found in the interactive shell of the xmllint command-line tool, used for parsing XML files
- CVE-2026-6732 MEDIUM 6.5 UPGRADE MITIGATE A flaw was found in libxml2
- CVE-2026-6653 CRITICAL 9.8 UPGRADE Use After Free in libxml2's xmlParseInternalSubset from GNOME libxml2 version 2.9.11 to 2.11.0 allows a remote
- CVE-2026-11979 HIGH 7.8 UPGRADE libxml2 is vulnerable to multiple stack-based buffer overflows in the xmlcatalog utility when running in --she
- CVE-2025-9714 MEDIUM 6.2 UPGRADE Uncontrolled recursion in XPath evaluation in libxml2 up to and including version 2.9.14 allows a local attack