{"id":"GHSA-2q4c-3mrw-63c3","revision":null,"records":[{"revision":"ab91d7fc5ec3434fa64d8f9250f76d35","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-45695","aliases":[],"title":"Kopia: Unauthenticated RCE via SSH ProxyCommand Injection when --insecure --without-password is used","description":"Kopia is a cross-platform backup tool for Windows, macOS, and Linux with fast incremental backups, client-side end-to-end encryption, compression, and data deduplication. Prior to 0.23.0, Kopia's HTTP server started with --without-password accepts unauthenticated requests to /api/v1/repo/exists and forwards attacker-supplied SFTP storage configuration to blob.NewStorage, where externalSSH: true and sshArguments containing -oProxyCommand=<cmd> can cause exec.CommandContext(\"ssh\") to invoke the command through OpenSSH. This issue is fixed in version 0.23.0.","state":0,"publishedAt":"2026-07-16T15:42:31.795+00:00","modifiedAt":"2026-07-16T18:08:13.371+00:00","affected":[{"ecosystem":"Vendor product","name":"kopia","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"kopia\",\n                    \"product\": \"kopia\",\n                    \"versions\": [\n                        {\n                            \"version\": \"< 0.23.0\",\n                            \"status\": \"affected\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"severity":"CRITICAL"}],"references":["https://github.com/kopia/kopia/security/advisories/GHSA-2q4c-3mrw-63c3","https://github.com/kopia/kopia/pull/5354","https://github.com/kopia/kopia/commit/c26c6a1b9734c5089217986ffa5cd19f8a6b8900","https://github.com/kopia/kopia/releases/tag/v0.23.0"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-45695","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-45695","identifiers":["CVE-2026-45695"]},"retained":false,"historicalAffected":[]},{"revision":"8a07ecd562984b4fb2470f156e77f8be","observedAt":"2026-11-24T04:28:36.775+00:00","statement":{"source":"euvd","id":"EUVD-2026-44948","aliases":["CVE-2026-45695","GHSA-2q4c-3mrw-63c3"],"title":"Kopia is a cross-platform backup tool for Windows, macOS, and Linux with fast incremental backups, client-side end-to-end encryption, compression, and data deduplication. Prior to 0.23.0, Kopia's HTTP server started with --without-password …","description":"Kopia is a cross-platform backup tool for Windows, macOS, and Linux with fast incremental backups, client-side end-to-end encryption, compression, and data deduplication. Prior to 0.23.0, Kopia's HTTP server started with --without-password accepts unauthenticated requests to /api/v1/repo/exists and forwards attacker-supplied SFTP storage configuration to blob.NewStorage, where externalSSH: true and sshArguments containing -oProxyCommand=<cmd> can cause exec.CommandContext(\"ssh\") to invoke the command through OpenSSH. This issue is fixed in version 0.23.0.","state":0,"publishedAt":null,"modifiedAt":null,"affected":[],"metrics":[{"system":"EUVD CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"severity":null}],"references":["https://github.com/kopia/kopia/security/advisories/GHSA-2q4c-3mrw-63c3","https://github.com/kopia/kopia/pull/5354","https://github.com/kopia/kopia/commit/c26c6a1b9734c5089217986ffa5cd19f8a6b8900","https://github.com/kopia/kopia/releases/tag/v0.23.0"],"sourceUrl":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-44948","license":"ENISA EUVD · source terms and attribution apply","enrichment":{"sourceStatus":null,"weaknesses":[],"productCriteria":[],"sourceDates":{"datePublished":"Jul 16, 2026, 3:42:31 PM","dateUpdated":"Jul 16, 2026, 6:08:13 PM"},"relatedAdvisories":[],"note":"EUVD source date text has no stated timezone and is retained without inventing a UTC instant. Related bulletin membership is not an alias, common cause or applicability claim. A missing vector with a zero score is treated as unrated. Complete vendor/product and underlying source evidence remains in the original JSON."},"key":"euvd:EUVD-2026-44948","identifiers":["EUVD-2026-44948","CVE-2026-45695","GHSA-2q4c-3mrw-63c3"]},"retained":false,"historicalAffected":[]},{"revision":"3100fc3788a741c4be09d25338051abb","observedAt":"2026-10-25T12:17:14.897+00:00","statement":{"source":"nvd","id":"CVE-2026-45695","aliases":[],"title":"Kopia is a cross-platform backup tool for Windows, macOS, and Linux with fast incremental backups, client-side end-to-end encryption, compression, and data deduplication. Prior to 0.23.0, Kopia's HTTP server started with --without-password …","description":"Kopia is a cross-platform backup tool for Windows, macOS, and Linux with fast incremental backups, client-side end-to-end encryption, compression, and data deduplication. Prior to 0.23.0, Kopia's HTTP server started with --without-password accepts unauthenticated requests to /api/v1/repo/exists and forwards attacker-supplied SFTP storage configuration to blob.NewStorage, where externalSSH: true and sshArguments containing -oProxyCommand=<cmd> can cause exec.CommandContext(\"ssh\") to invoke the command through OpenSSH. This issue is fixed in version 0.23.0.","state":0,"publishedAt":"2026-07-16T16:19:08.307+00:00","modifiedAt":"2026-07-16T19:16:45.527+00:00","affected":[],"metrics":[{"system":"CVSS 3.1 · security-advisories@github.com · Secondary","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"severity":"CRITICAL"}],"references":["https://github.com/kopia/kopia/commit/c26c6a1b9734c5089217986ffa5cd19f8a6b8900","https://github.com/kopia/kopia/pull/5354","https://github.com/kopia/kopia/releases/tag/v0.23.0","https://github.com/kopia/kopia/security/advisories/GHSA-2q4c-3mrw-63c3"],"sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2026-45695","license":"NIST NVD usage terms; underlying source attribution retained","enrichment":{"sourceStatus":"Deferred","weaknesses":["CWE-78","CWE-306"],"productCriteria":[],"sourceDates":{"published":"2026-07-16T16:19:08.307","lastModified":"2026-07-16T19:16:45.527"},"relatedAdvisories":[],"note":"NVD analysis and CPE criteria are source context, not proof that a package or your environment is affected. Complete affected data, logical configurations and SSVC are retained in the original JSON."},"key":"nvd:CVE-2026-45695","identifiers":["CVE-2026-45695"]},"retained":false,"historicalAffected":[]},{"revision":"13882a0a68a14119b98158357c9eb41a","observedAt":"2026-10-24T13:19:41.952+00:00","statement":{"source":"osv","id":"GHSA-2q4c-3mrw-63c3","aliases":["CVE-2026-45695","GO-2026-5009"],"title":"Kopia: RCE via SSH ProxyCommand Injection","description":"## Summary\n\nKopia'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.\n\n## Analysis\n\n[`internal/server/server_authz_checks.go` lines 61–73](https://github.com/kopia/kopia/blob/v0.22.3/internal/server/server_authz_checks.go#L61-L73):\n\nwhen 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.\n\n[`repo/blob/sftp/sftp_storage.go` lines 448–468](https://github.com/kopia/kopia/blob/v0.22.3/repo/blob/sftp/sftp_storage.go#L448-L468):\n\n`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. \n\nOpenSSH 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.\n\n## Impact\n\nNo user interaction is required. No valid credentials are required. The exploit is a single HTTP request.\n\n## Credits \n\nThis vulnerability was discovered and responsibly disclosed by Daniele Berardinelli.\n\n## Mitigation\nhttps://github.com/kopia/kopia/pull/5354 disallows starting of a server without a password which also listens on a non-loopback interface.","state":0,"publishedAt":"2026-05-19T19:18:32+00:00","modifiedAt":"2026-06-02T05:15:10.0396763+00:00","affected":[{"ecosystem":"Go","name":"github.com/kopia/kopia","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"0.23.0"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"CRITICAL"}],"references":["https://github.com/kopia/kopia/security/advisories/GHSA-2q4c-3mrw-63c3","https://github.com/kopia/kopia/pull/5354","https://github.com/kopia/kopia"],"sourceUrl":"https://github.com/advisories/GHSA-2q4c-3mrw-63c3","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-2q4c-3mrw-63c3","identifiers":["GHSA-2q4c-3mrw-63c3","CVE-2026-45695","GO-2026-5009"]},"retained":false,"historicalAffected":[]},{"revision":"ac146f68e1de4727bcc531c39825f58f","observedAt":"2026-10-24T13:19:41.952+00:00","statement":{"source":"osv","id":"GO-2026-5009","aliases":["CVE-2026-45695","GHSA-2q4c-3mrw-63c3"],"title":"Kopia: RCE via SSH ProxyCommand Injection in github.com/kopia/kopia","description":"Kopia: RCE via SSH ProxyCommand Injection in github.com/kopia/kopia","state":0,"publishedAt":"2026-05-20T19:07:09+00:00","modifiedAt":"2026-05-20T19:30:14.3300431+00:00","affected":[{"ecosystem":"Go","name":"github.com/kopia/kopia","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"0.23.0"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[],"references":["https://github.com/kopia/kopia/security/advisories/GHSA-2q4c-3mrw-63c3","https://github.com/kopia/kopia/pull/5354"],"sourceUrl":"https://osv.dev/vulnerability/GO-2026-5009","license":"OSV · upstream source license applies","key":"osv:GO-2026-5009","identifiers":["GO-2026-5009","CVE-2026-45695","GHSA-2q4c-3mrw-63c3"]},"retained":false,"historicalAffected":[]}],"coverage":[{"source":"cisa-kev:global","scope":"Complete CISA KEV catalog; all vendors. Missing entries do not establish absence of exploitation.","generation":"2026-11-24T16:27:35.1014021+00:00","complete":true,"records":1792,"lastAttemptAt":"2026-11-24T16:27:35.1014021+00:00","lastSuccessAt":"2026-11-24T16:27:35.2736393+00:00","error":null,"lastVerifiedAt":"2026-11-24T16:27:35.2736396+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"cve-program","scope":"Official CVE Program baseline and cumulative hourly delta; all vendors, published and rejected records","generation":"cve-f6e4a7f93ed9acd6fcb1f804a4567f7b9b16730ac126110af8d6d24176317946-26c342a9be4af34a850993e976104f24abdf30a5222e04f08f23bfca0e1cdeba","complete":true,"records":431370,"lastAttemptAt":"2026-11-24T16:25:34.0545101+00:00","lastSuccessAt":"2026-11-24T16:25:33.9422167+00:00","error":null,"lastVerifiedAt":"2026-11-24T16:25:34.0545101+00:00","snapshotPublishedAt":"2026-11-24T15:29:19+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"euvd","scope":"Rolling EUVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global EUVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-13d965c22f664dcaa612cd65d84653da","complete":false,"records":13935,"lastAttemptAt":"2026-11-24T16:29:23.1973039+00:00","lastSuccessAt":"2026-11-24T16:29:23.193+00:00","error":"177 identifier lookups failed; latest failures include AccessDenied (HTTP 403). Other identifiers were checked independently.","lastVerifiedAt":"2026-11-24T16:29:23.193+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13787,"expectedIdentifiers":13982,"failedIdentifiers":177},{"source":"first-epss:nuget","scope":"FIRST EPSS for explicit CVE aliases in the collected public NuGet archive. Not a global EPSS backfill.","generation":"2026-11-24T16:27:35.1014021+00:00","complete":true,"records":1131,"lastAttemptAt":"2026-11-24T16:27:35.1014021+00:00","lastSuccessAt":"2026-11-24T16:27:35.2747106+00:00","error":null,"lastVerifiedAt":"2026-11-24T16:27:35.2747107+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"nvd","scope":"Rolling NVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global NVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-e050c3a482794db99b7c4883b7ad91ea","complete":false,"records":13947,"lastAttemptAt":"2026-11-24T16:28:00.6624544+00:00","lastSuccessAt":"2026-11-24T16:28:00.659+00:00","error":null,"lastVerifiedAt":"2026-11-24T16:28:00.659+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13484,"expectedIdentifiers":13982,"failedIdentifiers":0},{"source":"osv:Go","scope":"Complete OSV Go ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"go-c86437892ddabdeaf17409463a17578b1e71dd185d64061100dd57629858f6d6","complete":true,"records":10074,"lastAttemptAt":"2026-11-24T16:27:34.9269919+00:00","lastSuccessAt":"2026-11-23T22:27:19.6557603+00:00","error":null,"lastVerifiedAt":"2026-11-24T16:27:34.9269919+00:00","snapshotPublishedAt":"2026-11-23T21:33:52+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:NuGet","scope":"Complete OSV NuGet ecosystem archive, including GitHub Advisory Database records; NuGet version matching only","generation":"nuget-6ba2352decd0c95d34a1b50f642582aa34659ce946f552488f0a5cea4e0cc09a","complete":true,"records":2020,"lastAttemptAt":"2026-11-24T16:25:34.2708616+00:00","lastSuccessAt":"2026-11-20T15:46:15.4249619+00:00","error":null,"lastVerifiedAt":"2026-11-24T16:25:34.2708616+00:00","snapshotPublishedAt":"2026-11-20T14:48:20+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:crates.io","scope":"Complete OSV crates.io ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"crates.io-3afd4dd07a6bf352a6a53c4438150c464a2527017b95ca94804134ea15f1eba9","complete":true,"records":3220,"lastAttemptAt":"2026-11-24T16:27:35.0338485+00:00","lastSuccessAt":"2026-11-24T10:25:37.8779609+00:00","error":null,"lastVerifiedAt":"2026-11-24T16:27:35.0338485+00:00","snapshotPublishedAt":"2026-11-24T09:33:40+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:npm","scope":"Complete OSV npm ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"npm-98c5b9e47ed574c44b8c146691425c21163fa9d3671ec8f82b6a89fa1b17ab39","complete":true,"records":233022,"lastAttemptAt":"2026-11-24T16:27:34.8024986+00:00","lastSuccessAt":"2026-11-24T16:27:33.5712216+00:00","error":null,"lastVerifiedAt":"2026-11-24T16:27:34.8024986+00:00","snapshotPublishedAt":"2026-11-24T15:33:43+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}