Stack-based buffer overflow in LibSass - CVE-2018-19838

 

Stack-based buffer overflow in LibSass - CVE-2018-19838

Published: December 4, 2018


Vulnerability identifier: #VU16233
CSH Severity: Low
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:P/U:Clear
CVE-ID: CVE-2018-19838
CWE-ID: CWE-121
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: Sass
Affected software:
LibSass

Detailed vulnerability description

The vulnerability allows a remote attacker to cause DoS condition.

The vulnerability exists due to stack-based buffer overflow in functions inside ast.cpp for IMPLEMENT_AST_OPERATORS expansion, as demonstrated by recursive calls involving clone(), cloneChildren(), and copy(). A remote attacker can send a specially crafted sass file, trigger memory corruption and cause the service to crash.


How to mitigate CVE-2018-19838

Update to version 3.5.5.

Sources