← back
CVE-2022-24836highCWE-1333CWE-400

Inefficient Regular Expression Complexity in Nokogiri

21Vexday Risk Score

No sign of exploitation. No public exploitation artifact known so far.

ssvc Trackcvss 7.5epss 3.5%
exploitation probability
3.5%top 12% of all CVEs
observed exploitation
nono source reports it
In short

Nokogiri versions before 1.13.4 have a poorly designed search pattern that can be exploited to freeze or crash applications when processing specially crafted HTML documents. Attackers can cause denial of service by sending HTML with encoding that triggers excessive processing.

Technical detail

CVE-2022-24836 involves ReDoS (Regular Expression Denial of Service) in Nokogiri's HTML encoding detection mechanism via inefficient regex backtracking (CWE-1333, CWE-400). The attack vector requires sending malformed HTML to an application using vulnerable Nokogiri versions; impact is application unavailability through CPU exhaustion.

Summary generated and translated by AI from the official description.
Nokogiri is an open source XML and HTML library for Ruby. Nokogiri `< v1.13.4` contains an inefficient regular expression that is susceptible to excessive backtracking when attempting to detect encoding in HTML documents. Users are advised to upgrade to Nokogiri `>= 1.13.4`. There are no known workarounds for this issue.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Affected products
sparklemotion · nokogiri