SecurityContext

CVE-2022-24836: Nokogiri - Regular Expression Denial of Service

  • Cve: CVE-2022-24836
  • Name: Nokogiri - Regular Expression Denial of Service
  • 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.
  • Impact: Attackers can cause denial of service by triggering excessive backtracking during encoding detection.
  • Remediation: Upgrade to Nokogiri >= 1.13.4.
  • Vulnerability impact: denial_of_service
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: high
  • Cvss score: 7.5
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
  • Epss score: 0.03519
  • Epss percentile: 0.89516
  • Assignee: [email protected]
  • Published at: 2022-04-11T22:15:07Z
  • Age in days: 1688
  • Modified at: 2026-06-17T04:32:37Z
  • Patch available: yes
  • References total: 11
  • Products total: 4
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2022-24836
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
  • Not known: vulnerability type, requirements, hackerone

Cwe

IdName
CWE-400Uncontrolled Resource Consumption
CWE-1333Inefficient Regular Expression Complexity

References

Same in every row:

  • Source: nvd
UrlTags
https://github.com/sparklemotion/nokogiri/commit/e444525ef1634b675cd1cf52d39f4320ef0aecfdPatch, Third Party Advisory
http://seclists.org/fulldisclosure/2022/Dec/23Mailing List, Third Party Advisory
https://github.com/sparklemotion/nokogiri/security/advisories/GHSA-crjr-9rc5-ghw8Third Party Advisory
https://lists.debian.org/debian-lts-announce/2022/05/msg00013.htmlMailing List, Third Party Advisory
https://lists.debian.org/debian-lts-announce/2022/10/msg00018.htmlMailing List, Third Party Advisory
https://security.gentoo.org/glsa/202208-29Third Party Advisory
https://support.apple.com/kb/HT213532Third Party Advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/6DHCOWMA5PQTIQIMDENA7R2Y5BDYAIYM/
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/OUPLBUZVM4WPFSXBEP2JS3R6LMKRTLFC/
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/XMDCWRQXJQ3TFSETPCEFMQ6RR6ME5UA3/

Products

Same in every row:

  • Platform bound: no
  • Sources: nvd
ProductAffectedUrl
nokogiri:nokogiri< 1.13.4/v1/products/nokogiri/nokogiri
debian:debian_linux= 10.0, = 9.0/v1/products/debian/debian_linux
fedoraproject:fedora= 36, = 35, = 34/v1/products/fedoraproject/fedora
apple:macos>= 13.0, < 13.1/v1/products/apple/macos

Projects

RepositoryLink kindsIndexedUrl
sparklemotion/nokogiricommit, package, releases, security_advisoryyes/v1/repositories/sparklemotion/nokogiri

Index

  • Repositories: 106
  • Repositories high signal: 20
  • Packages: 1

Exploitation

  • Remote: yes
  • Exposed hosts: 4739835
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports