Skip to content
VulniPulse
Advisory severityHigh7.5Red Hat Linux

High [CVE-2022-50998] Denial of Service and Memory Corruption via Crafted XML Input

This high-severity Red Hat Linux advisory covers CVE-2022-50998.

Aggregated and source-linked by VulniPulse. Data sources, validation and limitations.

CVE-2022-50998 Source published Source updated

VulniPulse record published Record updated

Affected products & platforms
Red Hat LinuxUnclassified
Open source advisory

Android app · Google Play

Monitor future Red Hat Linux CVEs from your phone.

Choose a whole vendor or a precise platform, then receive matching security advisories by phone notification, email, or both. Coverage follows 34 official vendor sources and 160+ reviewed platform categories.

Matching phone alertsOptional email delivery

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 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.) A flaw was found in Nokogiri, a Ruby gem for parsing XML and HTML documents.

This vulnerability arises from issues within its bundled libxml2 library, specifically involving data corruption from entity reference cycles and integer overflows when processing large XML files.

A remote attacker could exploit these flaws by providing specially crafted XML input, potentially leading to denial of service or memory corruption within the application. Red Hat products utilizing `rubygem-nokogiri` are affected, making systems susceptible if they handle untrusted XML data.

The flaw stems from underlying issues in `libxml2` bundled with Nokogiri, which could be triggered without complex attack vectors.

Affected versions
  • < 1.13.9
  • < 9.14

Official advisory · high-confidence parse· fetched 13 days ago·verify at source

Fixed versions

No fixed release is recorded yet. That does not prove no patch exists — confirm against the vendor advisory.

Official advisory · high-confidence parse· fetched 13 days ago·verify at source

Mitigation checklist

Recommended fix / mitigation
  • To mitigate this Important vulnerability, applications processing untrusted XML input via Nokogiri should implement strict input validation and sanitization. Restrict the sources of XML input to trusted origins only. Where possible, isolate or sandbox applications that process external XML to limit the potential blast radius of a successful exploitation.

Official advisory · high-confidence parse· fetched 13 days ago·verify at source

Discussion(0)

No comments yet. Share field notes, upgrade gotchas, or questions — verify against the vendor advisory before acting on community advice.

Sign in to join the discussion.