GHSA-f698-m2v9-5fh3 Command Injection in opencv
Attackers can execute arbitrary commands via unvalidated input in the find-opencv.js utility script of the OpenCV npm package.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is GHSA-f698-m2v9-5fh3?
GHSA-f698-m2v9-5fh3 is a command injection vulnerability in opencv, published on 4 Jun 2019. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
Versions of opencvprior to 6.1.0 are vulnerable to Command Injection. The utils/ script find-opencv.js does not validate user input allowing attackers to execute arbitrary commands.
Recommendation
Upgrade to version 6.1.0.
Which versions are affected by GHSA-f698-m2v9-5fh3?
2 open source packages ship an affected version, including opencv.
| Package | Affected | Fixed in |
|---|---|---|
opencv npm | All versions | 6.1.0 |
opencv npm | All versions | 6.1.0 |
How do I fix GHSA-f698-m2v9-5fh3?
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 GHSA-f698-m2v9-5fh3 being exploited?
There is no known exploitation of GHSA-f698-m2v9-5fh3 in the wild and no public exploit code.