CVE-2026-26832: node-tesseract-ocr - Command Injection
- Cve: CVE-2026-26832
- Name: node-tesseract-ocr - Command Injection
- Description: 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
- Impact: Attackers can execute arbitrary OS commands remotely, potentially leading to full system compromise.
- Remediation: Update to the latest version beyond 2.2.1.
- Vulnerability type: command_injection
- Vulnerability impact: remote_code_execution
- Requirement type: none
- Labels source: projectdiscovery
- Severity: critical
- Cvss score: 9.8
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Epss score: 0.0194
- Epss percentile: 0.80679
- Assignee: [email protected]
- Published at: 2026-03-25T16:16:21Z
- Age in days: 244
- Modified at: 2026-06-17T10:26:21Z
- Public exploits total: 1
- References total: 4
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-26832
- Nvd status: analyzed
- Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits capped, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-78 | Improper Neutralization of Special Elements used in an OS Command |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://github.com/zebbernCVE/CVE-2026-26832 | poc-in-github | 2026-03-24 |
References
Same in every row:
- Source: nvd
| Url | Tags |
|---|---|
| https://github.com/zebbernCVE/CVE-2026-26832 | Mitigation, Third Party Advisory |
| https://github.com/zapolnoch/node-tesseract-ocr | Product |
| https://github.com/zapolnoch/node-tesseract-ocr/blob/master/src/index.js | Product |
| https://www.npmjs.com/package/node-tesseract-ocr | Product |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| zapolnoch:tesseract_ocr | <= 2.2.1 | no | nvd | /v1/products/zapolnoch/tesseract_ocr |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| zapolnoch/node-tesseract-ocr | package | yes | /v1/repositories/zapolnoch/node-tesseract-ocr |
Index
- Repositories: 1
- Repositories high signal: 1
- Packages: 1
Exploitation
- Public exploit: yes
- Public exploit count: 1
- Public exploit first date: 2026-03-24
- Remote: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts