PT-2020-9150 · Unknown · Compile-Sass
Published
2020-02-24
·
Updated
2022-01-01
·
CVE-2019-10799
CVSS v3.1
9.8
Critical
| Vector | AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Name of the Vulnerable Software and Affected Versions
compile-sass versions prior to 1.0.5
Description
The issue allows execution of arbitrary commands. The function
setupCleanupOnExit(cssPath) within dist/index.js is executed as part of the rm command without any sanitization.Recommendations
For versions prior to 1.0.5, update to version 1.0.5 or later to resolve the issue. As a temporary workaround, consider disabling the
setupCleanupOnExit(cssPath) function until a patch is available. Restrict access to the dist/index.js file to minimize the risk of exploitation. Avoid using the rm command with unsanitized input in the affected versions until the issue is resolved.Exploit
Fix
OS Command Injection
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Compile-Sass