Skip to content

Back to the catalog

Orca Security: Critical Unauthenticated RCE in Kopia Backup via SSH ProxyCommand Injection
orca.securityadvisory

Orca Security: Critical Unauthenticated RCE in Kopia Backup via SSH ProxyCommand Injection

Orca Security breaks down CVE-2026-45695 (CVSS 9.8), an unauthenticated RCE in the Kopia backup tool's HTTP server, affecting versions 0.22.3 and earlier. The flaw stems from Kopia's /api/v1/repo/exists endpoint splitting SFTP storage configuration fields on literal spaces without a proper tokenizer or quote handling, letting an attacker inject `-oProxyCommand=<cmd>` into the SSH command line when the server runs with --without-password and SFTP/external-SSH enabled — achieving code execution via a single crafted HTTP request. Fix is Kopia 0.23.0, which blocks starting with --insecure/--without-password on non-loopback interfaces; researcher Daniele Berardinelli reported it, tracked as GHSA-2q4c-3mrw-63c3.

TL;DR Unauthenticated RCE (CVE-2026-45695, CVSS 9.8) in Kopia backup server via SSH ProxyCommand injection through unsanitized SFTP config fields — patch to 0.23.0.

Organisations named here

  • Daniele Berardinelli
  • GHSA-2q4c-3mrw-63c3

CVEs named here

  • CVE-2026-45695

Technologies named here

  • Kopia
  • Orca Security Platform
  • SSH
  • OpenSSH
  • Orca Security

Techniques named here

  • SSH ProxyCommand injection