Termix: OS command injection in ACME/Let's Encrypt certificate-request handler via admin-controlled domain/email
What fixes it
No source in this snapshot names a fixed version. The vendor advisories under References are the place to check.
Description
Termix is a web-based server management platform with SSH terminal, tunneling, and file editing capabilities. From 2.4.1 until 2.5.1, an authenticated Termix administrator can store attacker-controlled domain and email values through PATCH /users/acme-ssl-settings and trigger their interpolation into a certbot shell command through POST /users/acme-ssl-request. In src/backend/database/routes/acme-ssl-routes.ts, child_process.execSync invokes /bin/sh -c with those values only wrapped in double quotes, so shell metacharacters can execute arbitrary operating-system commands as the Termix backend process. Both HTTP webroot and DNS Cloudflare challenge modes are affected, and compromise exposes Termix databases, process secrets, stored credentials, and network reachability. This issue is fixed in version 2.5.1.
Text from CVE List
Affected versions 2
- Termixaffected: >= 2.4.1, < 2.5.1CVE List
- Termix-SSH/Termix, other>= 2.4.1, < 2.5.1GitHub
References 5
- github.com/Termix-SSH/Termix/commit/c7a9063a72071153723e668787548766c971f029Fixvia CVE List
- github.com/Termix-SSH/Termix/commit/ddbdd5c437c2296607dfaa4265d6f63fbc1ca92eFixvia CVE List
- github.com/Termix-SSH/Termix/releases/tag/release-2.5.1-tagFixvia CVE List
- github.com/Termix-SSH/Termix/security/advisories/GHSA-pr55-25gf-5f9vExploitvia CVE List
- github.com/Termix-SSH/Termix/pull/1067Referencevia CVE List