CVE-2022-24836: USN-9363-1: Nokogiri vulnerabilities

Vulnerability · Reported by Ubuntu Security Notices · · CWE-1333, CWE-400

Severity
High Risk score 75/100
CVSS
7.5 v3.1 · from NVD
Exploit chance (EPSS)
3.52% Higher than 90% of CVEs
Known exploited
No Not in CISA KEV

Summary

It was discovered that Nokogiri used an inefficient regular expression when detecting the encoding of HTML documents. An attacker could possibly use this issue to cause Nokogiri to consume excessive resources, leading to a denial of service. (CVE-2022-24836) It was discovered that Nokogiri incorrectly checked the bounds of indexes into node sets, leading to an out-of-bounds read. An attacker could possibly use this issue to cause Nokogiri to crash, resulting in a denial of service. (CVE-2026-57235) It was discovered that Nokogiri incorrectly handled setting an invalid document encoding, leading to a use-after-free. An attacker could possibly use this issue to cause Nokogiri to crash, resulting in a denial of service, or obtain sensitive information. (CVE-2026-57236) It was discovered that Nokogiri incorrectly handled replacing the value of an XML attribute, leading to a use-after-free. An attacker could possibly use this issue to cause Nokogiri to crash, resulting in a denial of service. (CVE-2026-57435) It was discovered that Nokogiri used inefficient regular expressions when tokenizing CSS selectors. An attacker could possibly use this issue to cause Nokogiri to consume excessive

How this vulnerability can be exploited

An attacker can exploit this vulnerability remotely over the network, without any login, and without any action from a user. Attack complexity is low, so no special conditions are needed. If successful, the attacker could crash or disrupt the service.

Is it being exploited?

The EPSS model estimates a 3.52% chance this CVE will be exploited in the next 30 days, which is elevated and higher than 90% of all published CVEs.

Patch priority and what to do

Patch as soon as possible, ideally within days. It is remotely reachable or critical severity, so exposure to the internet greatly increases risk. 1) Check whether you run the affected product and version. 2) Apply the vendor update or patch listed in the advisory. 3) Until patched, restrict network access to the service (firewall, VPN, WAF rules). 4) Review logs for signs of exploitation since the publication date.

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

See what each part means in the official CVSS calculator ↗

Tags

CVE-2022-24836

Sources & references

How this data is collected: methodology & sources.

Run this software? Get free alerts for new vulnerabilities →

Need to block attackers? Free hourly IOC blocklists (IPs, domains, URLs, hashes) →

Open the live threat dashboard →

Subscribe via RSS.