Termix is a web-based server management platform with SSH terminal, tunneling, and file editing capabilities. Prior to version 2.3.2, the GET /ssh/file_manager/ssh/resolvePath endpoint in the Termix File Manager component unsafely processes the path parameter and embeds it into a shell command executed over the active SSH session. Because the user-controlled value is placed inside double quotes and only double quotes are escaped, shell command substitution syntax such as $(...) is still interpreted by the remote shell. Version 2.3.2 fixes the issue.
The GET /ssh/file_manager/ssh/resolvePath endpoint accepts a user-controlled path parameter and embeds it within a command executed by a remote shell through an active SSH session. The sanitization mechanism is limited only to escaping double quotes, leaving shell command substitution syntax — such as $(...) — fully interpretable. An attacker can therefore inject a payload in the form of command substitution, which will be executed by the remote shell with the privileges of the SSH session.
An attacker can execute arbitrary system commands on a remote server managed by Termix, potentially gaining full control over its resources, data, and enabling lateral movement within the network.
Termix should be updated to version 2.3.2, which contains a fix for this vulnerability. The patch is available in the vendor's repository under the release-2.3.2-tag tag.
Termix versions prior to 2.3.2 (web platform for server management with File Manager component)
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:HTermix
APPTermix2.1.0 – 2.3.2 (excl.)
Related vulnerabilities
Broken Access Control w Termix — nieautoryzowany dostęp do sesji File Manager
Command injection w Termix – endpoint SSH tunnel bez sanityzacji danych wejściowych
Termix: OS command injection w endpointcie resolvePath (RCE)
Termix: nieautoryzowany dostęp do danych SSH przez błędne wykrywanie IP
Termix is a web-based server management platform with SSH terminal, tunneling, and file editing capabilities. ...