CVE-2022-24836 Inefficient Regular Expression Complexity in Nokogiri
An attacker can cause a denial of service in applications using Nokogiri by submitting HTML documents that trigger excessive backtracking in encoding detection regexes.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2022-24836?
CVE-2022-24836 is a high-severity denial of service vulnerability in Apple Macos, published on 11 Apr 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.
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.
Which versions are affected by CVE-2022-24836?
2 open source packages ship an affected version, including nokogiri. It affects 4 products.
| Package | Affected | Fixed in |
|---|---|---|
nokogiri RubyGems | All versions | 1.13.4 |
nokogiri RubyGems | All versions | 1.13.4 |
Products include Apple Macos, Debian Debian Linux, Fedoraproject Fedora, Nokogiri Nokogiri.
How do I fix CVE-2022-24836?
Upgrade nokogiri to 1.13.4 or later.
Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.
Is CVE-2022-24836 being exploited?
There is no known exploitation of CVE-2022-24836 in the wild and no public exploit code.
Other vulnerabilities in Apple Macos
Sources
Also known as DEBIAN-CVE-2022-24836, DLA-3003-1, DLA-3868-1, GHSA-crjr-9rc5-ghw8, MGASA-2022-0164, OESA-2022-1644 and 1 more.