Junglewise Threat Intelligence

CVE-2019-10061: node-opencv OS command injection in find-opencv

CVE-2019-10061 · Severity: low · CVSS 3 · Published 2021-10-12

Technologies: OpenCV.

Executive brief

node-opencv is a popular Node.js library that provides bindings to OpenCV, a computer vision library used for image and video processing tasks. A command injection vulnerability in the find-opencv utility allows attackers to execute arbitrary system commands without authentication, potentially compromising the entire system running applications that depend on this library.

Technical details

The vulnerability is an OS command injection flaw (CWE-78) in utils/find-opencv.js that fails to validate or sanitize user input before passing it to shell execution. The vulnerable code constructs shell commands with untrusted input, allowing attackers to inject arbitrary commands. The attack vector is network-accessible if the library processes untrusted input from external sources. No authentication or user interaction is required. An attacker can execute arbitrary commands with the privileges of the process running the application. The vulnerability was fixed in version 6.1.0 by removing untrusted input from the exec call.

Affected products

  • opencv prior to 6.1.0

Timeline

  • 2021-10-12: disclosed
  • 2021-10-07: patched: Fixed in version 6.1.0

References