PT-2020-9153 · Push-Dir+1 · Push-Dir+1

Published

2020-02-28

·

Updated

2022-02-09

·

CVE-2019-10803

CVSS v3.1

9.8

Critical

VectorAV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions push-dir versions 0.4.1 and earlier
Description The issue allows execution of arbitrary commands. Arguments provided as part of the variable opt.branch are not validated before being provided to the git command within index.js#L139. This could be abused by an attacker to inject arbitrary commands.
Recommendations For versions 0.4.1 and earlier, consider validating the opt.branch variable before passing it to the git command to prevent arbitrary command execution. As a temporary workaround, consider restricting access to the git command or disabling the functionality that utilizes the opt.branch variable until a patch is available.

Exploit

Fix

OS Command Injection

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

Weakness Enumeration

Related Identifiers

CVE-2019-10803
GHSA-926X-M6M5-3MMP
SNYK-JS-PUSHDIR-559009

Affected Products

Git
Push-Dir