Papermerge
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- 3.5.3
Mitigation
The record names no fix. Check the vendor advisory below.
Timeline
Days relative to CVE publicationFirst public PoC 6 h after publication; not in CISA KEV. First PoC: kashishtopi/CVE-2026-105314 (created 5 Oct 2026, found by us: backfilled).
PoC repositories
Found on GitHub.1 PoCs
PoCs 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| kashishtopi/CVE-2026-105314 | 5 Oct 2026 +6 h | 0 | PoC |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.
Other public exploits
Exploit-DB, Metasploit and nuclei count as public PoCs. Exploit-tagged references from the CVE record and NVD are links only. None of these are analysed by us.| Source | Title | Published | Found by us |
|---|---|---|---|
| PoC Index | https://github.com/kashishtopi/cve-pocs/blob/main/papermerge-core-arbitrary-file-write-rce/HR-papermerge-core-path-traversal-rce.pdf | unknown | 14 Nov 2026 |
PoC characteristics
What to hunt for in your logs · from 1 PoC repoPOST /documents/upload
- Key headers
Authorization: Bearer x.eyJzdWIiOiAiYjAzOGY2YjctMWE2ZS00ZDEyLWI3ZDgtOTlkZGUzYTE0Mjk0IiwgInByZWZlcnJlZF91c2VybmFtZSI6ICJsb3dwcml2IiwgImVtYWlsIjogImxvd3ByaXZAZXhhbXBsZS5jb20iLCAic2NvcGVzIjogWyJub2RlLmNyZWF0ZSIsICJkb2N1bWVudC51cGxvYWQiLCAibm9kZS52aWV3Il19.xAuthorization: Bearer eyJhbGciOiAiSFMyNTYiLCAidHlwIjogIkpXVCJ9.eyJzdWIiOiAiZjMzNDRjMjctNzc0ZS00MzYxLWE5YjMtOTY4MDc5MzQyZTU1IiwgInByZWZlcnJlZF91c2VybmFtZSI6ICJsb3dwcml2IiwgImVtYWlsIjogImxvd3ByaXZAZXhhbXBsZS5jb20iLCAic2NvcGVzIjogWyJub2RlLmNyZWF0ZSIsICJkb2N1bWVudC51cGxvYWQiXX0.sig- Body markers
------pmpoc Content-Disposition: form-data; name="file"; filename="../../../../../../../../../../../../tmp/pm_pwn/evil.pname="file"------pmpoc Content-Disposition: form-data; name="file"; filename="../../../../../../../../../../../../../../tmp/pm_poc_inmultipart/form-data; boundary=----pmpoc- Ports
- 8000
- PoC User-Agent
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 Chrome/140.0 Safari/537.36- Seen in
- 1 repo: kashishtopi/CVE-2026-105314
- Evidence
- kashishtopi/CVE-2026-105314/evidence/BURP_request.txt:9 kashishtopi/CVE-2026-105314/poc.py:31 kashishtopi/CVE-2026-105314/standup/REPEATER-request.txt:1
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/documents/upload(?:[?#].*)?$
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET [8000] (msg:"GG PoC-Monitor CVE-2026-105314 Papermerge Papermerge exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/documents/upload"; http.header; content:"Authorization: Bearer x.eyJzdWIiOiAiYjAzOGY2YjctMWE2ZS00ZDEyLWI3ZDgtOTlkZGUzYTE0Mjk0IiwgInByZWZlcnJlZF91c2VybmFtZSI6ICJsb3dwcml2IiwgImVtYWlsIjogImxvd3ByaXZAZXhhbXBsZS5jb20iLCAic2NvcGVzIjogWyJub2RlLmNyZWF0ZSIsICJkb2N1bWVudC51cGxvYWQiLCAibm9kZS52aWV3Il19.x"; nocase; http.header; content:"Authorization: Bearer eyJhbGciOiAiSFMyNTYiLCAidHlwIjogIkpXVCJ9.eyJzdWIiOiAiZjMzNDRjMjctNzc0ZS00MzYxLWE5YjMtOTY4MDc5MzQyZTU1IiwgInByZWZlcnJlZF91c2VybmFtZSI6ICJsb3dwcml2IiwgImVtYWlsIjogImxvd3ByaXZAZXhhbXBsZS5jb20iLCAic2NvcGVzIjogWyJub2RlLmNyZWF0ZSIsICJkb2N1bWVudC51cGxvYWQiXX0.sig"; nocase; http.request_body; content:"------pmpoc Content-Disposition: form-data|3b| name=|22|file|22||3b| filename=|22|../../../../../../../../../../../../tmp/pm_pwn/evil.p"; http.request_body; content:"name=|22|file|22|"; http.request_body; content:"------pmpoc Content-Disposition: form-data|3b| name=|22|file|22||3b| filename=|22|../../../../../../../../../../../../../../tmp/pm_poc_"; reference:url,poc.griffinguard.io/cve/CVE-2026-105314; classtype:web-application-attack; sid:9736696; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: Papermerge Papermerge exploit attempt (CVE-2026-105314)
id: gg-pocmon-cve-2026-105314-9736696
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-105314. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-105314
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/documents/upload'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2026.105314