Kopia through 0.23.1 Path Traversal in Snapshot Restore via Directory Entry Names
- State
- Published
- Severity
- 6.9 Medium
- Published
- Nov 6, 2026
- Updated
- Nov 11, 2026
- Reserved
- Nov 6, 2026
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.
| Product | Versions |
|---|---|
| kopia kopia | 0.23.1 and earlier Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 6.9 Medium | VulnCheck | |
| 3.1 | 5.7 Medium | VulnCheck |
Weaknesses
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
References
- GitHub Issue #5700Issue Tracker
- https://github.com/kopia/kopiaProduct Page
- https://github.com/kopia/kopia/blob/v0.23.1/snapshot/restore/restore.go#L397Technical Details
- VulnCheck Advisory: Kopia through 0.23.1 Path Traversal in Snapshot Restore via Directory Entry NamesThird-Party Advisory
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.