Bug 1214575 (CVE-2022-43358) - VUL-0: CVE-2022-43358: libsass: Stack overflow vulnerability in ast_selectors.cpp: in function Sass:ComplexSelector:has_placeholder in libsass:3.6.5-8-g210218, which can be exploited by attackers to cause a denial of service (DoS).
Summary: VUL-0: CVE-2022-43358: libsass: Stack overflow vulnerability in ast_selectors...
Status: RESOLVED FIXED
Alias: CVE-2022-43358
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/376040/
Whiteboard: CVSSv3.1:SUSE:CVE-2022-43358:5.3:(AV:...
Keywords:
Depends on:
Blocks:
 
Reported: 2023-08-24 11:43 UTC by Stoyan Manolov
Modified: 2024-01-02 13:30 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:43:43 UTC
CVE-2022-43358

Stack overflow vulnerability in ast_selectors.cpp: in function
Sass::ComplexSelector::has_placeholder in libsass:3.6.5-8-g210218, which can be
exploited by attackers to cause a denial of service (DoS).

References:
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2022-43358
https://www.cve.org/CVERecord?id=CVE-2022-43358
https://drive.google.com/file/d/1j5fkPjWH9zQeTdO_4dMcZ-FpOBzP0MaI/
https://github.com/sass/libsass
https://github.com/sass/libsass/issues/3178
Comment 2 Petr Gajdos 2023-09-08 09:12:00 UTC
No change in upstream bug.
Comment 4 Petr Gajdos 2023-10-12 13:23:20 UTC
No news in upstream bug.
Comment 6 Petr Gajdos 2023-12-04 08:33:36 UTC
No news in upstream bug.
Comment 7 Michael Vetter 2023-12-15 09:52:08 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:08 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.