Cloudanix VulnDB

CVE-2026-45695

Critical · 9.8

Kopia: RCE via SSH ProxyCommand Injection

CVSS

9.8

EPSS

1.6%

Published

May 19, 2026

CISA due date

—

The record

Kopia's HTTP server, when started with `--without-password `, accepts unauthenticated requests to `/api/v1/repo/exists`. The handler forwards an attacker-supplied storage configuration to `blob.NewStorage`. For SFTP backends with `externalSSH: true`, that path constructs a process command line by splitting `sshArguments` on spaces and passes the result directly to `exec.CommandContext("ssh")`. An `-oProxyCommand=<cmd>` token in `sshArguments` causes OpenSSH to invoke `<cmd>` via `$SHELL -c` before any TCP connection is attempted, giving the requester arbitrary command execution as the Kopia process user.

Affected packages

Ecosystem Package Introduced Fixed

Related vulnerabilities