Advisory

GHSA-6c3f-p5wp-34mh

Also known as: CVE-2021-3190

Summary

OS Command Injection in async-git

Details

The async-git package before 1.13.2 for Node.js allows OS Command Injection via shell metacharacters, as demonstrated by git.reset and git.tag. This issue may lead to remote code execution if a client of the library calls the vulnerable method with untrusted input. Ensure to sanitize untrusted user input before passing it to one of the vulnerable functions as a workaround or update async-git to version 1.13.1.

Severity

Critical Basis: The source's own band: CRITICAL

Dates

Published
2021-01-29 18:14 UTC
Modified
2023-11-08 04:05 UTC

Affected packages and fixes

async-git

npm · All systems

Affected

  • introduced 0, fixed 1.13.2 (semver)

Fixed versions

1.13.2

Fix

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