{"id":"GHSA-9hqj-38j2-5jgm","aliases":["GHSA-9hqj-38j2-5jgm"],"related":[],"kind":"vulnerability","state":"published","title":"Command Injection in ascii-art","summary":"Versions of `ascii-art` before 1.4.4 are vulnerable to command injection. This is exploitable when user input is passed into the argument of the `ascii-art preview` command. \n\n\nExample Proof of concept:\n`ascii-art preview 'doom\"; touch /tmp/malicious; echo \"'`\n\nGiven that the input is passed on the command line and none of the api methods are vulnerable to this,  the likely exploitation vector is when the ascii-art comment is being called programmatically using something like `execFile`.\n\n\n## Recommendation\n\nUpdate to version 1.4.4 or later.","summaryFormat":"markdown","summarySource":"ghsa","descriptions":[{"lang":"en","text":"Versions of `ascii-art` before 1.4.4 are vulnerable to command injection. This is exploitable when user input is passed into the argument of the `ascii-art preview` command. \n\n\nExample Proof of concept:\n`ascii-art preview 'doom\"; touch /tmp/malicious; echo \"'`\n\nGiven that the input is passed on the command line and none of the api methods are vulnerable to this,  the likely exploitation vector is when the ascii-art comment is being called programmatically using something like `execFile`.\n\n\n## Recommendation\n\nUpdate to version 1.4.4 or later.","format":"markdown","source":"ghsa"}],"published":"2020-09-01T21:19:23.000Z","modified":"2020-08-31T18:33:35.000Z","severity":{"scorer":"GitHub","scheme":"rating","rating":"LOW"},"severities":[{"scorer":"GitHub","scheme":"rating","rating":"LOW"}],"cwes":["CWE-77"],"affected":[{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.4.4"}],"ecosystem":"npm","package":"ascii-art","purl":"pkg:npm/ascii-art","source":"ghsa"}],"references":[{"url":"https://hackerone.com/reports/390631","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/nodejs/security-wg/blob/master/vuln/npm/471.json","tags":["web"],"sources":["ghsa"]},{"url":"https://www.npmjs.com/advisories/727","tags":["web"],"sources":["ghsa"]}],"credits":[],"sources":[{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-9hqj-38j2-5jgm","url":"https://github.com/advisories/GHSA-9hqj-38j2-5jgm","licence":"CC-BY-4.0","modified":"2020-08-31T18:33:35.000Z"}],"updatedAt":"2026-11-25T22:56:44.925Z"}