Skip to content
Fencer Intel
low —

GHSA-9hqj-38j2-5jgm json

Command Injection in ascii-art

published 6y ago modified 6y ago

cvss
—
not scored
cisa kev
Not listed
not in CISA's catalog
epss
—
no score, EPSS covers CVEs only
public exploits
0
none known

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.

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.

Patch / fix

  • npm ascii-art 1.4.4

Is GHSA-9hqj-38j2-5jgm in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.

Check with Fencer

Affected packages

ecosystem package affected fixed in
npm ascii-art
<1.4.4
1.4.4

Classification

Weakness
  • CWE-77 Improper Neutralization of Special Elements used in a Command

References

Sources

Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.