CVE Catalog

CVE-2022-50998

HighCVSS 7.5
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.35%

28th percentile - higher than 28% of all known CVEs

Summary

Nokogiri before 1.13.9 (CRuby implementation using packaged libraries) bundles libxml2 v2.9.14, which is affected by CVE-2022-40304 (data corruption / double-free) and CVE-2022-40303 (integer overflows). Processing crafted XML input may lead to denial of service or memory corruption.

Risk Assessment

An attacker can exploit these vulnerabilities to cause application crashes or memory corruption, potentially leading to data integrity and availability issues.

Recommendation

Upgrade Nokogiri to version 1.13.9 or later, which includes libxml2 v2.10.3.

Other vulnerabilities in Nokogiri

See all
Original NVD description (English source)

Nokogiri before 1.13.9 (CRuby implementation using packaged libraries) bundles libxml2 v2.9.14, which is affected by CVE-2022-40304 (data corruption / double-free from an entity reference cycle when entity content is allocated from a dict) and CVE-2022-40303 (integer overflows when parsing with XML_PARSE_HUGE). Nokogiri 1.13.9 upgrades the packaged libxml2 to v2.10.3 to address these issues. Processing crafted XML input may lead to denial of service or memory corruption. (The advisory also references CVE-2022-2309, a NULL pointer dereference via iterwalk/canonicalize, which maintainers determined does not affect Nokogiri users.)

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