{"id":"CVE-2026-40258","published":"2026-04-17T21:12:54Z","modified":"2026-04-20T15:48:41Z","title":"Gramps Web API has Zip Slip Path Traversal in Media Archive Import","vendor":"gramps-project","product":"gramps-web-api","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.1,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00408,"percentile":0.3593,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://github.com/gramps-project/gramps-web-api/security/advisories/GHSA-m5gr-86j6-99jp","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/gramps-project/gramps-web-api/commit/3ed4342711e3ec849552df09b1fe2fbf2ca5c29a","tags":["x_refsource_MISC"]},{"url":"https://github.com/gramps-project/gramps-web-api/releases/tag/v3.11.1","tags":["x_refsource_MISC"]}],"priority":{"score":13.6,"factors":[{"name":"EPSS percentile","points":7.19},{"name":"CVSS severity","points":6.37}]},"vendorSlug":"gramps-project","affectedVersions":[{"vendor":"gramps-project","product":"gramps-web-api","versions":[">= 1.6.0, < 3.11.1"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-04-20T15:48:26.185722Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"gramps-webapi","vulnerableRanges":[">=1.6.0, <3.11.1"],"patched":["3.11.1"],"from":["GHSA-m5gr-86j6-99jp","PYSEC-2026-346"],"provenance":"source"}],"summary":{"text":"The Gramps Web API (gramps-project's Python REST API for the Gramps genealogy software) contains a Zip Slip path traversal flaw in its media archive import feature, affecting versions 1.6.0 through 3.11.0. An attacker who is an authenticated user with owner-level privileges, and who can reach the API over the network, can submit a crafted ZIP file with directory-traversal entry names to write files outside the temporary extraction directory on the server's local filesystem.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:38:26Z"},"euvd":{"id":"EUVD-2026-23541","exploited":false,"provenance":"source"}}