CVE-2026-40258: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in gramps-project gramps-web-api
CVE-2026-40258 is a critical path traversal vulnerability in the Gramps Web API versions 1. 6. 0 through 3. 11. 0. It allows an authenticated user with owner-level privileges to craft a malicious ZIP file that exploits directory traversal in the media archive import feature, enabling arbitrary file writes outside the intended extraction directory. Starting with version 3. 11. 1, the vulnerability is mitigated by validating ZIP entry names against the resolved extraction path and aborting imports if entries fall outside the temporary directory.
AI Analysis
Technical Summary
The Gramps Web API, a Python REST API for genealogical research software, contains a path traversal vulnerability (CWE-22) in its media archive import feature in versions 1.6.0 through 3.11.0. An authenticated owner-level user can create a specially crafted ZIP archive with directory-traversal filenames (Zip Slip) that allows writing files outside the designated temporary extraction directory on the server's filesystem. This can lead to arbitrary file overwrite, potentially compromising confidentiality, integrity, and availability of the system. The issue is addressed in version 3.11.1 by validating ZIP entry paths against the real extraction directory path and aborting the import if any entry attempts to escape this directory.
Potential Impact
Successful exploitation allows an authenticated user with owner-level privileges to write arbitrary files outside the intended extraction directory on the server. This can lead to full system compromise including confidentiality, integrity, and availability impacts as indicated by the CVSS score of 9.1 (critical). There are no known exploits in the wild at this time.
Mitigation Recommendations
A fix is available starting with Gramps Web API version 3.11.1, which implements validation of ZIP entry paths to prevent directory traversal during media archive import. Users should upgrade to version 3.11.1 or later to remediate this vulnerability. Since no official patch or advisory beyond this version information is provided, check the vendor's official channels for the latest updates and confirm upgrade availability.
CVE-2026-40258: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in gramps-project gramps-web-api
Description
CVE-2026-40258 is a critical path traversal vulnerability in the Gramps Web API versions 1. 6. 0 through 3. 11. 0. It allows an authenticated user with owner-level privileges to craft a malicious ZIP file that exploits directory traversal in the media archive import feature, enabling arbitrary file writes outside the intended extraction directory. Starting with version 3. 11. 1, the vulnerability is mitigated by validating ZIP entry names against the resolved extraction path and aborting imports if entries fall outside the temporary directory.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The Gramps Web API, a Python REST API for genealogical research software, contains a path traversal vulnerability (CWE-22) in its media archive import feature in versions 1.6.0 through 3.11.0. An authenticated owner-level user can create a specially crafted ZIP archive with directory-traversal filenames (Zip Slip) that allows writing files outside the designated temporary extraction directory on the server's filesystem. This can lead to arbitrary file overwrite, potentially compromising confidentiality, integrity, and availability of the system. The issue is addressed in version 3.11.1 by validating ZIP entry paths against the real extraction directory path and aborting the import if any entry attempts to escape this directory.
Potential Impact
Successful exploitation allows an authenticated user with owner-level privileges to write arbitrary files outside the intended extraction directory on the server. This can lead to full system compromise including confidentiality, integrity, and availability impacts as indicated by the CVSS score of 9.1 (critical). There are no known exploits in the wild at this time.
Mitigation Recommendations
A fix is available starting with Gramps Web API version 3.11.1, which implements validation of ZIP entry paths to prevent directory traversal during media archive import. Users should upgrade to version 3.11.1 or later to remediate this vulnerability. Since no official patch or advisory beyond this version information is provided, check the vendor's official channels for the latest updates and confirm upgrade availability.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-04-10T17:31:45.787Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 69e2a83ebdfbbecc5994f12f
Added to database: 4/17/2026, 9:38:06 PM
Last enriched: 4/17/2026, 9:53:17 PM
Last updated: 4/18/2026, 3:52:53 AM
Views: 8
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.