GHSA-9hqj-38j2-5jgm

Suggest an improvement
Source
https://github.com/advisories/GHSA-9hqj-38j2-5jgm
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2020/09/GHSA-9hqj-38j2-5jgm/GHSA-9hqj-38j2-5jgm.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-9hqj-38j2-5jgm
Published
2020-09-01T21:19:23Z
Modified
2020-08-31T18:33:35Z
Summary
Command Injection in ascii-art
Details

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.

Example Proof of concept: ascii-art preview 'doom"; touch /tmp/malicious; echo "'

Given 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.

Recommendation

Update to version 1.4.4 or later.

Database specific
{
    "github_reviewed": true,
    "github_reviewed_at": "2020-08-31T18:33:35Z",
    "severity": "LOW",
    "nvd_published_at": null,
    "cwe_ids": [
        "CWE-77"
    ]
}
References

Affected packages

npm / ascii-art

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.4.4

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2020/09/GHSA-9hqj-38j2-5jgm/GHSA-9hqj-38j2-5jgm.json"
last_known_affected_version_range
"<= 1.4.2"