# CVE-2021-3518: Nokogiri Implements libxml2 version vulnerable to use-after-free

- Severity: High 8.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 18.9%, higher than 97% of CVEs (2026-12-01)
- Published: 2021-05-18T11:20:24.000Z
- Modified: 2026-10-14T10:17:44.110Z
- Also known as: GHSA-v4f8-2847-rwm7
- Weaknesses: CWE-416
- Assigned by: redhat

## Description

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.

(As written by CVE List.)

## Affected

- libxml2: libxml2 2.9.11
- nokogiri (RubyGems): before 1.11.4
- xmlsoft libxml2: before 2.9.11
- debian debian_linux: 9.0
- redhat jboss_core_services: no versions given
- redhat enterprise_linux: 8.0
- fedoraproject fedora: 33; 34
- netapp active_iq_unified_manager: no versions given
- netapp clustered_data_ontap: no versions given
- netapp clustered_data_ontap_antivirus_connector: no versions given
- netapp manageability_software_development_kit: no versions given
- netapp ontap_select_deploy_administration_utility: no versions given
- netapp snapdrive: no versions given
- netapp hci_h410c_firmware: no versions given
- oracle communications_cloud_native_core_network_function_cloud_native_environment: 1.10.0
- oracle enterprise_manager_base_platform: 13.4.0.0; 13.5.0.0
- oracle enterprise_manager_ops_center: 12.4.0.0
- oracle mysql_workbench: up to 8.0.26
- oracle peoplesoft_enterprise_peopletools: 8.58
- oracle real_user_experience_insight: 13.4.1.0; 13.5.1.0

## Every score

- GitHub: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 6.8 Medium `AV:N/AC:M/Au:N/C:P/I:P/A:P`

## References

- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/QVM4UJ3376I6ZVOYMHBNX4GY3NIV52WV/> (vendor-advisory)
- <https://lists.debian.org/debian-lts-announce/2021/05/msg00008.html> (mailing-list, third-party-advisory, web)
- <https://bugzilla.redhat.com/show_bug.cgi?id=1954242> (issue-tracking, patch, third-party-advisory, web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/BZOMV5J4PMZAORVT64BKLV6YIZAFDGX6/> (vendor-advisory)
- <https://lists.apache.org/thread.html/rf4c02775860db415b4955778a131c2795223f61cb8c6a450893651e4%40%3Cissues.bookkeeper.apache.org%3E> (mailing-list)
- <https://lists.apache.org/thread.html/r58af02e294bd07f487e2c64ffc0a29b837db5600e33b6e698b9d696b%40%3Cissues.bookkeeper.apache.org%3E> (mailing-list)
- <https://security.gentoo.org/glsa/202107-05> (third-party-advisory, vendor-advisory, web)
- <https://security.netapp.com/advisory/ntap-20210625-0002/> (third-party-advisory)
- <http://seclists.org/fulldisclosure/2021/Jul/58> (mailing-list, third-party-advisory, web)
- <http://seclists.org/fulldisclosure/2021/Jul/54> (mailing-list, third-party-advisory, web)
- <http://seclists.org/fulldisclosure/2021/Jul/55> (mailing-list, third-party-advisory, web)
- <http://seclists.org/fulldisclosure/2021/Jul/59> (mailing-list, third-party-advisory, web)
- <https://www.oracle.com/security-alerts/cpuoct2021.html> (patch, third-party-advisory, web)
- <https://support.apple.com/kb/HT212605> (third-party-advisory, web)
- <https://support.apple.com/kb/HT212602> (third-party-advisory, web)
- <https://support.apple.com/kb/HT212601> (third-party-advisory, web)
- <https://support.apple.com/kb/HT212604> (third-party-advisory, web)
- <https://www.oracle.com/security-alerts/cpuapr2022.html> (patch, third-party-advisory, web)
- <https://www.oracle.com/security-alerts/cpujul2022.html> (not-applicable, web)
- <https://cert-portal.siemens.com/productcert/html/ssa-398330.html>
- <https://nvd.nist.gov/vuln/detail/CVE-2021-3518> (advisory)
- <https://security.netapp.com/advisory/ntap-20210625-0002> (web)
- <https://nokogiri.org/CHANGELOG.html#1114-2021-05-14> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/QVM4UJ3376I6ZVOYMHBNX4GY3NIV52WV> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/BZOMV5J4PMZAORVT64BKLV6YIZAFDGX6> (web)
- <https://lists.apache.org/thread.html/rf4c02775860db415b4955778a131c2795223f61cb8c6a450893651e4@%3Cissues.bookkeeper.apache.org%3E> (web)
- <https://lists.apache.org/thread.html/r58af02e294bd07f487e2c64ffc0a29b837db5600e33b6e698b9d696b@%3Cissues.bookkeeper.apache.org%3E> (web)
- <https://github.com/sparklemotion/nokogiri/blob/2edbbef95f1dc12c1ddc5ebda71b9159026245fe/CHANGELOG.md?plain=1#L722> (web)
- <https://github.com/sparklemotion/nokogiri> (package)
- <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/nokogiri/CVE-2021-3518.yml> (web)

## Sources

- CVE List: [CVE-2021-3518](https://www.cve.org/CVERecord?id=CVE-2021-3518), CVE Terms of Use, modified 2026-10-14
- GitHub Advisory Database: [GHSA-v4f8-2847-rwm7](https://github.com/advisories/GHSA-v4f8-2847-rwm7), CC-BY-4.0, modified 2024-03-09
- NVD: [CVE-2021-3518](https://nvd.nist.gov/vuln/detail/CVE-2021-3518), Public domain, modified 2026-10-14

---

Page: https://cve.day/CVE-2021-3518 · Whole record: https://cve.day/CVE-2021-3518.json · Rebuilt by cve.day 2026-11-25T22:58:01.451Z
