Kopia Server SSH ProxyCommand Injection Unauthenticated RCE
CVE-2026-45695 is a critical unauthenticated remote code execution vulnerability in Kopia affecting versions prior to 0.23.0. When the Kopia HTTP server is started with the --without-password option, the /api/v1/repo/exists endpoint accepts unauthenticated requests and forwards attacker-controlled SFTP repository configuration into storage initialization. In the vulnerable code path, attacker-supplied settings can enable use of an external SSH client and pass arbitrary SSH options through sshArguments to the spawned ssh process. By supplying an OpenSSH ProxyCommand option, an attacker can cause command execution through the local shell before any SSH connection is established. The flaw results from exposing a critical function without authentication and from unsafe propagation of untrusted input into OS command arguments used by OpenSSH.
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
Successful exploitation allows unauthenticated remote code execution in the security context of the Kopia server process. An attacker can execute arbitrary commands on the host running the vulnerable server, which can lead to full compromise of backup infrastructure, access to repository data and credentials available to the process, modification or destruction of backups, deployment of additional malware or persistence mechanisms, and disruption of backup and restore operations. The issue is remotely exploitable with no authentication or user interaction when the vulnerable server configuration is exposed.
If you can’t patch tonight, do this now.
Do not run the Kopia HTTP server with the --without-password option, especially on any network-reachable interface. Require authentication for server access, restrict exposure to loopback or otherwise isolated management networks, and prevent untrusted users from reaching the affected API surface. As an additional defensive measure, avoid configurations that permit externally supplied SFTP settings to invoke an external SSH client with attacker-controlled arguments.
Patch, then assume compromise.
Upgrade Kopia to version 0.23.0 or later, which fixes the vulnerable behavior. If upgrading is not immediately possible, reconfigure deployments so the HTTP server is not started in unauthenticated mode. Review any automation, container images, and service definitions that launch Kopia server to ensure vulnerable versions are replaced and insecure startup options are removed.
No public exploits tracked yet. Mallory keeps watching.
8 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.