PT-2021-14464 · Shescape · Shescape

Ericcornelissen

·

Published

2021-03-18

·

Updated

2021-04-22

·

CVE-2021-21384

CVSS v3.1

7.8

High

VectorAV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions shescape versions prior to 1.1.3
Description The issue affects shescape, a simple shell escape package for JavaScript, where users may still be vulnerable to shell injection if an attacker manages to insert a null character into the payload. This can be exploited, for example, by inserting a null character in a payload on Windows. The problem has been patched in version 1.1.3.
Recommendations For versions prior to 1.1.3, upgrade to version 1.1.3 to resolve the issue. As a temporary workaround, consider stripping out null characters manually using a method like arg.replace(/u{0}/gu, "") until the upgrade to version 1.1.3 is applied.

Exploit

Fix

Argument Injection

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2021-21384
GHSA-F2RP-38VG-J3GH

Affected Products

Shescape