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, DLA-3868-1
Debian Bugs1009787

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
ruby-nokogiri (PTS)bullseye1.11.1+dfsg-2vulnerable
bullseye (security)1.11.1+dfsg-2+deb11u1fixed
bookworm1.13.10+dfsg-2fixed
sid, trixie1.16.4+dfsg-1fixed

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

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
ruby-nokogirisourcestretch1.6.8.1-1+deb9u2DLA-3003-1
ruby-nokogirisourcebuster1.10.0+dfsg1-2+deb10u1DLA-3149-1
ruby-nokogirisourcebullseye1.11.1+dfsg-2+deb11u1DLA-3868-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