CVE-2021-23376
Command Injection in ffmpegdotjs
Severity by source
Trivy's own label is CRITICAL. Rated critical by NVD, GHSA.
Description
This affects all versions of package ffmpegdotjs. If attacker-controlled user input is given to the trimvideo function, it is possible for an attacker to execute arbitrary commands. This is due to use of the child_process exec function without input sanitization.
Affected packages and fixed versions
| Source | Package | Fixed in |
|---|---|---|
| npm::GitHub Security Advisory npm | ffmpegdotjs | no fix listed |
References
- https://github.com/TRomesh/ffmpegdotjs
- https://github.com/TRomesh/ffmpegdotjs/blob/b7395daf0bdcb81218340427eb7073cdd28462af/index.js#23L219
- https://github.com/TRomesh/ffmpegdotjs/blob/b7395daf0bdcb81218340427eb7073cdd28462af/index.js%23L219
- https://nvd.nist.gov/vuln/detail/CVE-2021-23376
- https://snyk.io/vuln/SNYK-JS-FFMPEGDOTJS-1078542