CVE-2026-40258
Path Traversal (Zip Slip) in Gramps Web API Allows Arbitrary File Write
Publication date: 2026-04-17
Last updated on: 2026-04-17
Assigner: GitHub, Inc.
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| gramps | gramps | From 1.6.0 (inc) to 3.11.0 (inc) |
| gramps | gramps | From 3.11.1 (inc) |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-22 | The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory. |
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?
The vulnerability exists in the Gramps Web API versions 1.6.0 through 3.11.0, specifically in the media archive import feature. It is a path traversal vulnerability known as Zip Slip. An authenticated user with owner-level privileges can create a malicious ZIP file containing directory-traversal filenames. When this ZIP file is imported, it can cause files to be written outside the intended temporary extraction directory on the server's local filesystem.
Starting from version 3.11.1, this issue is mitigated by validating ZIP entry names against the resolved real path of the temporary directory before extraction. If any entry's resolved path falls outside the temporary directory, an error is raised and the import is aborted.
How does this vulnerability affect compliance with common standards and regulations (like GDPR, HIPAA)?:
The vulnerability allows an authenticated user with owner-level privileges to perform a path traversal attack via crafted ZIP files, enabling arbitrary file writes outside the intended directory on the server's filesystem.
Such unauthorized file writes could lead to unauthorized access, modification, or destruction of sensitive data, which may impact compliance with data protection regulations like GDPR and HIPAA that require strict controls over data integrity and confidentiality.
However, the provided information does not explicitly state the direct impact on compliance with these standards.
How can this vulnerability impact me? :
This vulnerability can have severe impacts because it allows an authenticated user with owner-level privileges to write arbitrary files anywhere on the server's local filesystem outside the intended directory. This can lead to unauthorized modification or overwriting of critical files, potentially resulting in system compromise, data corruption, or denial of service.
Given the CVSS base score of 9.1, the vulnerability is considered critical, affecting confidentiality, integrity, and availability of the system.
What immediate steps should I take to mitigate this vulnerability?
To mitigate this vulnerability, you should upgrade the Gramps Web API to version 3.11.1 or later.
Starting from version 3.11.1, ZIP entry names are validated against the resolved real path of the temporary directory before extraction, preventing path traversal attacks.