CVE-2022-43358
NixOS vulnerability analysis and mitigation

Overview

CVE-2022-43358 is a stack overflow vulnerability discovered in LibSass version 3.6.5-8-g210218, specifically in the ast_selectors.cpp file within the Sass::ComplexSelector::has_placeholder function. The vulnerability was disclosed on August 22, 2023, affecting the LibSass compiler, which is a C/C++ implementation of a Sass compiler (NVD, CVE).

Technical details

The vulnerability is classified as an Out-of-bounds Write (CWE-787) with a CVSS v3.1 base score of 7.5 (HIGH). The issue manifests as a stack overflow in the has_placeholder function within ast_selectors.cpp at line 464, which can be triggered through specially crafted input (NVD, GitHub Issue).

Impact

When exploited, this vulnerability can lead to a denial of service (DoS) condition by causing the application to crash. The stack overflow condition can potentially allow attackers to cause system instability and service disruption (NVD).

Exploitability

The vulnerability has been demonstrated to be exploitable through specially crafted SASS input files. A proof of concept (PoC) has been published that triggers the stack overflow condition in the affected function (GitHub Issue).

Mitigation and workarounds

Users are advised to upgrade to a patched version of LibSass. However, it should be noted that LibSass is now deprecated, and while it continues to receive maintenance releases, there are no plans to add additional features. Projects using LibSass are recommended to migrate to Dart Sass as a long-term solution (LibSass).

Additional resources


SourceThis report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-75874CRITICAL10
  • NixOS logoNixOS
  • cpe:2.3:a:mozilla:firefox
NoYesAug 18, 2026
CVE-2026-74990CRITICAL9.8
  • NixOS logoNixOS
  • cpe:2.3:a:mozilla:firefox
NoYesAug 18, 2026
CVE-2026-74989CRITICAL9.8
  • NixOS logoNixOS
  • cpe:2.3:a:mozilla:firefox
NoYesAug 18, 2026
CVE-2026-74988CRITICAL9.8
  • NixOS logoNixOS
  • thunderbird
NoYesAug 18, 2026
CVE-2026-74987CRITICAL9.8
  • NixOS logoNixOS
  • MozillaFirefox-branding-upstream
NoYesAug 18, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management