Command Injection Affecting extra-ffmpeg package, versions *


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of concept

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Command Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-EXTRAFFMPEG-607911
  • published20 Aug 2020
  • disclosed20 Aug 2020
  • creditd3lla

Introduced: 20 Aug 2020

CVE NOT AVAILABLE CWE-78  (opens in a new tab)

How to fix?

A fix was pushed into the master branch but not yet published.

Overview

extra-ffmpeg is a Decode, encode, transcode, mux, demux, stream, filter, and play media through machine (via "ffmpeg").

Affected versions of this package are vulnerable to Command Injection. It is possible to inject arbitrary commands due to insecure command formatting. User input inserted as part of the os parameter is passed to the child_process.exec function without any check.

PoC

const ffmpeg = require('extra-ffmpeg');
ffmpeg.sync([{y: true}, {i: '`touch HACKED`'}, {acodec: 'copy', o: 'aud.mp3'}]);

CVSS Scores

version 3.1