CVE-2022-24836
published high CVSS 3.1 · 7.5Inefficient Regular Expression Complexity in Nokogiri
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| sparklemotion | — | nokogiri< 1.13.4 | Affected | Not stated | GitHub_M |
| Alpine Linux | edge | ruby-nokogiri | Fixed | 1.13.4-r0 | Package fix record |
| Debian | bullseye | ruby-nokogiri | Advisory build | 1.11.1+dfsg-2+deb11u1 | DLA-3868-1 |
| SUSE / openSUSE | SLE-15 | ruby2.5-rubygem-nokogiriaarch64 | Advisory build | 1.8.5-150000.3.9.1 | SUSE-SU-2022:4015-1 |
| Rocky Linux | 8 | libdbsrc | Listed in advisory | Not stated | RLSA-2022:8506 |
| Alpine Linux | v3.16 | ruby-nokogiri | Fixed | 1.13.4-r0 | Package fix record |
| Alpine Linux | v3.17 | ruby-nokogiri | Fixed | 1.13.4-r0 | Package fix record |
| Alpine Linux | v3.18 | ruby-nokogiri | Fixed | 1.13.4-r0 | Package fix record |
Show 78 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Alpine Linux | v3.19 | ruby-nokogiri | Fixed | 1.13.4-r0 | Package fix record |
| Alpine Linux | v3.20 | ruby-nokogiri | Fixed | 1.13.4-r0 | Package fix record |
| Alpine Linux | v3.21 | ruby-nokogiri | Fixed | 1.13.4-r0 | Package fix record |
| Alpine Linux | v3.22 | ruby-nokogiri | Fixed | 1.13.4-r0 | Package fix record |
| Alpine Linux | v3.23 | ruby-nokogiri | Fixed | 1.13.4-r0 | Package fix record |
| Alpine Linux | v3.24 | ruby-nokogiri | Fixed | 1.13.4-r0 | Package fix record |
| Debian | buster | ruby-nokogiri | Advisory build | 1.10.0+dfsg1-2+deb10u1 | DLA-3149-1 |
| Debian | stretch | ruby-nokogiri | Advisory build | 1.6.8.1-1+deb9u2 | DLA-3003-1 |
| SUSE / openSUSE | SLE-15 | ruby2.5-rubygem-nokogirippc64le | Advisory build | 1.8.5-150000.3.9.1 | SUSE-SU-2022:4015-1 |
| SUSE / openSUSE | SLE-15 | ruby2.5-rubygem-nokogiris390x | Advisory build | 1.8.5-150000.3.9.1 | SUSE-SU-2022:4015-1 |
| SUSE / openSUSE | SLE-15 | ruby2.5-rubygem-nokogirix86_64 | Advisory build | 1.8.5-150000.3.9.1 | SUSE-SU-2022:4015-1 |
| SUSE / openSUSE | SLE-15-SP1 | ruby2.5-rubygem-nokogiriaarch64 | Advisory build | 1.8.5-150000.3.9.1 | SUSE-SU-2022:4015-1 |
| SUSE / openSUSE | SLE-15-SP1 | ruby2.5-rubygem-nokogirippc64le | Advisory build | 1.8.5-150000.3.9.1 | SUSE-SU-2022:4015-1 |
| SUSE / openSUSE | SLE-15-SP1 | ruby2.5-rubygem-nokogiris390x | Advisory build | 1.8.5-150000.3.9.1 | SUSE-SU-2022:4015-1 |
| SUSE / openSUSE | SLE-15-SP1 | ruby2.5-rubygem-nokogirix86_64 | Advisory build | 1.8.5-150000.3.9.1 | SUSE-SU-2022:4015-1 |
| SUSE / openSUSE | SLE-15-SP2 | ruby2.5-rubygem-nokogiriaarch64 | Advisory build | 1.8.5-150000.3.9.1 | SUSE-SU-2022:4015-1 |
| SUSE / openSUSE | SLE-15-SP2 | ruby2.5-rubygem-nokogirippc64le | Advisory build | 1.8.5-150000.3.9.1 | SUSE-SU-2022:4015-1 |
| SUSE / openSUSE | SLE-15-SP2 | ruby2.5-rubygem-nokogiris390x | Advisory build | 1.8.5-150000.3.9.1 | SUSE-SU-2022:4015-1 |
| SUSE / openSUSE | SLE-15-SP2 | ruby2.5-rubygem-nokogirix86_64 | Advisory build | 1.8.5-150000.3.9.1 | SUSE-SU-2022:4015-1 |
| SUSE / openSUSE | SLE-15-SP3 | ruby2.5-rubygem-nokogiriaarch64 | Advisory build | 1.8.5-150000.3.9.1 | SUSE-SU-2022:4015-1 |
| SUSE / openSUSE | SLE-15-SP3 | ruby2.5-rubygem-nokogirippc64le | Advisory build | 1.8.5-150000.3.9.1 | SUSE-SU-2022:4015-1 |
| SUSE / openSUSE | SLE-15-SP3 | ruby2.5-rubygem-nokogiris390x | Advisory build | 1.8.5-150000.3.9.1 | SUSE-SU-2022:4015-1 |
| SUSE / openSUSE | SLE-15-SP3 | ruby2.5-rubygem-nokogirix86_64 | Advisory build | 1.8.5-150000.3.9.1 | SUSE-SU-2022:4015-1 |
| SUSE / openSUSE | SLE-15-SP4 | ruby2.5-rubygem-nokogiriaarch64 | Advisory build | 1.8.5-150400.14.3.1 | SUSE-SU-2022:4016-1 |
| SUSE / openSUSE | SLE-15-SP4 | ruby2.5-rubygem-nokogirippc64le | Advisory build | 1.8.5-150400.14.3.1 | SUSE-SU-2022:4016-1 |
| SUSE / openSUSE | SLE-15-SP4 | ruby2.5-rubygem-nokogiris390x | Advisory build | 1.8.5-150400.14.3.1 | SUSE-SU-2022:4016-1 |
| SUSE / openSUSE | SLE-15-SP4 | ruby2.5-rubygem-nokogirix86_64 | Advisory build | 1.8.5-150400.14.3.1 | SUSE-SU-2022:4016-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | ruby2.5-rubygem-nokogiriaarch64 | Advisory build | 1.8.5-150000.3.9.1 | SUSE-SU-2022:4015-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | ruby2.5-rubygem-nokogirippc64le | Advisory build | 1.8.5-150000.3.9.1 | SUSE-SU-2022:4015-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | ruby2.5-rubygem-nokogiris390x | Advisory build | 1.8.5-150000.3.9.1 | SUSE-SU-2022:4015-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | ruby2.5-rubygem-nokogirix86_64 | Advisory build | 1.8.5-150000.3.9.1 | SUSE-SU-2022:4015-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | ruby2.5-rubygem-nokogiri-docaarch64 | Advisory build | 1.8.5-150000.3.9.1 | SUSE-SU-2022:4015-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | ruby2.5-rubygem-nokogiri-docppc64le | Advisory build | 1.8.5-150000.3.9.1 | SUSE-SU-2022:4015-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | ruby2.5-rubygem-nokogiri-docs390x | Advisory build | 1.8.5-150000.3.9.1 | SUSE-SU-2022:4015-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | ruby2.5-rubygem-nokogiri-docx86_64 | Advisory build | 1.8.5-150000.3.9.1 | SUSE-SU-2022:4015-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | ruby2.5-rubygem-nokogiri-testsuiteaarch64 | Advisory build | 1.8.5-150000.3.9.1 | SUSE-SU-2022:4015-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | ruby2.5-rubygem-nokogiri-testsuiteppc64le | Advisory build | 1.8.5-150000.3.9.1 | SUSE-SU-2022:4015-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | ruby2.5-rubygem-nokogiri-testsuites390x | Advisory build | 1.8.5-150000.3.9.1 | SUSE-SU-2022:4015-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | ruby2.5-rubygem-nokogiri-testsuitex86_64 | Advisory build | 1.8.5-150000.3.9.1 | SUSE-SU-2022:4015-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | ruby2.5-rubygem-nokogiriaarch64 | Advisory build | 1.8.5-150400.14.3.1 | SUSE-SU-2022:4016-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | ruby2.5-rubygem-nokogirippc64le | Advisory build | 1.8.5-150400.14.3.1 | SUSE-SU-2022:4016-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | ruby2.5-rubygem-nokogiris390x | Advisory build | 1.8.5-150400.14.3.1 | SUSE-SU-2022:4016-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | ruby2.5-rubygem-nokogirix86_64 | Advisory build | 1.8.5-150400.14.3.1 | SUSE-SU-2022:4016-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | ruby2.5-rubygem-nokogiri-docaarch64 | Advisory build | 1.8.5-150400.14.3.1 | SUSE-SU-2022:4016-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | ruby2.5-rubygem-nokogiri-docppc64le | Advisory build | 1.8.5-150400.14.3.1 | SUSE-SU-2022:4016-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | ruby2.5-rubygem-nokogiri-docs390x | Advisory build | 1.8.5-150400.14.3.1 | SUSE-SU-2022:4016-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | ruby2.5-rubygem-nokogiri-docx86_64 | Advisory build | 1.8.5-150400.14.3.1 | SUSE-SU-2022:4016-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | ruby2.5-rubygem-nokogiri-testsuiteaarch64 | Advisory build | 1.8.5-150400.14.3.1 | SUSE-SU-2022:4016-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | ruby2.5-rubygem-nokogiri-testsuiteppc64le | Advisory build | 1.8.5-150400.14.3.1 | SUSE-SU-2022:4016-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | ruby2.5-rubygem-nokogiri-testsuites390x | Advisory build | 1.8.5-150400.14.3.1 | SUSE-SU-2022:4016-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | ruby2.5-rubygem-nokogiri-testsuitex86_64 | Advisory build | 1.8.5-150400.14.3.1 | SUSE-SU-2022:4016-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.1-rubygem-nokogiriaarch64 | Advisory build | 1.13.4-1.1 | OPENSUSE-SU-2024:11999-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.1-rubygem-nokogirippc64le | Advisory build | 1.13.4-1.1 | OPENSUSE-SU-2024:11999-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.1-rubygem-nokogiris390x | Advisory build | 1.13.4-1.1 | OPENSUSE-SU-2024:11999-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.1-rubygem-nokogirix86_64 | Advisory build | 1.13.4-1.1 | OPENSUSE-SU-2024:11999-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.2-rubygem-nokogiriaarch64 | Advisory build | 1.13.9-1.7 | OPENSUSE-SU-2024:13165-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.2-rubygem-nokogirippc64le | Advisory build | 1.13.9-1.7 | OPENSUSE-SU-2024:13165-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.2-rubygem-nokogiris390x | Advisory build | 1.13.9-1.7 | OPENSUSE-SU-2024:13165-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.2-rubygem-nokogirix86_64 | Advisory build | 1.13.9-1.7 | OPENSUSE-SU-2024:13165-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.3-rubygem-nokogiriaarch64 | Advisory build | 1.15.5-1.5 | OPENSUSE-SU-2024:14174-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.3-rubygem-nokogirippc64le | Advisory build | 1.15.5-1.5 | OPENSUSE-SU-2024:14174-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.3-rubygem-nokogiris390x | Advisory build | 1.15.5-1.5 | OPENSUSE-SU-2024:14174-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.3-rubygem-nokogirix86_64 | Advisory build | 1.15.5-1.5 | OPENSUSE-SU-2024:14174-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.4-rubygem-nokogiriaarch64 | Advisory build | 1.18.2-1.1 | OPENSUSE-SU-2025:14697-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.4-rubygem-nokogirippc64le | Advisory build | 1.18.2-1.1 | OPENSUSE-SU-2025:14697-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.4-rubygem-nokogiris390x | Advisory build | 1.18.2-1.1 | OPENSUSE-SU-2025:14697-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby3.4-rubygem-nokogirix86_64 | Advisory build | 1.18.2-1.1 | OPENSUSE-SU-2025:14697-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby4.0-rubygem-nokogiriaarch64 | Advisory build | 1.18.9-1.4 | OPENSUSE-SU-2026:10356-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby4.0-rubygem-nokogirippc64le | Advisory build | 1.18.9-1.4 | OPENSUSE-SU-2026:10356-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby4.0-rubygem-nokogiris390x | Advisory build | 1.18.9-1.4 | OPENSUSE-SU-2026:10356-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ruby4.0-rubygem-nokogirix86_64 | Advisory build | 1.18.9-1.4 | OPENSUSE-SU-2026:10356-1 |
| Rocky Linux | 8 | libdb-cxxx86_64 | Listed in advisory | Not stated | RLSA-2022:8506 |
| Rocky Linux | 8 | libdb-cxx-debuginfox86_64 | Listed in advisory | Not stated | RLSA-2022:8506 |
| Rocky Linux | 8 | libdb-debuginfox86_64 | Listed in advisory | Not stated | RLSA-2022:8506 |
| Rocky Linux | 8 | libdb-debugsourcex86_64 | Listed in advisory | Not stated | RLSA-2022:8506 |
| Rocky Linux | 8 | libdb-sql-debuginfox86_64 | Listed in advisory | Not stated | RLSA-2022:8506 |
| Rocky Linux | 8 | libdb-sql-devel-debuginfox86_64 | Listed in advisory | Not stated | RLSA-2022:8506 |
| Rocky Linux | 8 | libdb-utils-debuginfox86_64 | Listed in advisory | Not stated | RLSA-2022:8506 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.5 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| sparklemotion | nokogiri | < 1.13.4 (affected) | GitHub_M · cna |
Weaknesses
2- CWE-400 CWE-400: Uncontrolled Resource Consumption
- CWE-1333 CWE-1333: Inefficient Regular Expression Complexity
References
11- 20221220 APPLE-SA-2022-12-13-4 macOS Ventura 13.1 http://seclists.org/fulldisclosure/2022/Dec/23
- https://github.com/sparklemotion/nokogiri/commit/e444525ef1634b675cd1cf52d39f4320ef0aecfd
- https://github.com/sparklemotion/nokogiri/security/advisories/GHSA-crjr-9rc5-ghw8
- [debian-lts-announce] 20220513 [SECURITY] [DLA 3003-1] ruby-nokogiri security update https://lists.debian.org/debian-lts-announce/2022/05/msg00013.html
- [debian-lts-announce] 20221012 [SECURITY] [DLA 3149-1] ruby-nokogiri security update https://lists.debian.org/debian-lts-announce/2022/10/msg00018.html
- https://lists.debian.org/debian-lts-announce/2024/09/msg00010.html
- FEDORA-2022-d231cb5e1f https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/6DHCOWMA5PQTIQIMDENA7R2Y5BDYAIYM/
- FEDORA-2022-9ed7641ce0 https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/OUPLBUZVM4WPFSXBEP2JS3R6LMKRTLFC/
- FEDORA-2022-132c6d7c2e https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/XMDCWRQXJQ3TFSETPCEFMQ6RR6ME5UA3/
- GLSA-202208-29 https://security.gentoo.org/glsa/202208-29
- https://support.apple.com/kb/HT213532
Provider assertions
2GitHub_M · cna
Inefficient Regular Expression Complexity in Nokogiri
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 0c7b0a008056498835d4fe6ac051e7134acdd87d872ace345ce1b29e8f4ebddb
- Ingested
- 23 Sep 2026, 07:58:57 UTC
- Source record
- Official CVE record