Live › vulnerability › CVE-2026-40258
Go to dashboardGramps Web API extracts uploaded media ZIP archives without checking entry names, so a ZIP with ../ paths writes files outside the extraction directory. An owner-level user can overwrite other trees' database or media files on local-storage deployments.
Summary written from the sources below. Check the originals before acting.
First seen by InfraStack 2026-10-27 16:35 UTC, 0h before NVD. All times on this page are UTC.
Deployments running gramps-webapi between 1.6.0 and 3.11.0 that let tree owners upload media archives. The risk is highest on multi-tree servers where owners differ from administrators and trees use SQLite or local media files. Single-tree deployments, or Postgres with S3 media and environment-only config, have much less exposed data.
| Product | Ecosystem | Affected | Fixed in |
|---|---|---|---|
| gramps-webapi | pypi | >= 1.6.0, <= 3.11.0 | 3.11.1 |
pip show gramps-webapi and confirm the installed version is between 1.6.0 and 3.11.0gramps-webapi to 3.11.1Each row is the first time that source carried this signal. The analyst’s rows are its own findings.
A path traversal vulnerability (Zip Slip) exists 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.
When importing media archives as ZIP file, MediaImporter._check_disk_space_and_extract() in gramps_webapi/api/media_importer.py called zipfile.extractall() without validating ZIP entry names. Python's zipfile module does not sanitize entry names containing ../ sequences, allowing extraction to paths outside the target directory.
Only users with owner permission can upload media ZIP archives, so the biggest risk is for multi-tree deployments, where tree owners are distinct from server administrators.
For multi-tree deployments, the impact depends on deployment configuration. Assuming the standard docker-based deployment is used:
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.
This page as .md · .json · in your agent: get_signal("CVE-2026-40258")
GitHub Advisory Database, CC-BY 4.0 · NVD data is provided by NIST and is public domain. Posts quoted belong to their authors.