CVE-2019-10803 push-dir Enables OS Command Injection

Critical 9.8 Published Updated

Attackers can execute arbitrary commands via the branch option in the push-dir Node.js library, requiring an upgrade to mitigate.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2019-10803?

CVE-2019-10803 is a critical command injection vulnerability in push-dir, published on 28 Feb 2020. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

push-dir through 0.4.1 allows execution of arbritary commands. Arguments provided as part of the variable "opt.branch" is not validated before being provided to the "git" command within "index.js#L139". This could be abused by an attacker to inject arbitrary commands.

Weakness: CWE-78

Which versions are affected by CVE-2019-10803?

2 open source packages ship an affected version, including push-dir. It affects 1 product.

PackageAffectedFixed in
push-dir npmAll versions to 0.4.1None
push-dir npmAll versions to 0.4.1None

Products include Push-Dir Project Push-Dir.

How do I fix CVE-2019-10803?

No fix has been published for CVE-2019-10803 yet. Limit exposure of the affected software until one is available.

Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.

Is CVE-2019-10803 being exploited?

There is no known exploitation of CVE-2019-10803 in the wild and no public exploit code.

Sources

Also known as GHSA-926x-m6m5-3mmp, SNYK-JS-PUSHDIR-559009.

Is CVE-2019-10803 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free