Technical impact
Gopass versions prior to 1.17.0 contain a path traversal flaw in the filesystem storage backend. The flaw is triggered by entry names that include "../" and is exercised during Prune and IsDir operations. When a compromised or maliciously modified entry is present, an attacker who can trigger a recursive removal command can cause gopass to delete arbitrary directory trees outside the intended password store. The weakness is a clear example of CWE‑22, which compromises the integrity of the filesystem and can lead to loss of files and compromised system state.
Affected Systems
The affected product is the open‑source password manager gopass, version 1.16.1 and all releases before 1.17.0. Only environments that use the filesystem storage backend and permit collaborative writes, such as shared git‑synced stores, are impacted. Users running newer releases or not using the fs backend are not affected.
Risk and Exploitability
The flaw scores a 6.7 on the CVSS scale, indicating moderate severity. The EPSS score is not available, so the current exploit probability is unknown, but the issue is not listed in the CISA KEV catalog. Exploitation requires an attacker to insert malicious entries into a shared store, which implies either a compromised collaborator or a direct write to the repository. Once the vulnerable entries exist, any local user executing a recursive remove with gopass can inadvertently delete directories outside the password store, making the vulnerability highly damaging in environments where users have write access to the shared repository.