Vulnerability Description
Shescape is a simple shell escape package for JavaScript. Versions prior to 1.5.8 were found to be subject to code injection on windows. This impacts users that use Shescape (any API function) to escape arguments for cmd.exe on Windows An attacker can omit all arguments following their input by including a line feed character (`'\n'`) in the payload. This bug has been patched in [v1.5.8] which you can upgrade to now. No further changes are required. Alternatively, line feed characters (`'\n'`) can be stripped out manually or the user input can be made the last argument (this only limits the impact).
CVSS Score
HIGH
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Shescape Project | Shescape | < 1.5.8 |
| Microsoft | Windows | - |
Related Weaknesses (CWE)
References
- https://github.com/ericcornelissen/shescape/pull/332PatchThird Party Advisory
- https://github.com/ericcornelissen/shescape/releases/tag/v1.5.8Release NotesThird Party Advisory
- https://github.com/ericcornelissen/shescape/security/advisories/GHSA-jjc5-fp7p-6ExploitPatchThird Party Advisory
- https://github.com/ericcornelissen/shescape/pull/332PatchThird Party Advisory
- https://github.com/ericcornelissen/shescape/releases/tag/v1.5.8Release NotesThird Party Advisory
- https://github.com/ericcornelissen/shescape/security/advisories/GHSA-jjc5-fp7p-6ExploitPatchThird Party Advisory
FAQ
What is CVE-2022-31179?
CVE-2022-31179 is a vulnerability with a CVSS score of 8.1 (HIGH). Shescape is a simple shell escape package for JavaScript. Versions prior to 1.5.8 were found to be subject to code injection on windows. This impacts users that use Shescape (any API function) to esca...
How severe is CVE-2022-31179?
CVE-2022-31179 has been rated HIGH with a CVSS base score of 8.1/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2022-31179?
Check the references section above for vendor advisories and patch information. Affected products include: Shescape Project Shescape, Microsoft Windows.