Advisory

GHSA-926x-m6m5-3mmp

Also known as: CVE-2019-10803, SNYK-JS-PUSHDIR-559009

Summary

push-dir Enables OS Command Injection

Details

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.

Severity

Critical Basis: The source's own band: CRITICAL

Dates

Published
2022-02-09 22:50 UTC
Modified
2026-07-08 05:56 UTC

Affected packages and fixes

push-dir

npm · All systems

Affected

  • introduced 0, last affected 0.4.1 (semver)

Fixed versions

None listed

Fix

No fixed version is listed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences