CVE-2019-10061 OS Command Injection in node-opencv

Critical 9.8 Published Updated

Attackers can execute arbitrary commands via unvalidated input in the find-opencv.js utility of the node-opencv library.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2019-10061?

CVE-2019-10061 is a critical command injection vulnerability in n/a, published on 26 Mar 2019. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

utils/find-opencv.js in node-opencv (aka OpenCV bindings for Node.js) prior to 6.1.0 is vulnerable to Command Injection. It does not validate user input allowing attackers to execute arbitrary commands.

Weakness: CWE-78

Which versions are affected by CVE-2019-10061?

2 open source packages ship an affected version, including opencv. It affects 1 product.

PackageAffectedFixed in
opencv npmAll versions6.1.0
opencv npmAll versions6.1.0

Products include Node-Opencv Project Node-Opencv.

How do I fix CVE-2019-10061?

Upgrade opencv to 6.1.0 or later.

Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.

Is CVE-2019-10061 being exploited?

There is no known exploitation of CVE-2019-10061 in the wild and no public exploit code.

Sources

Also known as DEBIAN-CVE-2019-10061, GHSA-mc7w-4cjf-c973.

Is CVE-2019-10061 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free