medium5.7
CVE-2026-124029
Kopia through 0.23.1 contains a path traversal vulnerability in copyDirectoryContent that allows users with repository write access to escape the restore direc…
Impact
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.
An attacker can exploit this over the network, with a regular user account, but a user has to do something, such as open a file or a link. If it succeeds: high risk of data or systems being changed.
Affected products · Kopia
| Product | Affected versions |
|---|---|
| Kopia | through 0.23.1 Version 0 ≤0.23.1 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://github.com/kopia/kopia/issues/5700
- https://github.com/kopia/kopia
- https://github.com/kopia/kopia/blob/v0.23.1/snapshot/restore/restore.go#L397
- https://www.vulncheck.com/advisories/kopia-through-0.23.1-path-traversal-in-snapshot-restore-via-directory-entry-names