Add Kopia server SFTP ProxyCommand argument injection exploit (CVE-2026-45695) #21587
All Vouch review confidence checks passed
Residual risk 0.15 = Change Risk (0.37) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.37 · 230 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.326
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #21587"
general
weight: 0.35
kenlacroix
Summary
Adds
exploit/linux/http/kopia_sftp_proxycommand_rcefor CVE-2026-45695 (GHSA-2q4c-3mrw-63c3) — an unauthenticated command-execution flaw in the Kopia backup server.POST /api/v1/repo/existsinstantiates the storage backend before any repository is opened. ForsftpwithexternalSSHenabled, Kopia builds thesshargument vector bystrings.Split(sshArguments, " ")with no tokenizer, so an-oProxyCommand=<cmd>token reachessshand OpenSSH runs it through/bin/shbefore connecting. The endpoint is unauthenticated when the server is started with--without-password, giving command execution as the server process (root in the official container).The value can't contain literal spaces (they'd be split into separate args), so the module encodes the payload and uses
${IFS}for the spaces (-oProxyCommand=echo${IFS}<b64>|base64${IFS}-d|sh), which isdash-compatible.Affected:
<= 0.22.3. Fixed in0.23.0, which refuses to bind an unauthenticated server to a non-loopback address.Verification
Lab:
checkreports vulnerable — asleepProxyCommand delays the response (time-based, no artifacts); verified ~5.0s delay.runwithcmd/unix/reverse_bash→ Command shell session opened as root from the container.kopia/kopia:0.23.0the server refuses the unauthenticated non-loopback bind ("refusing to expose unauthenticated server on non-loopback network bind"), so the endpoint is unreachable —checkreturns safe.The command runs blind (the request returns HTTP 500 after execution), so a callback payload is required; documented in the module.