VDB

CVE-2021-3517

CVE-2021-3517 PUBLISHED CVSS 7.5 HIGH

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.

PackageEcosystemFixed in
libxml2NuGet2.9.11
nokogiriRubyGems1.11.4
libxml2.vc140_xp.mt.static.x86NuGet2.9.11
libxml2conan.io2.9.11
libxml2Alpine2.9.11-r0, 2.9.10-r7, 2.9.10-r6, 2.9.10-r5, 2.9.9-r5
libxml2Arch Linux2.9.11-1
java-11-amazon-correttoAmazon Linux1:11.0.13+8-1.amzn2
java-11-amazon-corretto-headlessAmazon Linux1:11.0.13+8-1.amzn2
qt5-qtwebengineAlpine5.15.3_git20211112-r0
java-11-amazon-corretto-javadocAmazon Linux1:11.0.13+8-1.amzn2
libxml2Ubuntu:20.04:LTS2.9.10+dfsg-5ubuntu0.20.04.1
libxml2Ubuntu:18.04:LTS2.9.4+dfsg1-6.1ubuntu1.4

3 more packages have a fixed version. See every fix in Lookup.

Risk scores

CVSS 2.0
7.5

Affected products

VendorProductVersions
n/alibxml2libxml2 2.9.11
ConanCenterlibxml20
RubyGemsnokogiri0
alpinelibxml20, 0, 0
archlibxml20
amazon:2java-11-amazon-corretto0
amazon:2java-11-amazon-corretto-headless0
alpineqt5-qtwebengine0
amazon:2java-11-amazon-corretto-javadoc0
SiemensSIPLUS S7-1500 CPU 1518-4 PN/DP MFP3.1.0
n/alibxml22.9.11
NuGetlibxml2.vc140_xp.mt.static.x860
SiemensSIMATIC S7-1500 CPU 1518F-4 PN/DP MFP3.1.0
amazon:2libxml2-static0
NuGetlibxml20
SiemensSIMATIC S7-1500 CPU 1518-4 PN/DP MFP3.1.0
amazon:2libxml2-python0
amazon:2libxml20
amazon:2libxml2-devel0

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

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›