CVE-2022-24725

CVSS V2 Low 1.9 CVSS V3 Medium 5.5
Description
Shescape is a shell escape package for JavaScript. An issue in versions 1.4.0 to 1.5.1 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_. The issue was patched in version 1.5.1. As a workaround, manually escape all instances of the tilde character (`~`) using `arg.replace(/~/g, "\\~")`.
Overview
  • CVE ID
  • CVE-2022-24725
  • Assigner
  • security-advisories@github.com
  • Vulnerability Status
  • Analyzed
  • Published Version
  • 2022-03-03T22:15:08
  • Last Modified Date
  • 2022-03-17T19:13:26
CPE Configuration (Product)
CPE Vulnerable Operator Version Start Version End
cpe:2.3:a:shescape_project:shescape:*:*:*:*:*:node.js:*:* 1 OR 1.4.0 1.5.1
CVSS Version 2
  • Version
  • 2.0
  • Vector String
  • AV:L/AC:M/Au:N/C:P/I:N/A:N
  • Access Vector
  • LOCAL
  • Access Compatibility
  • MEDIUM
  • Authentication
  • NONE
  • Confidentiality Impact
  • PARTIAL
  • Integrity Impact
  • NONE
  • Availability Impact
  • NONE
  • Base Score
  • 1.9
  • Severity
  • LOW
  • Exploitability Score
  • 3.4
  • Impact Score
  • 2.9
CVSS Version 3
  • Version
  • 3.1
  • Vector String
  • CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
  • Attack Vector
  • LOCAL
  • Attack Compatibility
  • LOW
  • Privileges Required
  • LOW
  • User Interaction
  • NONE
  • Scope
  • UNCHANGED
  • Confidentiality Impact
  • HIGH
  • Availability Impact
  • NONE
  • Base Score
  • 5.5
  • Base Severity
  • MEDIUM
  • Exploitability Score
  • 1.8
  • Impact Score
  • 3.6
References
Reference URL Reference Tags
https://github.com/ericcornelissen/shescape/pull/170 Patch Third Party Advisory
https://github.com/ericcornelissen/shescape/issues/169 Exploit Issue Tracking Third Party Advisory
https://github.com/ericcornelissen/shescape/security/advisories/GHSA-446w-rrm4-r47f Exploit Third Party Advisory
History
Created Old Value New Value Data Type Notes
2022-05-10 15:45:30 Added to TrackCVE
2022-12-06 11:17:41 2022-03-03T22:15Z 2022-03-03T22:15:08 CVE Published Date updated
2022-12-06 11:17:41 2022-03-17T19:13:26 CVE Modified Date updated
2022-12-06 11:17:41 Analyzed Vulnerability Status updated