{"id":"CVE-2022-24836","published":"2022-04-11T00:00:00Z","modified":"2024-09-03T12:03:46Z","title":"Inefficient Regular Expression Complexity in Nokogiri","vendor":"sparklemotion","product":"nokogiri","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.03519,"percentile":0.895,"provenance":"source"},"cwes":[{"id":"CWE-400","name":"Uncontrolled Resource Consumption"},{"id":"CWE-1333","name":"Inefficient Regular Expression Complexity"}],"references":[{"url":"https://github.com/sparklemotion/nokogiri/security/advisories/GHSA-crjr-9rc5-ghw8","tags":[]},{"url":"https://github.com/sparklemotion/nokogiri/commit/e444525ef1634b675cd1cf52d39f4320ef0aecfd","tags":[]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/OUPLBUZVM4WPFSXBEP2JS3R6LMKRTLFC/","tags":["vendor-advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/XMDCWRQXJQ3TFSETPCEFMQ6RR6ME5UA3/","tags":["vendor-advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/6DHCOWMA5PQTIQIMDENA7R2Y5BDYAIYM/","tags":["vendor-advisory"]},{"url":"https://lists.debian.org/debian-lts-announce/2022/05/msg00013.html","tags":["mailing-list"]},{"url":"https://security.gentoo.org/glsa/202208-29","tags":["vendor-advisory"]},{"url":"https://lists.debian.org/debian-lts-announce/2022/10/msg00018.html","tags":["mailing-list"]},{"url":"https://support.apple.com/kb/HT213532","tags":[]},{"url":"http://seclists.org/fulldisclosure/2022/Dec/23","tags":["mailing-list"]},{"url":"https://lists.debian.org/debian-lts-announce/2024/09/msg00010.html","tags":[]}],"priority":{"score":23.1,"factors":[{"name":"EPSS percentile","points":17.9},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"sparklemotion","affectedVersions":[{"vendor":"sparklemotion","product":"nokogiri","versions":["< 1.13.4"]}],"affected":[{"ecosystem":"RubyGems","package":"nokogiri","vulnerableRanges":["<1.13.4"],"patched":["1.13.4"],"from":["GHSA-crjr-9rc5-ghw8"],"provenance":"source"}],"summary":{"text":"Nokogiri, an open source XML and HTML library for Ruby, contains an inefficient regular expression used to detect encoding in HTML documents in versions before 1.13.4, making it susceptible to excessive backtracking. An unauthenticated remote attacker with network access can trigger this by supplying a crafted HTML document, which requires no user interaction or special configuration and causes denial of service.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:40:31Z"},"euvd":{"id":"EUVD-2022-1712","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2021-41098","published":"2021-09-27","fixed":"1.12.5","kev":false},{"cve":"CVE-2021-30560","published":"2021-08-03","fixed":"1.13.2","kev":false,"link":{"from":"CVE-2021-30560","to":"CVE-2022-24836","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"RubyGems:nokogiri","fromFixed":"1.13.2","toFixed":"1.13.4","daysApart":251}]}},{"cve":"CVE-2018-25032","published":"2022-03-25","fixed":"1.13.4","kev":false},{"cve":"CVE-2022-24836","published":"2022-04-11","fixed":"1.13.4","kev":false},{"cve":"CVE-2022-29181","published":"2022-05-20","fixed":"1.13.6","kev":false,"link":{"from":"CVE-2022-24836","to":"CVE-2022-29181","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"RubyGems:nokogiri","fromFixed":"1.13.4","toFixed":"1.13.6","daysApart":39}]}},{"cve":"CVE-2022-23476","published":"2022-12-08","fixed":"1.13.10","kev":false},{"cve":"CVE-2026-79772","published":"2026-08-25","fixed":"1.19.1","kev":false}],"package":"RubyGems:nokogiri"}}