Skip to main content

Paperless-ngx CVE-2026-71244

| EUVDEUVD-2026-53317 MEDIUM
Server-Side Request Forgery (SSRF) (CWE-918)
2026-08-05 309f9ea4-e3e9-4c6c-b79d-e8eb01244f2c GHSA-666w-8983-6664
6.5
CVSS 3.1 · Vendor: 309f9ea4-e3e9-4c6c-b79d-e8eb01244f2c
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate as low-privilege user
  2. Delivery
    Identify target mail account ID
  3. Exploit
    Send test() request with attacker IMAP server
  4. Execution
    Application reuses stored credentials
  5. Persist
    Credentials transmitted to attacker host
  6. Impact
    IMAP password or OAuth token harvested

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V4 - API and Web Service URL allowlisting, SSRF prevention
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Credential Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires an authenticated Paperless-ngx session with object-level change_mailaccount permission on at least one target mail account - this permission is below full administrator level and may be delegated to regular users in shared deployments. The target mail account must have stored credentials (IMAP password, OAuth refresh_token, or both). The attacker must control an IMAP server reachable from the Paperless-ngx application host, as the application initiates the outbound connection. Exploitation is limited by: (1) the requirement for at least low-privilege authentication - unauthenticated external attackers cannot exploit this endpoint; (2) the IMAP connection originates from the server host, so network egress controls on the application server can block the credential-forwarding step; (3) single-user deployments where only one fully trusted user manages accounts are not meaningfully exploitable. No non-default configuration setting is required beyond the existence of a stored mail account with credentials.

Impact

The NVD-assigned CVSS 3.1 score of 6.5 (AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N) is consistent with the described attack mechanics: network-reachable API, low complexity, low privilege (change_mailaccount object permission), and high confidentiality impact through credential theft. The PR:L assignment is accurate - exploitation is gated behind authentication and a specific object-level permission, limiting the exposed population to users who have been granted mail account management rights in a multi-user deployment. EPSS data is not available in the provided intelligence set. The CVE is not listed in CISA KEV and no public exploit code has been identified, indicating no confirmed active exploitation at time of analysis. Despite the moderate numeric score, the qualitative impact is high: successful exploitation yields plaintext IMAP passwords or live OAuth refresh tokens for any mail account the attacker has change permission on, which may themselves be credentials to sensitive organizational email. Real-world risk is highest in shared Paperless-ngx deployments where multiple non-admin users hold mail account permissions; single-user self-hosted instances are not exploitable by external parties unless the web interface is internet-exposed.

Exploit ScenarioDerived

An attacker with a legitimate Paperless-ngx account and object-level change_mailaccount permission on a target mail account sends a POST request to the MailAccountViewSet.test() endpoint, supplying the target account's ID, a masked password placeholder, and imap_server/imap_port values pointing to an attacker-controlled IMAP listener. The application rehydrates the stored credentials and initiates an IMAP authentication session to the attacker's server, transmitting the real stored password or OAuth token in cleartext or via standard IMAP AUTH mechanisms that the attacker can intercept. No public exploit code is currently known, but the attack requires only knowledge of standard REST API interaction and an attacker-controlled IMAP server.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Aug 05, 2026

Credential exfiltration via SSRF in Paperless-ngx's mail account test endpoint allows an authenticated user holding only object-level change_mailaccount permission to redirect IMAP test connections to an attacker-controlled host, causing the application to transmit stored plaintext passwords or OAuth tokens to that host. The MailAccountViewSet.test() action accepts caller-supplied imap_server, imap_port, and imap_security parameters while silently reusing the real stored credentials when a masked password placeholder is submitted - a design flaw that converts a benign connectivity test into an unanticipated credential-forwarding primitive. No public exploit code has been identified and this CVE is not currently listed in the CISA KEV catalog.

RemediationAI

No vendor-released patch version has been identified in the available data; the sole reference is the upstream GitHub repository at https://github.com/paperless-ngx/paperless-ngx, which should be monitored for a fix release. As a primary compensating control, restrict the change_mailaccount permission to fully trusted administrators only - this eliminates the low-privilege exploitation path entirely. If granular object-level permissions must remain delegated to non-admin users, consider network-level controls that prevent the Paperless-ngx application server from making outbound IMAP connections to arbitrary hosts (e.g., egress firewall rules that allowlist only known mail server IPs), which would block the credential-forwarding step even if the malformed request is accepted. Note that restricting egress may break legitimate mail account testing against new servers, so coordinate with operators before enforcing it. Rotating stored IMAP passwords and OAuth tokens for all mail accounts as a precautionary measure is advisable if non-admin users have held change_mailaccount permission in a multi-user deployment.

Affected VersionsENISA

paperless-ngx 0

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The vulnerability is rooted in CWE-918 (Server-Side Request Forgery), specifically a credential-forwarding variant where the application initiates an outbound connection on behalf of a caller but uses privileged stored secrets rather than caller-supplied credentials. The affected component is the Django REST Framework ViewSet action MailAccountViewSet.test() in paperless-ngx (GitHub: paperless-ngx/paperless-ngx). When this endpoint receives a request referencing an existing mail account ID with a masked password sentinel, it hydrates the request with the stored account_type, password, refresh_token, and expiration from the database - but accepts imap_server, imap_port, and imap_security directly from the request body without pinning them to the stored account values. The IMAP authentication then proceeds to the attacker-supplied host using the real credentials. The root cause is the asymmetric trust model: stored secrets are treated as protected while connection routing parameters are treated as user-controllable, with no validation that they match the account being tested. Affected CPE is not enumerated in the provided data; the product is the self-hosted paperless-ngx document management application.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (309f9ea4-e3e9-4c6c-b79d-e8eb01244f2c) PRIMARY 6.5 HIGH
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
vuln.today AI 6.5 MEDIUM

Network API requiring low-privilege auth (change_mailaccount); no complexity beyond permission; full credential confidentiality loss; no integrity or availability impact.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (309f9ea4-e3e9-4c6c-b79d-e8eb01244f2c).

CVSS VectorVendor: 309f9ea4-e3e9-4c6c-b79d-e8eb01244f2c

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None

DescriptionCVE.org

Paperless-ngx's MailAccountViewSet.test() action, when called with an existing account's ID and a masked password field, reuses the stored password, account_type, refresh_token, and expiration from that existing account while allowing the caller to supply a different imap_server, imap_port, and imap_security in the same request. The test connection then authenticates to the caller-specified server using the real stored credentials. A user holding only object-level change_mailaccount permission on the target account (not full admin) can redirect the test connection to an attacker-controlled IMAP host, causing the real stored IMAP password or OAuth token to be sent to that host.

Threat Intelligence Overview

EPSS Score
0.2%
Top 90% exploitable
Prevalence
Low
self-hosted niche document management, limited enterprise footprint
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

32
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +32
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Server-Side Request Forgery exploits applications that fetch remote resources based on user-supplied URLs.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy