CVE-2026-118756

gopass before 1.17.0 Path Traversal via fs Storage Prune and IsDir

Published Oct 28, 2026 CVSS 4.0 · 6.7 Medium EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

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.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the gopass client to version 1.17.0 or later to apply the fix for the path traversal flaw.
  • Limit write access to the shared git‑synced repository to trusted collaborators and enforce strict commit review policies to prevent injection of malicious entries.
  • After patching, perform a cleanup: search for entries containing "../" in the password store and remove or correct them to avoid inadvertent directory deletions.

Generated by OpenCVE AI on October 28, 2026 at 22:50 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Gopasspw
Gopasspw gopass
Vendors & Products Gopasspw
Gopasspw gopass
Type Values Removed Values Added
Description 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.
Title gopass before 1.17.0 Path Traversal via fs Storage Prune and IsDir
Weaknesses CWE-22
References
Metrics cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H'}

cvssV4_0

{'score': 6.7, 'vector': 'CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Nov 5, 2026, 4:26 PM
Reserved
Oct 28, 2026, 7:13 PM
Status
Deferred
Published
Oct 28, 2026, 10:17 PM
Modified
Nov 5, 2026, 5:17 PM
Severity
Moderate
Public date
Oct 28, 2026, 9:11 PM