CVE-2022-23516

high
Published 2022-12-13 · Modified 2025-11-04
CVSS v3
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
VIR risk
8.0

Description

Loofah is a general library for manipulating and transforming HTML/XML documents and fragments, built on top of Nokogiri. Loofah >= 2.2.0, < 2.19.1 uses recursion for sanitizing CDATA sections, making it susceptible to stack exhaustion and raising a SystemStackError exception. This may lead to a denial of service through CPU resource consumption. This issue is patched in version 2.19.1. Users who are unable to upgrade may be able to mitigate this vulnerability by limiting the length of the strings that are sanitized.

Predictions

Exploit likelihood
30%
Patch ETA

Heuristic predictions, AS-IS, for prioritization only.

Mitigations

No vendor mitigations ingested yet for this CVE. The mitigation-content worker queues fetches as references arrive — check back in a few minutes, or see the references list below.

OS impact

OSVersionStatusFixed in
rockylinux rocky8fixed
suse slesaffected
debian debianbookwormfixed2.19.1-1
debian debianbullseyefixed2.7.0+dfsg-1+deb11u1
debian debianforkyfixed2.19.1-1
debian debiansidfixed2.19.1-1
debian debiantrixiefixed2.19.1-1

Package impact

EcosystemPackageVulnerableFixed
ruby RubyGemsloofah!< 2.2.0||<>= 2.19.1>= 2.19.1
ruby RubyGemsloofah>=2.2.0,<2.19.12.19.1

References

💬 Discuss CVE-2022-23516 on VIR Community →

Community-verified mitigations for this CVE will appear above when contributors publish them.

Verify integrity in audit chain (admin only). AS-IS.