Bug 1214573 (CVE-2022-43357) - VUL-0: CVE-2022-43357: sassc,libsass: Stack overflow vulnerability in ast_selectors.cpp in function Sass:CompoundSelector:has_real_parent_ref in libsass:3.6.5-8-g210218, which can be exploited by attackers to causea denial of service (DoS).
Summary: VUL-0: CVE-2022-43357: sassc,libsass: Stack overflow vulnerability in ast_sel...
Status: RESOLVED FIXED
Alias: CVE-2022-43357
Product: SUSE Security Incidents
Classification: Novell Products
Component: Incidents (show other bugs)
Version: unspecified
Hardware: Other Other
: P3 - Medium : Normal
Target Milestone: ---
Assignee: Security Team bot
QA Contact: Security Team bot
URL: https://smash.suse.de/issue/376039/
Whiteboard: CVSSv3.1:SUSE:CVE-2022-43357:5.3:(AV:...
Keywords:
Depends on:
Blocks:
 
Reported: 2023-08-24 11:36 UTC by Stoyan Manolov
Modified: 2024-01-02 13:31 UTC (History)
4 users (show)

See Also:
Found By: Security Response Team
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stoyan Manolov 2023-08-24 11:36:20 UTC
CVE-2022-43357

Stack overflow vulnerability in ast_selectors.cpp in function
Sass::CompoundSelector::has_real_parent_ref in libsass:3.6.5-8-g210218, which
can be exploited by attackers to causea denial of service (DoS). Also affects
the command line driver for libsass, sassc 3.6.2.

References:
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2022-43357
https://www.cve.org/CVERecord?id=CVE-2022-43357
https://drive.google.com/file/d/1aC5q3czen0atI91fuBIoCBFkS30_OSWX/
https://github.com/sass/libsass
https://github.com/sass/libsass/issues/3177
Comment 2 Petr Gajdos 2023-09-08 09:12:30 UTC
No change in upstream bug.
Comment 4 Petr Gajdos 2023-10-12 13:23:15 UTC
No news in upstream bug.
Comment 6 Petr Gajdos 2023-12-04 08:35:06 UTC
No news in upstream bug.
Comment 7 Michael Vetter 2023-12-15 09:51:54 UTC
I did some research and commented my findings at:
https://github.com/sass/libsass/issues/3177#issuecomment-1854445404

And could motivate upstream maintainer Marcel Greter to provide:
https://github.com/sass/libsass/pull/3184 which fixes this issue.

I backported these changes as libsass-CVE-2022-43357,CVE-2022-43358,CVE-2022-26592.patch and ran them against all 3 POCs, which are now solved.

SR#1133374 to devel:libraries:c_c++/libsass
SR#315778 to SUSE_SLE-15-SP2_Update
Comment 9 Maintenance Automation 2023-12-18 20:36:06 UTC
SUSE-SU-2023:4895-1: An update that solves three vulnerabilities can now be installed.

Category: security (moderate)
Bug References: 1214573, 1214575, 1214576
CVE References: CVE-2022-26592, CVE-2022-43357, CVE-2022-43358
Sources used:
SUSE Package Hub 15 15-SP4 (src): libsass-3.6.5-150200.4.10.1
SUSE Package Hub 15 15-SP5 (src): libsass-3.6.5-150200.4.10.1
openSUSE Leap 15.4 (src): libsass-3.6.5-150200.4.10.1
openSUSE Leap 15.5 (src): libsass-3.6.5-150200.4.10.1

NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.