Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

GHSA-v5ff-xmfp-p245: electerm has Command Injection in File System Operations (rmrf, mv, cp)

0
High
Published: 07/02/2026 (07/02/2026, 19:22:31 UTC)
Source: GCVE Database
Product: electerm

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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Affected software

npmghsa
electerm
Affected versions
<3.11.11

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/02/2026, 23:13:30 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses