CVEfocus › CVE database › CVE-2022-24836

CVE-2022-24836Inefficient Regular Expression Complexity in Nokogiri

CVSS 7.5 HighEPSS 2.8% (higher than 87% of CVEs)Published 2022-04-11Updated 2024-09-03Assigner: GitHub_M

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.

CWE-1333CWE-400

What to do

Fixed builds are available from Alpine, Debian, Rocky Linux, RubyGems: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

14Fixed
5Fix pending
3Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04ruby-nokogiriNot affected
vulnerable_code_not_present
Ubuntu 25.10ruby-nokogiriNot affected
vulnerable_code_not_present
Ubuntu 24.04ruby-nokogiriNot affected
vulnerable_code_not_present
Ubuntu 22.04ruby-nokogiriFix pendingUBUNTU-CVE-2022-24836
Ubuntu 20.04ruby-nokogiriFix pendingUBUNTU-CVE-2022-24836
Ubuntu 18.04ruby-nokogiriFix pendingUBUNTU-CVE-2022-24836
Ubuntu 16.04ruby-nokogiriFix pendingUBUNTU-CVE-2022-24836
Ubuntu 14.04ruby-nokogiriFix pendingUBUNTU-CVE-2022-24836
Debian 14ruby-nokogiriFixed1.13.5+dfsg-1DEBIAN-CVE-2022-24836
Debian 13ruby-nokogiriFixed1.13.5+dfsg-1DEBIAN-CVE-2022-24836
Debian 12ruby-nokogiriFixed1.13.5+dfsg-1DEBIAN-CVE-2022-24836
Rocky Linux 8libdbFixed0:5.3.28-42.el8_4RLSA-2022:8506
Alpine Linux 3.24ruby-nokogiriFixed1.13.4-r0ALPINE-CVE-2022-24836
Alpine Linux 3.23ruby-nokogiriFixed1.13.4-r0ALPINE-CVE-2022-24836
Alpine Linux 3.22ruby-nokogiriFixed1.13.4-r0ALPINE-CVE-2022-24836
Alpine Linux 3.21ruby-nokogiriFixed1.13.4-r0ALPINE-CVE-2022-24836
Alpine Linux 3.20ruby-nokogiriFixed1.13.4-r0ALPINE-CVE-2022-24836
Alpine Linux 3.19ruby-nokogiriFixed1.13.4-r0ALPINE-CVE-2022-24836
Alpine Linux 3.18ruby-nokogiriFixed1.13.4-r0ALPINE-CVE-2022-24836
Alpine Linux 3.17ruby-nokogiriFixed1.13.4-r0ALPINE-CVE-2022-24836
Alpine Linux 3.16ruby-nokogiriFixed1.13.4-r0ALPINE-CVE-2022-24836
RubyGems librarynokogiriFixed1.13.4GHSA-crjr-9rc5-ghw8

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.