# CVE-2021-3517: Nokogiri contains libxml Out-of-bounds Write vulnerability

- Severity: High 8.6 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/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): 12.8%, higher than 96% of CVEs (2026-12-01)
- Published: 2021-05-19T13:45:00.000Z
- Modified: 2026-10-14T10:17:43.473Z
- Also known as: GHSA-jw9f-hh49-cvp9
- Weaknesses: CWE-125, CWE-787
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: redhat

## Description

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.

(As written by CVE List.)

## Affected

- libxml2: libxml2 2.9.11
- nokogiri (RubyGems): before 1.11.4
- xmlsoft libxml2: before 2.9.11
- redhat jboss_core_services: no versions given
- redhat enterprise_linux: 8.0
- fedoraproject fedora: 33; 34
- debian debian_linux: 9.0
- 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 e-series_santricity_os_controller: from 11.0.0 up to 11.70.1
- netapp e-series_santricity_storage_manager: no versions given
- netapp e-series_santricity_web_services: no versions given
- netapp hci_management_node: no versions given
- netapp manageability_software_development_kit: no versions given
- netapp oncommand_insight: no versions given
- netapp oncommand_workflow_automation: no versions given
- netapp ontap_select_deploy_administration_utility: no versions given
- netapp santricity_unified_manager: no versions given
- netapp snapdrive: no versions given
- netapp snapmanager: no versions given
- netapp solidfire: 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 mysql_workbench: up to 8.0.26
- oracle openjdk: 8
- oracle peoplesoft_enterprise_peopletools: 8.58
- oracle real_user_experience_insight: 13.4.1.0; 13.5.1.0
- oracle zfs_storage_appliance_kit: 8.8

## Every score

- CISA-ADP: CVSS:3.1 8.6 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H`
- GitHub: CVSS:3.1 8.6 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H`
- NVD: CVSS:3.1 8.6 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H`
- NVD: CVSS:2.0 7.5 High `AV:N/AC:L/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=1954232> (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)
- <https://www.oracle.com/security-alerts/cpuoct2021.html> (patch, third-party-advisory, web)
- <https://www.oracle.com/security-alerts/cpujan2022.html> (patch, third-party-advisory, web)
- <https://security.netapp.com/advisory/ntap-20211022-0004/> (third-party-advisory)
- <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-3517> (advisory)
- <https://github.com/sparklemotion/nokogiri/issues/2233> (web)
- <https://github.com/sparklemotion/nokogiri/issues/2274> (web)
- <https://security.netapp.com/advisory/ntap-20211022-0004> (web)
- <https://security.netapp.com/advisory/ntap-20210625-0002> (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://gitlab.gnome.org/GNOME/libxml2/-/commit/8598060bacada41a0eb09d95c97744ff4e428f8e> (web)
- <https://github.com/sparklemotion/nokogiri/blob/7c19ef5cc6b7c5c36827dd5495f857c6877ec8cf/CHANGELOG.md?plain=1#L579> (web)
- <https://github.com/sparklemotion/nokogiri> (package)
- <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/nokogiri/CVE-2021-3517.yml> (web)

## Sources

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

---

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