PatchSiren

PatchSiren cyber security CVE debrief

CVE-2021-47996 sparklemotion CVE debrief

Nokogiri before 1.11.4, when using the CRuby implementation and the packaged libxml2 version 2.9.10, is vulnerable to multiple issues including memory leak (CVE-2019-20388), global buffer over-read (CVE-2020-24977), heap-based buffer overflow (CVE-2021-3517), and out-of-bounds read (CVE-2021-3518). These vulnerabilities were addressed in libxml2 version 2.9.12. The CVE record was published on 2026-08-25T16:16:42.930Z and has not been modified since then. Users of Nokogiri before version 1.11.4, especially those processing crafted XML documents, should be aware of the potential for denial of service, information disclosure, or memory corruption.

Vendor
sparklemotion
Product
nokogiri
CVSS
HIGH 8.7
CISA KEV
Not listed in stored evidence
Original CVE published
2026-08-25
Original CVE updated
2026-09-01
Advisory published
2026-08-25
Advisory updated
2026-09-01

Who should care

Users of Nokogiri before version 1.11.4, especially those processing crafted XML documents, should be aware of the potential for denial of service, information disclosure, or memory corruption. Organizations using Nokogiri should prioritize updating to version 1.11.4 or later to address multiple vulnerabilities in the bundled libxml2 library. Security teams and vulnerability management teams should review the affected scope, severity, and vendor guidance to validate affected systems and plan for updates or mitigations.

Technical summary

Nokogiri before 1.11.4, when using the CRuby implementation and the packaged libxml2 version 2.9.10, is vulnerable to multiple issues including memory leak (CVE-2019-20388), global buffer over-read (CVE-2020-24977), heap-based buffer overflow (CVE-2021-3517), and out-of-bounds read (CVE-2021-3518). These vulnerabilities were addressed in libxml2 version 2.9.12. The affected product deployments should be reviewed for potential exposure, and owners should be assigned for follow-up. Security teams should validate affected scope, severity, and vendor guidance to plan for updates or mitigations through normal change control. Users processing crafted XML documents are at risk of denial of service, information disclosure, or memory corruption. Updating to Nokogiri version 1.11.4 or later is recommended to address these vulnerabilities.

Defensive priority

Organizations using Nokogiri should prioritize updating to version 1.11.4 or later to address multiple vulnerabilities in the bundled libxml2 library.

Recommended defensive actions

  • Update Nokogiri to version 1.11.4 or later
  • Review and apply patches for libxml2 vulnerabilities
  • Monitor for crafted XML documents that may lead to denial of service, information disclosure, or memory corruption
  • Confirm whether affected product deployments exist in managed environments and assign an owner for follow-up.
  • Review the supplied official advisory or CVE record to validate affected scope, severity, and vendor guidance.
  • Plan vendor-supported updates or mitigations through normal change control where exposure is confirmed.
  • Check relevant monitoring, detection, and logs for exposed assets that need extra review.

Evidence notes

The Nokogiri package before version 1.11.4, when using the bundled libxml2 version 2.9.10, is affected by several vulnerabilities including a memory leak, global buffer over-read, heap-based buffer overflow, and out-of-bounds read. These issues were addressed in libxml2 version 2.9.12. Organizations using Nokogiri should prioritize updating to version 1.11.4 or later to address multiple vulnerabilities in the bundled libxml2 library.

Sources and references

Verified primary and authoritative sources

  • CVE-2021-47996 CVE Program record

    Publisher, destination, and source semantics verified

    URL: https://www.cve.org/CVERecord?id=CVE-2021-47996

    CVE Program - Official CVE Program record with source-provided CVE metadata.

  • CVE-2021-47996 NVD vulnerability detail

    Publisher, destination, and source semantics verified

    URL: https://nvd.nist.gov/vuln/detail/CVE-2021-47996

    NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.

Supplemental references

Methodology and review provenance

AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.