CVE-2026-40258: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in gramps-project gramps-web-api
The Gramps Web API is a Python REST API for the genealogical research software Gramps. Versions 1.6.0 through 3.11.0 have a path traversal vulnerability (Zip Slip) in the media archive import feature. An authenticated user with owner-level privileges can craft a malicious ZIP file with directory-traversal filenames to write arbitrary files outside the intended temporary extraction directory on the server's local filesystem. Startig in version 3.11.1, ZIP entry names are now validated against the resolved real path of the temporary directory before extraction. Any entry whose resolved path falls outside the temporary directory raises an error and aborts the import.
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 exploit this by submitting a specially crafted ZIP archive with directory-traversal filenames, enabling arbitrary file writes outside the designated temporary extraction directory on the server's filesystem. From version 3.11.1 onward, the API validates ZIP entry names against the resolved real path of the temporary directory and aborts the import if any entry attempts to escape this directory, mitigating the vulnerability.
Potential Impact
Successful exploitation allows an authenticated owner-level user to write arbitrary files anywhere on the server's local filesystem where the API runs. This can lead to complete compromise of confidentiality, integrity, and availability of the affected system. The CVSS 3.1 base score is 9.1 (critical), reflecting network attack vector, low attack complexity, high privileges required, no user interaction, and complete impact on confidentiality, integrity, and availability.
Mitigation Recommendations
A fix is available starting with Gramps Web API version 3.11.1, which includes 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 link or advisory is provided, verify the upgrade availability from the vendor's official channels before applying.
CVE-2026-40258: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in gramps-project gramps-web-api
Description
The Gramps Web API is a Python REST API for the genealogical research software Gramps. Versions 1.6.0 through 3.11.0 have a path traversal vulnerability (Zip Slip) in the media archive import feature. An authenticated user with owner-level privileges can craft a malicious ZIP file with directory-traversal filenames to write arbitrary files outside the intended temporary extraction directory on the server's local filesystem. Startig in version 3.11.1, ZIP entry names are now validated against the resolved real path of the temporary directory before extraction. Any entry whose resolved path falls outside the temporary directory raises an error and aborts the import.
CVSS v3.1
Score 9.1critical
Weaknesses
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 exploit this by submitting a specially crafted ZIP archive with directory-traversal filenames, enabling arbitrary file writes outside the designated temporary extraction directory on the server's filesystem. From version 3.11.1 onward, the API validates ZIP entry names against the resolved real path of the temporary directory and aborts the import if any entry attempts to escape this directory, mitigating the vulnerability.
Potential Impact
Successful exploitation allows an authenticated owner-level user to write arbitrary files anywhere on the server's local filesystem where the API runs. This can lead to complete compromise of confidentiality, integrity, and availability of the affected system. The CVSS 3.1 base score is 9.1 (critical), reflecting network attack vector, low attack complexity, high privileges required, no user interaction, and complete impact on confidentiality, integrity, and availability.
Mitigation Recommendations
A fix is available starting with Gramps Web API version 3.11.1, which includes 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 link or advisory is provided, verify the upgrade availability from the vendor's official channels before applying.
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/25/2026, 2:53:50 AM
Last updated: 5/31/2026, 10:07:31 PM
Views: 104
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.