Vulnerability · Published Apr 11, 2022 · Assigned by GitHub_M
CVE-2022-24836Inefficient Regular Expression Complexity in Nokogiri
High 7.5
In plain English
A high-severity uncontrolled resource consumption in nokogiri from sparklemotion. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 3.5% (higher than 89% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.20 | ruby-nokogiri | 1.13.4-r0 | ALPINE-CVE-2022-24836 |
| Alpine:v3.21 | ruby-nokogiri | 1.13.4-r0 | ALPINE-CVE-2022-24836 |
| Alpine:v3.22 | ruby-nokogiri | 1.13.4-r0 | ALPINE-CVE-2022-24836 |
| Alpine:v3.23 | ruby-nokogiri | 1.13.4-r0 | ALPINE-CVE-2022-24836 |
| Alpine:v3.24 | ruby-nokogiri | 1.13.4-r0 | ALPINE-CVE-2022-24836 |
| Debian:12 | ruby-nokogiri | 1.13.5+dfsg-1 | DEBIAN-CVE-2022-24836 |
| Debian:13 | ruby-nokogiri | 1.13.5+dfsg-1 | DEBIAN-CVE-2022-24836 |
| Debian:14 | ruby-nokogiri | 1.13.5+dfsg-1 | DEBIAN-CVE-2022-24836 |
| Rocky Linux:8 | libdb | 0:5.3.28-42.el8_4 | RLSA-2022:8506 |
| RubyGems | nokogiri | 1.13.4 | GHSA-crjr-9rc5-ghw8 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| sparklemotion | nokogiri | < 1.13.4 |
Weakness: CWE-400, CWE-1333 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
References
- https://github.com/sparklemotion/nokogiri/security/advisories/GHSA-crjr-9rc5-ghw8
- https://github.com/sparklemotion/nokogiri/commit/e444525ef1634b675cd1cf52d39f4320ef0aecfd
- FEDORA-2022-9ed7641ce0 vendor-advisory
- FEDORA-2022-132c6d7c2e vendor-advisory
- FEDORA-2022-d231cb5e1f vendor-advisory
- [debian-lts-announce] 20220513 [SECURITY] [DLA 3003-1] ruby-nokogiri security update mailing-list
- GLSA-202208-29 vendor-advisory
- [debian-lts-announce] 20221012 [SECURITY] [DLA 3149-1] ruby-nokogiri security update mailing-list
- https://support.apple.com/kb/HT213532
- 20221220 APPLE-SA-2022-12-13-4 macOS Ventura 13.1 mailing-list
- https://lists.debian.org/debian-lts-announce/2024/09/msg00010.html