Uncontrolled Recursion in Loofah - CVE-2022-23516

 

Uncontrolled Recursion in Loofah - CVE-2022-23516

Published: December 14, 2022


Vulnerability identifier: #VU70330
CSH Severity: Medium
CVSS v4: 8.7 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2022-23516
CWE-ID: CWE-674
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to perform a denial of service (DoS) attack.

The vulnerability exists due to uncontrolled recursion when handling CDATA sections. A remote attacker can pass specially crafted data to the application and consume excessive CPU resources.


Affected software

Loofah
SUSE Linux Enterprise High Availability Extension 15
SUSE Linux Enterprise Server for SAP Applications 15
SUSE Linux Enterprise Server 15
SUSE Linux Enterprise High Performance Computing 15
SUSE Manager Server
SUSE Manager Proxy
SUSE Manager Retail Branch Server
SUSE Linux Enterprise Server 15 SP1 Business Critical Linux
SUSE Linux Enterprise Server 15 SP2 Business Critical Linux
SUSE Linux Enterprise Server 15 SP3 Business Critical Linux
openSUSE Leap
Fedora
ruby2.5-rubygem-loofah
ruby2.5-rubygem-loofah-doc
ruby2.5-rubygem-loofah-testsuite
rubygem-loofah
Red Hat Satellite

How to mitigate CVE-2022-23516

Install updates from vendor's website.

Loofah - update to 2.19.1
ruby2.5-rubygem-loofah - update to 2.2.2-150000.4.9.1
ruby2.5-rubygem-loofah-doc - update to 2.2.2-150000.4.9.1
ruby2.5-rubygem-loofah-testsuite - update to 2.2.2-150000.4.9.1
rubygem-loofah - update to 2.22.0-1.fc40
Red Hat Satellite - update to 6.13

External References

Related Security Bulletins