zapolnoch/node-tesseract-ocr

zapolnoch/node-tesseract-ocr

Releases3
Frequency1 week 1 day
Last Release
Stars318
A Node.js wrapper for the Tesseract OCR API

CVE History

CVEPublishedCVSS v3CVSS v2
9.8 CRITICAL

node-tesseract-ocr is an npm package that provides a Node.js wrapper for Tesseract OCR. In all versions through 2.2.1, the recognize() function in src/index.js is vulnerable to OS Command Injection. The file path parameter is concatenated into a shell command string and passed to child_process.exec() without proper sanitization