{"id":"GHSA-6c3f-p5wp-34mh","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.","aliases":["CVE-2021-3190"],"modified":"2023-11-08T04:05:51.640137Z","published":"2021-01-29T18:14:00Z","database_specific":{"severity":"CRITICAL","github_reviewed":true,"github_reviewed_at":"2021-01-27T23:33:04Z","nvd_published_at":"2021-01-26T18:16:00Z","cwe_ids":["CWE-78"]},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-3190"},{"type":"WEB","url":"https://github.com/omrilotan/async-git/pull/13"},{"type":"WEB","url":"https://github.com/omrilotan/async-git/pull/13/commits/611823bd97dd41e9e8127c38066868ff9dcfa57a"},{"type":"WEB","url":"https://github.com/omrilotan/async-git/pull/13/commits/a5f45f58941006c4cc1699609383b533d9b92c6a"},{"type":"WEB","url":"https://github.com/omrilotan/async-git/pull/14"},{"type":"WEB","url":"https://advisory.checkmarx.net/advisory/CX-2021-4772"},{"type":"PACKAGE","url":"https://github.com/omrilotan/async-git"},{"type":"WEB","url":"https://www.npmjs.com/package/async-git"}],"affected":[{"package":{"name":"async-git","ecosystem":"npm","purl":"pkg:npm/async-git"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.13.2"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/01/GHSA-6c3f-p5wp-34mh/GHSA-6c3f-p5wp-34mh.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}