CVE-2022-24836

NameCVE-2022-24836
DescriptionNokogiri 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.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
ReferencesDLA-3003-1, DLA-3149-1, ELA-609-1
Debian Bugs1009787

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
ruby-nokogiri (PTS)jessie, jessie (lts)1.6.3.1+ds-1+deb8u3fixed
stretch (security), stretch (lts), stretch1.6.8.1-1+deb9u2fixed
buster1.10.0+dfsg1-2vulnerable
buster (security)1.10.0+dfsg1-2+deb10u1fixed
bullseye1.11.1+dfsg-2vulnerable
bookworm1.13.10+dfsg-2fixed
trixie1.16.0+dfsg-2fixed
sid1.16.2+dfsg-1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
ruby-nokogirisourcejessie1.6.3.1+ds-1+deb8u3ELA-609-1
ruby-nokogirisourcestretch1.6.8.1-1+deb9u2DLA-3003-1
ruby-nokogirisourcebuster1.10.0+dfsg1-2+deb10u1DLA-3149-1
ruby-nokogirisource(unstable)1.13.5+dfsg-11009787

Notes

https://github.com/sparklemotion/nokogiri/security/advisories/GHSA-crjr-9rc5-ghw8
https://github.com/sparklemotion/nokogiri/commit/e444525ef1634b675cd1cf52d39f4320ef0aecfd

Search for package or bug name: Reporting problems