PT-2022-16832 · Shescape · Shescape

·

CVE-2022-24725

·

Published

2022-03-03

·

Updated

2023-06-23

CVSS v3.1

6.2

Medium

VectorAV:L/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Name of the Vulnerable Software and Affected Versions shescape versions 1.4.0 through 1.5.1
Description The issue allows for exposure of the home directory on Unix systems when using Bash with the escape or escapeAll functions from the shescape API with the interpolation option set to true. Other tested shells, Dash and Zsh, are not affected. Depending on how the output of shescape is used, directory traversal may be possible in the application using shescape .
Recommendations For versions 1.4.0 through 1.5.1, update to version 1.5.1 to resolve the issue. As a temporary workaround, consider manually escaping all instances of the tilde character (~) using arg.replace(/~/g, "~").

Exploit

Fix

Information Disclosure

OS Command Injection

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

Weakness Enumeration

Related Identifiers

CVE-2022-24725
GHSA-446W-RRM4-R47F

Affected Products

Shescape