{"id":"GHSA-9hqj-38j2-5jgm","aliases":[],"status":"published","title":"Command Injection in ascii-art","description":"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.","facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-77"],"published":"2020-09-01T21:19:23Z","modified":"2023-01-09T05:04:04Z","fixes":[{"ecosystem":"npm","package":"ascii-art","fixed_in":["1.4.4"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"npm","package":"ascii-art","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"1.4.2"},{"fixed":"1.4.4"}]}]},{"source":"osv","ecosystem":"npm","package":"ascii-art","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.4.4"}]}]}],"references":[{"url":"https://hackerone.com/reports/390631","tags":["web"]},{"url":"https://github.com/nodejs/security-wg/blob/master/vuln/npm/471.json","tags":["web"]},{"url":"https://www.npmjs.com/advisories/727","tags":["web"]},{"url":"https://github.com/advisories/GHSA-9hqj-38j2-5jgm"}],"sources":{"ghsa":[{"id":"GHSA-9hqj-38j2-5jgm","title":"Command Injection in ascii-art","description":"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.","status":"published","published":"2020-09-01T21:19:23Z","modified":"2023-01-09T05:04:04Z","cwes":["CWE-77"],"updated_at":"2026-11-02T14:36:08.267721Z"}],"osv":[{"id":"GHSA-9hqj-38j2-5jgm","title":"Command Injection in ascii-art","description":"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.","status":"published","published":"2020-09-01T21:19:23Z","modified":"2020-08-31T18:33:35Z","cwes":["CWE-77"],"updated_at":"2026-11-02T15:46:43.875515Z"}]}}
