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: CVE-2022-24836 CVE-2022-29181 security-advisories@github.com Mickey Jin @patch1t Tommy Muir @Muirey03 John Aakerblom @jaakerblom Antonio Zekic @antoniozekic Weijia Dai @dwj1210 Momo SecurityIan Beer Google Project ZeroFelix Poulin-Belanger pattern-f @pattern_F_ Ant Security LightAdam Doupé ASU SEFCOMApple Adam M. CVE-2022-46716 Mickey Jin @patch1t Offensive SecurityCsaba Fitzl @theevilbit Offensive SecurityJiwon Park Mieszko Wawrzyniak an anonymous researcher Ivan Fratric Google Project ZeroKirtiKumar Anandrao Ramchandani Michael (Biscuit) Thomas Wojciech Reguła @_r3ggi SecuRing @real_as3617 Hyeon Park @tree_segment Team ApplePIEMaddie Stone Google Project ZeroChengGang Wu Institute of Computing TechnologyYan Kang Institute of Computing TechnologyYuHao Hu Institute of Computing TechnologyYue Sun Institute of Computing TechnologyJiming Wang Institute of Computing Technology Institute of Computing TechnologyJiKai Ren Institute of Computing TechnologyHang Shu Institute of Computing TechnologyChinese Academy SciencesKirtiKumar Anandrao Ramchandani (kirtikumarar.com) hazbinhotel Trend Micro Zero Day InitiativeSamuel Groß Google V8 SecurityDohyun Lee @l33d0hyun DNSLab at Korea UniversityRyan Shin IAAI SecLab at Korea UniversityClément Lecigne Google's Threat Analysis GroupThijs Alkemade @xnyhps Computest Sector 7CVE-2022-35252 Linus Henze Pinauten GmbHYonghwi Jin @jinmo123 TheoriJohn Balestrieri TinrocketMickey Jin @patch1t Trend MicroPan ZhenPeng @Peterpan0927 STAR Labs SG PteABC Research s.r.o.
Affected Software | Affected Version | How to fix |
---|---|---|
rubygems/nokogiri | <1.13.4 | 1.13.4 |
redhat/rubygem-nokogiri | <0:1.13.8-1.el8 | 0:1.13.8-1.el8 |
redhat/nokogiri | <1.13.4 | 1.13.4 |
macOS Ventura | <13.1 | 13.1 |
Nokogiri | <1.13.4 | |
Red Hat Fedora | =34 | |
Red Hat Fedora | =35 | |
Red Hat Fedora | =36 | |
Debian Linux | =9.0 | |
Debian Linux | =10.0 | |
macOS | >=13.0<13.1 |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
(Appears in the following advisories)
(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)