Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.1%top 78%

CVE-2026-40258: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in gramps-project gramps-web-api

0
Critical
VulnerabilityCVE-2026-40258cvecve-2026-40258cwe-22
Published: Fri Apr 17 2026 (04/17/2026, 21:12:54 UTC)
Source: CVE Database V5
Vendor/Project: gramps-project
Product: 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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
High
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 04/25/2026, 02:53:50 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses