Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate as low-privilege user
-
DeliveryIdentify target mail account ID
-
ExploitSend test() request with attacker IMAP server
-
ExecutionApplication reuses stored credentials
-
PersistCredentials transmitted to attacker host
-
ImpactIMAP 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
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
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
Network API requiring low-privilege auth (change_mailaccount); no complexity beyond permission; full credential confidentiality loss; no integrity or availability impact.
Primary rating from Vendor (309f9ea4-e3e9-4c6c-b79d-e8eb01244f2c).
CVSS VectorVendor: 309f9ea4-e3e9-4c6c-b79d-e8eb01244f2c
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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Server-Side Request Forgery exploits applications that fetch remote resources based on user-supplied URLs.
EUVD-2026-53317
GHSA-666w-8983-6664
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB