VYPR
Critical severityNVD Advisory· Published Feb 28, 2020· Updated Aug 4, 2024

CVE-2019-10803

CVE-2019-10803

Description

push-dir prior to 0.4.1 allows arbitrary command injection by passing untrusted branch names to the git command.

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

push-dir prior to 0.4.1 allows arbitrary command injection by passing untrusted branch names to the git command.

The vulnerability in push-dir through version 0.4.1 is a command injection flaw. The opt.branch variable, which is used to specify the target branch for pushing directory contents, is passed directly to the git command at line 139 of index.js without any validation or sanitization [1][3]. This allows an attacker to inject arbitrary shell commands by crafting a malicious branch string.

Exploitation requires only the ability to control the branch option passed to the push-dir function. For example, setting opt.branch to "& echo vulnerable > create.txt &" will execute the injected command before the intended git operation [2]. No authentication or special network position is needed; the vulnerability can be triggered locally or in any environment where untrusted input is passed to push-dir.

Successful exploitation enables an attacker to execute arbitrary commands with the privileges of the process running push-dir, potentially leading to full system compromise, data exfiltration, or further lateral movement [1][2]. As of the time of disclosure, no patched version of push-dir has been released, and users are advised to avoid passing untrusted input to the branch parameter or to replace the package with a maintained alternative [2].

AI Insight generated on May 21, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.

Affected packages

Versions sourced from the GitHub Security Advisory.

PackageAffected versionsPatched versions
push-dirnpm
<= 0.4.1

Affected products

2

Patches

0

No patches discovered yet.

Vulnerability mechanics

AI mechanics synthesis has not run for this CVE yet.

References

4

News mentions

0

No linked articles in our index yet.