Out-of-bounds write in LibSass - CVE-2022-43357

 

Out-of-bounds write in LibSass - CVE-2022-43357

Published: December 22, 2023 / Updated: March 12, 2024


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

Vulnerability details

The vulnerability allows a remote attacker to compromise vulnerable system.

The vulnerability exists due to a boundary error when processing untrusted input within the Sass::CompoundSelector::has_real_parent_ref() function. A remote attacker can pass specially crafted input to the application, trigger an out-of-bounds write and execute arbitrary code on the target system.


Affected software

LibSass
SUSE Linux Enterprise Desktop 15
SUSE Linux Enterprise High Performance Computing 15
SUSE Linux Enterprise Server for SAP Applications 15
SUSE Linux Enterprise Real Time 15
SUSE Linux Enterprise Server 15
SUSE Manager Server
SUSE Manager Retail Branch Server
SUSE Manager Proxy
SUSE Linux Enterprise Micro
Fedora
SUSE Package Hub 15
openSUSE Leap
openEuler
python-qtsass
python-libsass
libsass
libsass-debuginfo
libsass-debugsource
libsass-devel
libsass-3_6_5-1-debuginfo
libsass-3_6_5-1

How to mitigate CVE-2022-43357

Install updates from vendor's website.

LibSass - update to 3.6.6
python-qtsass - update to 0.4.0-4.el9
python-libsass - update to 0.23.0-2.el9
libsass - update to 3.6.4-2
libsass-debuginfo - update to 3.6.4-2
libsass-debugsource - update to 3.6.4-2
libsass-devel - update to 3.6.4-2
libsass-debugsource - update to 3.6.5-150200.4.10.1
libsass-3_6_5-1-debuginfo - update to 3.6.5-150200.4.10.1
libsass-devel - update to 3.6.5-150200.4.10.1
libsass-3_6_5-1 - update to 3.6.5-150200.4.10.1
libsass - update to 3.6.6-1.el9

External References

Related Security Bulletins