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.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | node-opencv | 6.0.0+git20180416.cfc96ba0-3 | — |
| Debian 13 | node-opencv | 6.0.0+git20180416.cfc96ba0-3 | — |
| Debian 12 | node-opencv | 6.0.0+git20180416.cfc96ba0-3 | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| npm | opencv | < 6.1.0 | 6.1.0 | GHSA-mc7w-4cjf-c973 |