Description
Video-stitch before 2.0.0-beta.1 contains an OS command injection vulnerability that allows attackers to execute commands by supplying file names interpolated unquoted into shell-executed ffmpeg command lines. Attackers who influence file names passed to concat(), cut(), or merge() can inject shell metacharacters to run commands with the Node.js process privileges.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| ArsalanDotMe | video-stitch | < 2.0.0-beta.1 | 2.0.0-beta.1 |
References
- https://github.com/ArsalanDotMe/VideoStitch/pull/26 patch issue-tracking
- https://github.com/ArsalanDotMe/VideoStitch/commit/ba60353e6c3707e6ff5d89eb6d76c2c6cdb0df9b patch
- https://github.com/ArsalanDotMe/VideoStitch/blob/f33560852c848fe572a79f45ae0e85a7bcb0d3b2/lib/videoconcat.js#L61 technical-description
- https://github.com/ArsalanDotMe/VideoStitch/blob/f33560852c848fe572a79f45ae0e85a7bcb0d3b2/lib/videocut.js#L96-L99 technical-description
- https://github.com/ArsalanDotMe/VideoStitch/tree/v2.0.0-beta.1 release-notes
- VulnCheck Advisory: Video-stitch before 2.0.0-beta.1 OS Command Injection via concat() and cut() third-party-advisory