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.
Published: 2026-10-05
Score: 7.5 High
EPSS: n/a
KEV: No
Impact: Remote Code Execution
Action: Immediate Patch
AI Analysis

Impact

Papermerge 3.5.3 allows a standard user to execute arbitrary code remotely by exploiting directory traversal in the /api/documents/upload endpoint. By providing a specially crafted path, an attacker can write a .pth file into the site‑packages directory; that file is executed automatically when the Python interpreter starts again. This grants the attacker full privilege to run any code on the host, effectively compromising confidentiality, integrity, and availability of the system.

Affected Systems

Vulnerable in Papermerge version 3.5.3, the open‑source Document Management application maintained by Papermerge. No other versions or variants were listed in the CNA data.

Risk and Exploitability

The CVSS score of 7.5 indicates a high severity with potential for remote code execution. The EPSS score is not available, and the vulnerability is not listed in the CISA KEV catalog at present. The attack vector is inferred to be remote, via the public API, requiring only normal user credentials to upload a malicious file. Successful exploitation would allow the requester to run arbitrary code with the privileges of the application process after the next interpreter restart.

Generated by OpenCVE AI on October 5, 2026 at 09:24 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Papermerge to the latest release where the /api/documents/upload path sanitization has been fixed.
  • As an interim measure, remove any .pth files that may have been written to the site‑packages directory and restrict the upload API to authenticated users only.
  • Restart the application after remediation and verify that the site-packages directory no longer contains malicious .pth files.

Generated by OpenCVE AI on October 5, 2026 at 09:24 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 05 Oct 2026 09:45:00 +0000

Type Values Removed Values Added
Title Arbitrary File Write Leading to Remote Code Execution via Directory Traversal in Papermerge

Mon, 05 Oct 2026 08:00:00 +0000

Type Values Removed Values Added
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.
First Time appeared Papermerge
Papermerge papermerge
Weaknesses CWE-24
CPEs cpe:2.3:a:papermerge:papermerge:*:*:*:*:*:*:*:*
Vendors & Products Papermerge
Papermerge papermerge
References
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H'}


Subscriptions

Papermerge Papermerge
cve-icon MITRE

Status: PUBLISHED

Assigner: mitre

Published:

Updated: 2026-10-05T07:28:30.062Z

Reserved: 2026-10-05T07:28:29.666Z

Link: CVE-2026-105314

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-10-05T08:17:15.797

Modified: 2026-10-05T08:17:15.797

Link: CVE-2026-105314

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-05T09:30:10Z

Weaknesses
  • CWE-24

    Path Traversal: '../filedir'