Description
Whisper-node through 1.1.1 contains an OS command injection vulnerability that allows attackers to execute commands by supplying crafted filePath or whisperOptions.language values to whisper(). Attackers can inject shell metacharacters or $() substitution into the command string built by createCppCommand() and run via shelljs exec() to execute commands with Node.js process privileges.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| ariym | whisper-node | ≤ 1.1.1 | — |
References
- https://github.com/ariym/whisper-node/pull/64 patch issue-tracking
- https://github.com/ariym/whisper-node/blob/c72944cfa48f5c74662ff17ee2dc1d5f7624393e/src/whisper.ts#L8 technical-description
- https://github.com/ariym/whisper-node/blob/c72944cfa48f5c74662ff17ee2dc1d5f7624393e/src/whisper.ts#L58 technical-description
- https://unpkg.com/whisper-node@1.1.1/dist/index.js technical-description
- VulnCheck Advisory: Whisper-node through 1.1.1 OS Command Injection via filePath and language third-party-advisory