Termix Docker Image Leaking SSH Credentials (CVE-2025-59951)
A critical vulnerability has been identified in the official Termix Docker image, potentially exposing sensitive SSH credentials.
A critical vulnerability has been identified in the official Termix Docker image, potentially exposing sensitive SSH credentials.
The flaw enables unauthorized retrieval of stored host addresses, usernames, and passwords by exploiting network access. Termix utilizes a Docker image running a Node.js backend behind an Nginx reverse proxy. The backend uses the req.ip method to verify if a request originates from the local machine. However, due to the shared environment, req.ip always returns the proxy’s IP address (127.0.0.1), causing the application to consider every request as internal.
CVE ID CVE-2025-59951
Package Termix (Node.js)
Affected Versions release-0.1.1-tag – release-1.6.0-tag
A critical vulnerability has been identified in the official Termix Docker image, potentially exposing sensitive SSH credentials.
Patched Versions None
Severity Critical
This vulnerability permits external access to the /ssh/db/host/internal endpoint, allowing retrieval of SSH host details without authentication. It affects all Termix Docker releases from release-0.1.1-tag through release-1.6.0-tag . No patched version is currently available.
In typical deployments, Termix operates within a virtual machine, vulnerable to network scans identifying exposed instances. Unauthorized users can send GET requests to the vulnerable endpoint, obtaining SSH host lists and credentials. Once accessed, attackers can move laterally or utilize credentials for further network intrusion.
To mitigate this vulnerability, modify backend validation logic to use the X-Real-IP header instead of req.ip . Additional recommendations include:
Restricting access to management endpoints via firewall rules. Deploying Termix behind an authenticated gateway or VPN. Monitoring logs for unusual requests to the /ssh/db/host/internal endpoint. Rotating exposed SSH credentials.
These measures should be implemented immediately, while awaiting an official patch to ensure the security of SSH credentials.
Based on reporting by GBHackers.
