CVE & CISA-KEV Catalog

CVE-2022-31179

HIGH
8.1
CVSS v3
NVD

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).

How to fix

Remediation Available
shescapeNVD
Affected:< 1.5.8Fixed in:1.5.8CVE-2022-31179derived from NVD

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3 Vector

Exploitability

Attack VectorNetwork
Attack ComplexityHigh
Privileges RequiredNone
User InteractionNone
ScopeChanged

Impact

ConfidentialityLow
IntegrityLow
AvailabilityHigh

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:H

Exploit Intelligence

1.08%probability of exploitation in 30 days
61stpercentile

Moderate risk: more likely to be exploited than 61% of all known CVEs.

References

Third-Party Advisory1

Related Vulnerabilities

Other CWE-74 (Injection) vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2013-2251Critical9.8100%KEVFix
CVE-2023-22527Critical9.8100%KEV + RansomFix
CVE-2019-2725Critical9.8100%KEV + RansomFix
CVE-2022-46169Critical9.8100%KEVFix
CVE-2022-35914Critical9.8100%KEV-
CVE-2019-17558High7.599%KEVFix
Embed a live status badge for CVE-2022-31179
CVE-2022-31179 severity badge

Markdown

[![CVE-2022-31179](https://tridentstack.com/cve/badge/CVE-2022-31179.svg)](https://tridentstack.com/cve/CVE-2022-31179)

HTML

<a href="https://tridentstack.com/cve/CVE-2022-31179"><img src="https://tridentstack.com/cve/badge/CVE-2022-31179.svg" alt="CVE-2022-31179"></a>

Find and fix vulnerabilities across your fleet

TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.

Start free

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2024-11-21.