CRITICAL🇵🇱 Wersja polska

CVE-2025-59951

CVSS 9.2v4.0pub. 2025-10-01upd. 2025-10-20

Termix is a web-based server management platform with SSH terminal, tunneling, and file editing capabilities. The official Docker image for Termix versions 1.5.0 and below, due to being configured with an Nginx reverse proxy, causes the backend to retrieve the proxy's IP instead of the client's IP when using the req.ip method. This results in isLocalhost always returning True. Consequently, the /ssh/db/host/internal endpoint can be accessed directly without login or authentication. This endpoint records the system's stored SSH host information, including addresses, usernames, and passwords, posing an extremely high security risk. Users who use the official Termix docker image, build their own image using the official dockerfile, or utilize reverse proxy functionality will be affected by this vulnerability. This issue is fixed in version 1.6.0.

🤖 AI Analysis
How it works

The Termix application uses the req.ip method to determine whether a request originates from the local host — if so, the isLocalhost function returns True and access to protected endpoints is granted without authentication. When the platform runs behind Nginx acting as a reverse proxy (as in the official Docker image), the backend sees the IP address of the proxy itself instead of the actual client address, causing isLocalhost to always evaluate to True. A remote attacker without any credentials can directly invoke the /ssh/db/host/internal endpoint and download the complete database of saved SSH connections along with passwords. The vulnerability results from incorrect access control (CWE-284), reliance on unverified IP headers (CWE-348), and lack of verification of request origin authenticity (CWE-345).

Impact

An unauthenticated attacker can gain full access to SSH data stored on the server — host addresses, usernames, and passwords — which consequently enables takeover of all servers managed by the Termix platform.

Mitigation & patch

Termix should be updated to version 1.6.0 where the issue has been fixed. As a temporary workaround, it is recommended to restrict network access to the /ssh/db/host/internal endpoint at the firewall or reverse proxy configuration level to only trusted IP addresses.

Who is affected

Termix versions 1.5.0 and earlier — affects users using the official Termix Docker image, building their own image from the official Dockerfile, or using reverse proxy functionality.

Analysis generated by Claude AI (Anthropic) based on NVD data. Always verify with vendor.
CVSS Vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:L/VA:N/SC:H/SI:L/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Termix

    APP
    Termix
    0.1.1 – 1.6.0
🔵
CHECK WITH VENDOR
No clear patch data available. Check vendor references.
Tags
Container
CWE
References

Related vulnerabilities

CVE-2026-45750CRITICAL9.0PL ✓same product

Command injection w Termix File Manager via parametr path (GET resolvePath)

CVE-2026-45744CRITICAL9.9PL ✓same product

Termix: OS command injection w endpointcie resolvePath (RCE)

CVE-2026-45746CRITICAL9.0PL ✓same product

Broken Access Control w Termix — nieautoryzowany dostęp do sesji File Manager

CVE-2026-45748CRITICAL9.8PL ✓same product

Command injection w Termix – endpoint SSH tunnel bez sanityzacji danych wejściowych

CVE-2026-45749HIGH8.1same product

Termix is a web-based server management platform with SSH terminal, tunneling, and file editing capabilities. ...