GHSA-v5ff-xmfp-p245: electerm has Command Injection in File System Operations (rmrf, mv, cp)
A command injection vulnerability exists in electerm's file system operations (rmrf, mv, cp) due to unsafe interpolation of file paths into shell commands without proper escaping. This allows an attacker controlling a malicious SSH/SFTP server to craft filenames with shell metacharacters that execute arbitrary commands when the victim performs file operations. The vulnerability affects both POSIX and Windows platforms and can lead to arbitrary command execution as the electerm desktop user.
AI Analysis
Technical Summary
The electerm application has a command injection vulnerability in its file system operation functions rmrf(), mv(), and cp() located in src/app/lib/fs.js. These functions construct shell commands by directly interpolating file paths without escaping shell metacharacters, enabling attackers to inject arbitrary commands. An attacker controlling a malicious SSH/SFTP server can exploit this by providing filenames containing shell metacharacters. When the victim connects and performs file operations such as remote-to-local transfers or renaming files, the injected commands execute with the privileges of the electerm desktop user. This affects both POSIX (bash) and Windows (PowerShell) environments. The vulnerability is tracked as CVE-2026-49255 and has a high severity rating.
Potential Impact
Successful exploitation allows arbitrary command execution as the electerm desktop user, potentially leading to data exfiltration, malware installation, or full system compromise on both POSIX and Windows platforms.
Mitigation Recommendations
An official patch is available in electerm version 3.11.11 and later. Users should upgrade to version 3.11.11 or newer to remediate this vulnerability. If immediate upgrade is not possible, users can mitigate risk by only connecting to trusted SSH/SFTP servers, avoiding remote-to-local file transfers from untrusted sources, not using the "rename on conflict" option when downloading folders from untrusted servers, and manually verifying filenames before performing file operations.
GHSA-v5ff-xmfp-p245: electerm has Command Injection in File System Operations (rmrf, mv, cp)
Description
A command injection vulnerability exists in electerm's file system operations (rmrf, mv, cp) due to unsafe interpolation of file paths into shell commands without proper escaping. This allows an attacker controlling a malicious SSH/SFTP server to craft filenames with shell metacharacters that execute arbitrary commands when the victim performs file operations. The vulnerability affects both POSIX and Windows platforms and can lead to arbitrary command execution as the electerm desktop user.
CVSS v3.1
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The electerm application has a command injection vulnerability in its file system operation functions rmrf(), mv(), and cp() located in src/app/lib/fs.js. These functions construct shell commands by directly interpolating file paths without escaping shell metacharacters, enabling attackers to inject arbitrary commands. An attacker controlling a malicious SSH/SFTP server can exploit this by providing filenames containing shell metacharacters. When the victim connects and performs file operations such as remote-to-local transfers or renaming files, the injected commands execute with the privileges of the electerm desktop user. This affects both POSIX (bash) and Windows (PowerShell) environments. The vulnerability is tracked as CVE-2026-49255 and has a high severity rating.
Potential Impact
Successful exploitation allows arbitrary command execution as the electerm desktop user, potentially leading to data exfiltration, malware installation, or full system compromise on both POSIX and Windows platforms.
Mitigation Recommendations
An official patch is available in electerm version 3.11.11 and later. Users should upgrade to version 3.11.11 or newer to remediate this vulnerability. If immediate upgrade is not possible, users can mitigate risk by only connecting to trusted SSH/SFTP servers, avoiding remote-to-local file transfers from untrusted sources, not using the "rename on conflict" option when downloading folders from untrusted servers, and manually verifying filenames before performing file operations.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-v5ff-xmfp-p245
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-49255"]
- Ecosystems
- ["npm"]
- Database Specific Severity
- HIGH
- Cvss Version
- 3.1
Threat ID: 6a46ecba27e9c7971943cd91
Added to database: 07/02/2026, 22:56:58 UTC
Last enriched: 07/02/2026, 23:13:30 UTC
Last updated: 07/03/2026, 03:26:58 UTC
Views: 5
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.