Skip to content
OpenAdvisories
Critical · 9.8 CVE-2019-10803 EUVD-2022-0929GHSA-926x-m6m5-3mmpSNYK-JS-PUSHDIR-559009

push-dir Enables OS Command Injection

Published Feb 28, 2020 · Updated Aug 4, 2024 · Assigned by snyk

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.

Affected products

VendorProductAffectedFixed
— push-dir All versions including 0.4.1 —

Affected packages

EcosystemPackageAffectedFixedRecord
npm push-dir <= 0.4.1 — GHSA-926x-m6m5-3mmp

References