Executive brief
Termix is a web-based platform used by administrators to manage servers through SSH terminals and file editing. A security flaw allows an attacker to inject malicious commands into the system's tunnel configuration. If exploited, this could allow an attacker to take full control of the server hosting the Termix application, potentially leading to data theft, service disruption, or unauthorized access to other connected infrastructure.
Technical details
An OS command injection vulnerability exists in the `POST /ssh/tunnel/connect` endpoint of Termix. The application constructs shell commands for SSH tunneling by directly interpolating user-provided fields—including `endpointIP`, `endpointUsername`, and `password`—without proper escaping or sanitization. Specifically, the backend uses string interpolation to build a command string for `sshpass` and `ssh` which is then executed via `conn.exec()`. An attacker can provide malicious input (e.g., shell metacharacters in the IP field) to break out of the intended command and execute arbitrary code on the source SSH host. This vulnerability can be made persistent through auto-start tunnel configurations. The issue is resolved in version 2.3.2.
Affected products
- Termix-SSH Termix < 2.3.2
Timeline
- 2026-05-31: advisory: GitHub Security Advisory published
- 2026-06-04: patched: Version 2.3.2 released
- 2026-06-05: disclosed: CVE published to NVD