Description
Kopia through 0.23.1 contains a path traversal vulnerability in copyDirectoryContent that allows users with repository write access to escape the restore directory via crafted entry names. Attackers can create snapshots whose directory manifest entries are named '..', so victims restoring with default options write attacker-chosen content outside the restore directory.
Severity (CVSS)
| Base score | 6.9 |
|---|---|
| Severity | Medium |
| Version | CVSS 4.0 |
| Vector | CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N |
| Provided by | CNA |
Weaknesses
- CWE-22 — Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Affected products
| Vendor | Product | Versions |
|---|---|---|
| kopia | kopia | 0 to <=0.23.1 [affected] |
References
- https://github.com/kopia/kopia/issues/5700 (issue-tracking)
- https://github.com/kopia/kopia (product)
- https://github.com/kopia/kopia/blob/v0.23.1/snapshot/restore/restore.go#L397 (technical-description)
- https://www.vulncheck.com/advisories/kopia-through-0.23.1-path-traversal-in-snapshot-restore-via-directory-entry-names (third-party-advisory)
Assess this vulnerability
Compare your deployed product and version with the source record. Review vendor references for fixes and workarounds. A CVSS score describes technical severity; it does not establish that your systems are affected or that exploitation has occurred.
Browse all CVE security advisories · Symaro cybersecurity services
Generated from the official CVE List on 07 Nov 2026 08:06 UTC.