CVE-2026-117511

desmondmorris node-tesseract Command Builder tesseract.js process os command injection

Published Oct 27, 2026 CVSS 4.0 · 6.9 Medium EPSS 1.6% KEV · Not listed
Description
A vulnerability has been found in desmondmorris node-tesseract up to 0.2.7. Affected by this issue is the function process of the file lib/tesseract.js of the component Command Builder. Such manipulation of the argument image leads to os command injection. The attack can be executed remotely. The exploit has been disclosed to the public and may be used. The project was informed of the problem early through an issue report but has not responded yet.

Analysis

AI-generated

Technical impact

The vulnerability exists in the node-tesseract library, up to version 0.2.7, where the Command Builder in lib/tesseract.js fails to sanitize the image path supplied to the underlying OCR process. An attacker can craft an image path containing shell metacharacters, causing the library to invoke an operating-system command directly, which leads to remote command execution. The flaw is classified as CWE-77 and CWE-78.

Affected Systems

All installations of desmondmorris node-tesseract that are version 0.2.7 or earlier are vulnerable. This includes any Node.js application that imports or uses the library without applying a patch.

Risk and Exploitability

The CVSS base score of 6.9 indicates moderate severity. The EPSS score of 2% and the vulnerability is not listed in the CISA KEV catalog; however, the payload has been publicly disclosed and can be triggered remotely. As the library is used at runtime, an attacker with write access to the data passed to the library can trigger the injection, making the risk significant for exposed services that rely on node-tesseract.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update desmondmorris node-tesseract to a fixed release once one is available.
  • If an update is not yet released, replace the library with an alternative OCR solution that validates or escapes input parameters before invoking external commands.
  • Apply input validation and sanitization to the image argument, ensuring it cannot inject shell metacharacters or command separators.

Generated by OpenCVE AI on October 28, 2026 at 14:28 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description A vulnerability has been found in desmondmorris node-tesseract up to 0.2.7. Affected by this issue is the function process of the file lib/tesseract.js of the component Command Builder. Such manipulation of the argument image leads to os command injection. The attack can be executed remotely. The exploit has been disclosed to the public and may be used. The project was informed of the problem early through an issue report but has not responded yet.
Title desmondmorris node-tesseract Command Builder tesseract.js process os command injection
First Time appeared Desmondmorris
Desmondmorris node-tesseract
Weaknesses CWE-77
CWE-78
CPEs cpe:2.3:a:desmondmorris:node-tesseract:*:*:*:*:*:*:*:*
Vendors & Products Desmondmorris
Desmondmorris node-tesseract
References
Metrics cvssV2_0

{'score': 7.5, 'vector': 'AV:N/AC:L/Au:N/C:P/I:P/A:P/E:POC/RL:ND/RC:C'}

cvssV3_0

{'score': 7.3, 'vector': 'CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L/E:P/RL:X/RC:C'}

cvssV3_1

{'score': 7.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L/E:P/RL:X/RC:C'}

cvssV4_0

{'score': 6.9, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P'}

Weaknesses
  • CWE-77

    Improper Neutralization of Special Elements used in a Command ('Command Injection')

  • CWE-78

    Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Sources

Status
PUBLISHED
Assigner
VulDB
Published
Updated
Nov 2, 2026, 7:26 PM
Reserved
Oct 27, 2026, 9:00 AM
Status
Deferred
Published
Oct 27, 2026, 4:17 PM
Modified
Nov 2, 2026, 8:17 PM