CVE-2026-118756
CVE-2026-118756 · gopass before 1.17.0 Path Traversal via fs Storage Prune and IsDir
This page contains facts from public vulnerability sources. Check the original advisory before updating.
gopass before 1.17.0 contains a path traversal vulnerability in the filesystem storage backend that allows attackers to delete directories outside the password store via ../ entry names in Prune and IsDir. Collaborators with write access to a shared git-synced store can introduce crafted entries, causing a victim's recursive gopass rm -r to delete arbitrary directory trees.
CVSS 6.7 · Medium · EPSS 0.1% · Fix available
- Published
- Updated
Stack: system
Affected products and versions
gopass
- Versions
- ≥ 0, < 1.17.0: Affected (semver)
Update to 1.17.0
gopass Ubuntu:18.04:LTS
- Versions
- 1.0.6-2
- 1.0.7-1
- 1.0.8-1
- 1.0.8-2
- 1.2.0-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
gopass Ubuntu:20.04:LTS
- Versions
- 1.2.0-2
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
gopass Ubuntu:22.04:LTS
- Versions
- 1.4.1-1
- 1.5.0-1
- 1.5.0-1ubuntu0.22.04.1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
gopass Ubuntu:24.04:LTS
- Versions
- 1.5.0-1build1
- 1.5.0-1ubuntu0.24.04.1
- 1.5.0-1ubuntu0.24.04.2
- 1.5.0-1ubuntu0.24.04.3
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
Original sources
- https://github.com/gopasspw/gopass/security/advisories/GHSA-rw43-4vhf-hcvj
- https://github.com/gopasspw/gopass/commit/4f76ed537d8293ab88959a31a932dd9b3112a0a2
- https://github.com/gopasspw/gopass/releases/tag/v1.17.0
- https://github.com/gopasspw/gopass/blob/v1.16.1/internal/backend/storage/fs/store.go#L207-L226
- https://www.vulncheck.com/advisories/gopass-before-1.17.0-path-traversal-via-fs-storage-prune-and-isdir
- https://nvd.nist.gov/vuln/detail/CVE-2026-118756