electerm
Affected
- introduced
0, fixed3.11.11(semver)
Fixed versions
3.11.11
Fix
- Fixed version
3.11.11npm install [email protected]
Advisory
Also known as: CVE-2026-49255
electerm has Command Injection in File System Operations (rmrf, mv, cp)
Impact
A command injection vulnerability exists in electerm's file system operations (rmrf, mv, cp) in src/app/lib/fs.js. These functions construct shell commands by interpolating file paths directly into command strings without escaping shell metacharacters.
Vulnerable functions:
rmrf() - Uses rm -rf "${path}" (double quotes, vulnerable to " injection)mv() - Uses mv '${from}' '${to}' (single quotes, vulnerable to ' injection)cp() - Uses cp -r "${from}" "${to}" (double quotes, vulnerable to " injection)Attack scenario:
file"$(touch /tmp/pwned)")rmrf(), mv(), or cp() without sanitizationImpact includes:
Patches
Workarounds
If upgrading is not immediately possible, users can mitigate this vulnerability by:
High Basis: The source's own band: HIGH
0, fixed 3.11.11 (semver)3.11.11
3.11.11npm install [email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0