CVE Catalog

CVE-2022-51000

CriticalCVSS 9.8
Published: Translated: NVD NIST

Summary

Nokogiri before 1.13.2 ships vendored libxml2 2.9.12 and libxslt 1.1.34, which are affected by two upstream CVEs. Via CVE-2021-30560 in libxslt, an application transforming XML with untrusted XSL stylesheets is vulnerable to a denial-of-service attack. Via CVE-2022-23308 in libxml2, an application parsing an untrusted document with parse option DTDVALID set to true and NOENT set to false may be vulnerable to denial of service, memory disclosure, or code execution.

Risk Assessment

The organization may face service disruptions (DoS) or, in extreme cases, data leakage or remote code execution if it processes untrusted XML or XSL documents.

Recommendation

Upgrade Nokogiri to version 1.13.2 or later, which includes patched versions of libxml2 and libxslt.

Original NVD description (English source)

Nokogiri before 1.13.2 (CRuby, when using packaged libraries) ships vendored libxml2 2.9.12 and libxslt 1.1.34, which are affected by two upstream CVEs. Via CVE-2021-30560 in libxslt, an application transforming XML with untrusted XSL stylesheets is vulnerable to a denial-of-service attack. Via CVE-2022-23308 in libxml2, an application parsing an untrusted document with parse option DTDVALID set to true and NOENT set to false may be vulnerable to denial of service, memory disclosure, or code execution. Nokogiri 1.13.2 upgrades vendored libxml2 to 2.9.13 and libxslt to 1.1.35.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS