First published: Mon Apr 11 2022(Updated: )
## Summary Nokogiri `< v1.13.4` contains an inefficient regular expression that is susceptible to excessive backtracking when attempting to detect encoding in HTML documents. ## Mitigation Upgrade to Nokogiri `>= 1.13.4`. ## Severity The Nokogiri maintainers have evaluated this as [**High Severity** 7.5 (CVSS3.1)](https://www.first.org/cvss/calculator/3.1#CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H). ## References [CWE-1333](https://cwe.mitre.org/data/definitions/1333.html) Inefficient Regular Expression Complexity ## Credit This vulnerability was reported by HackerOne user ooooooo_q (ななおく).
Credit: security-advisories@github.com security-advisories@github.com
Affected Software | Affected Version | How to fix |
---|---|---|
redhat/rubygem-nokogiri | <0:1.13.8-1.el8 | 0:1.13.8-1.el8 |
rubygems/nokogiri | <1.13.4 | 1.13.4 |
Nokogiri Nokogiri | <1.13.4 | |
Fedoraproject Fedora | =34 | |
Fedoraproject Fedora | =35 | |
Fedoraproject Fedora | =36 | |
Debian Debian Linux | =9.0 | |
Debian Debian Linux | =10.0 | |
Apple macOS | >=13.0<13.1 | |
redhat/nokogiri | <1.13.4 | 1.13.4 |
<13.1 | 13.1 |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
(Found alongside the following vulnerabilities)
CVE-2022-24836 is a vulnerability in Nokogiri < v1.13.4 that allows for excessive backtracking when attempting to detect encoding in HTML documents.
To mitigate the CVE-2022-24836 vulnerability, upgrade to Nokogiri >= 1.13.4.
CVE-2022-24836 has a severity rating of high.
The affected software includes Nokogiri < 1.13.4, macOS Ventura 13.1, rubygem-nokogiri 0:1.13.8-1.el8, and redhat/nokogiri.
You can find more information about CVE-2022-24836 on the following references: - Apple Support: [https://support.apple.com/en-us/HT213532](https://support.apple.com/en-us/HT213532) - GitHub Security Advisory: [https://github.com/sparklemotion/nokogiri/security/advisories/GHSA-crjr-9rc5-ghw8](https://github.com/sparklemotion/nokogiri/security/advisories/GHSA-crjr-9rc5-ghw8) - NVD: [https://nvd.nist.gov/vuln/detail/CVE-2022-24836](https://nvd.nist.gov/vuln/detail/CVE-2022-24836)