CVE-2021-3518
Nokogiri Implements libxml2 version vulnerable to use-after-free
Reported by redhat · Published May 18, 2021
nokogiri is fixed in 1.11.4 (RubyGems)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| nokogiri | RubyGems | 1.11.4 |
| libxml2.vc140_xp.mt.static.x86 | NuGet | 2.9.11 |
| libxml2-static | Amazon Linux | 2.9.1-6.amzn2.5.4 |
| libxml2-python | Amazon Linux | 2.9.1-6.amzn2.5.4 |
| libxml2-devel | Amazon Linux | 2.9.1-6.amzn2.5.4 |
| libxml2 | Arch Linux | 2.9.11-1 |
| libxml2 | conan.io | 2.9.11 |
| SIPLUS S7-1500 CPU 1518-4 PN/DP MFP | Siemens | 3.1.5 |
| SIMATIC S7-1500 CPU 1518-4 PN/DP MFP | Siemens | 3.1.5 |
| libxml2 | Ubuntu:Pro:16.04:LTS | 2.9.3+dfsg1-1ubuntu0.7+esm1 |
| libxml2 | xmlsoft | 2.9.11 |
| mysql_workbench | oracle | 8.0.26 |
2 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 |
| amazon:2 | libxml2-static | 0 |
| Siemens | SIPLUS S7-1500 CPU 1518-4 PN/DP MFP | 3.1.0 |
| Siemens | SIMATIC S7-1500 CPU 1518-4 PN/DP MFP | 3.1.0 |
| amazon:2 | libxml2-python | 0 |
| amazon:2 | libxml2-devel | 0 |
| arch | libxml2 | 0 |
| Siemens | SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP | 3.1.0 |
| n/a | libxml2 | 2.9.11 |
| NuGet | libxml2 | 0 |
| RubyGems | nokogiri | 0 |
| amazon:2 | libxml2 | 0 |
| NuGet | libxml2.vc140_xp.mt.static.x86 | 0 |
| alpine | libxml2 | 0, 0, 0 |
| ConanCenter | libxml2 | 0 |
Timeline
- Apr 27, 2021 CVE Published
- May 19, 2021 EPSS Score (30 in total, the first dated here)
- Nov 7, 2023 CVE Updated
- Dec 16, 2025 PoC Published
- Mar 7, 2026 Distribution Patch (12 in total, the first dated here)
- Mar 7, 2026 Security Advisory (17 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-3518
vulnetix vdb fixes CVE-2021-3518
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-3518/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
- 20210723 APPLE-SA-2021-07-21-5 watchOS 7.6 mailing-listx_refsource_FULLDISC
- 20210723 APPLE-SA-2021-07-21-1 iOS 14.7 and iPadOS 14.7 mailing-listx_refsource_FULLDISC
- 20210723 APPLE-SA-2021-07-21-2 macOS Big Sur 11.5 mailing-listx_refsource_FULLDISC
- 20210723 APPLE-SA-2021-07-21-6 tvOS 14.7 mailing-listx_refsource_FULLDISC
- x_refsource_MISC
- x_refsource_CONFIRM
- x_refsource_CONFIRM
- x_refsource_CONFIRM
- x_refsource_CONFIRM
- x_refsource_MISC
- x_refsource_MISC
- https://nvd.nist.gov/vuln/detail/CVE-2021-3518 advisory
…and 5 more