CVE-2021-3517
Nokogiri contains libxml Out-of-bounds Write vulnerability
Reported by redhat · Published May 19, 2021
libxml2 is fixed in 2.9.11 (NuGet)
There is a flaw in the xml entity encoding functionality of libxml2 in versions before 2.9.11. An attacker who is able to supply a crafted file to be processed by an application linked with the affected functionality of libxml2 could trigger an out-of-bounds read. The most likely impact of this flaw is to application availability, with some potential impact to confidentiality and integrity if an attacker is able to use memory information to further exploit the application.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| libxml2 | NuGet | 2.9.11 |
| nokogiri | RubyGems | 1.11.4 |
| libxml2.vc140_xp.mt.static.x86 | NuGet | 2.9.11 |
| libxml2 | conan.io | 2.9.11 |
| libxml2 | Alpine | 2.9.11-r0, 2.9.10-r7, 2.9.10-r6, 2.9.10-r5, 2.9.9-r5 |
| libxml2 | Arch Linux | 2.9.11-1 |
| java-11-amazon-corretto | Amazon Linux | 1:11.0.13+8-1.amzn2 |
| java-11-amazon-corretto-headless | Amazon Linux | 1:11.0.13+8-1.amzn2 |
| qt5-qtwebengine | Alpine | 5.15.3_git20211112-r0 |
| java-11-amazon-corretto-javadoc | Amazon Linux | 1:11.0.13+8-1.amzn2 |
| libxml2 | Ubuntu:20.04:LTS | 2.9.10+dfsg-5ubuntu0.20.04.1 |
| libxml2 | Ubuntu:18.04:LTS | 2.9.4+dfsg1-6.1ubuntu1.4 |
3 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | libxml2 | libxml2 2.9.11 |
| ConanCenter | libxml2 | 0 |
| RubyGems | nokogiri | 0 |
| alpine | libxml2 | 0, 0, 0 |
| arch | libxml2 | 0 |
| amazon:2 | java-11-amazon-corretto | 0 |
| amazon:2 | java-11-amazon-corretto-headless | 0 |
| alpine | qt5-qtwebengine | 0 |
| amazon:2 | java-11-amazon-corretto-javadoc | 0 |
| Siemens | SIPLUS S7-1500 CPU 1518-4 PN/DP MFP | 3.1.0 |
| n/a | libxml2 | 2.9.11 |
| NuGet | libxml2.vc140_xp.mt.static.x86 | 0 |
| Siemens | SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP | 3.1.0 |
| amazon:2 | libxml2-static | 0 |
| NuGet | libxml2 | 0 |
| Siemens | SIMATIC S7-1500 CPU 1518-4 PN/DP MFP | 3.1.0 |
| amazon:2 | libxml2-python | 0 |
| amazon:2 | libxml2 | 0 |
| amazon:2 | libxml2-devel | 0 |
Timeline
- Apr 27, 2021 CVE Published
- May 20, 2021 EPSS Score (30 in total, the first dated here)
- Dec 16, 2025 PoC Published
- Mar 7, 2026 Distribution Patch (29 in total, the first dated here)
- Mar 7, 2026 Security Advisory (35 in total, the first dated here)
- Jul 29, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2021-3517
vulnetix vdb fixes CVE-2021-3517
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2021-3517/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- FEDORA-2021-e3ed1ba38b vendor-advisoryx_refsource_FEDORA
- [debian-lts-announce] 20210510 [SECURITY] [DLA 2653-1] libxml2 security update mailing-listx_refsource_MLIST
- x_refsource_MISC
- FEDORA-2021-b950000d2b vendor-advisoryx_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-listx_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-listx_refsource_MLIST
- GLSA-202107-05 vendor-advisoryx_refsource_GENTOO
- x_refsource_CONFIRM
- x_refsource_MISC
- x_refsource_MISC
- x_refsource_CONFIRM
- x_refsource_MISC
- x_refsource_MISC
- https://nvd.nist.gov/vuln/detail/CVE-2021-3517 advisory
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/QVM4UJ3376I6ZVOYMHBNX4GY3NIV52WV/ url
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/BZOMV5J4PMZAORVT64BKLV6YIZAFDGX6/ url
- https://lists.apache.org/thread.html/rf4c02775860db415b4955778a131c2795223f61cb8c6a450893651e4@%3Cissues.bookkeeper.apache.org%3E url
- https://lists.apache.org/thread.html/r58af02e294bd07f487e2c64ffc0a29b837db5600e33b6e698b9d696b@%3Cissues.bookkeeper.apache.org%3E url
- https://cert-portal.siemens.com/productcert/html/ssa-398330.html url