First published: Fri May 20 2022(Updated: )
### Summary Nokogiri `< v1.13.6` does not type-check all inputs into the XML and HTML4 SAX parsers. For CRuby users, this may allow specially crafted untrusted inputs to cause illegal memory access errors (segfault) or reads from unrelated memory. ### Severity The Nokogiri maintainers have evaluated this as **High 8.2** (CVSS3.1). ### Mitigation CRuby users should upgrade to Nokogiri `>= 1.13.6`. JRuby users are not affected. ### Workarounds To avoid this vulnerability in affected applications, ensure the untrusted input is a `String` by calling `#to_s` or equivalent. ### Credit This vulnerability was responsibly reported by @agustingianni and the Github Security Lab.
Credit: CVE-2022-24836 CVE-2022-29181 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. security-advisories@github.com
Affected Software | Affected Version | How to fix |
---|---|---|
rubygems/nokogiri | <1.13.6 | 1.13.6 |
macOS Ventura | <13.1 | 13.1 |
Nokogiri | <1.13.6 | |
macOS | >=13.0<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-29181 is a vulnerability in the Nokogiri library prior to version 1.13.6 that allows specially crafted inputs to cause illegal memory access errors or reads from unrelated memory.
The severity of CVE-2022-29181 is high, with a severity score of 8.2.
The affected software versions are Nokogiri prior to version 1.13.6 and Apple macOS Ventura up to version 13.1.
To mitigate the risk of CVE-2022-29181, update Nokogiri to version 1.13.6 and Apple macOS Ventura to version 13.1.
More information about CVE-2022-29181 can be found at the following references: [Apple Support](https://support.apple.com/en-us/HT213532), [GitHub Security Advisory](https://github.com/sparklemotion/nokogiri/security/advisories/GHSA-xh29-r2w5-wx8m), [NVD](https://nvd.nist.gov/vuln/detail/CVE-2022-29181).