Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify Mailu front-end using proxy auth
-
DeliverySend request with forged X-Forwarded-By header
-
Exploitnginx passes spoofed value upstream unmodified
-
ExecutionTrusted proxy identity accepted
-
PersistAuthenticate without credentials
-
ImpactAccess mailboxes/admin as any user
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A07:2025 - Authentication Failures
ASVS 5.0
V6 - Authentication Anti-spoofing controls
MITRE ATT&CK
1 technique across 1 tactic: Defense Evasion The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Requires a Mailu deployment (2.0 through 2024.06.55, or helm-charts before 2.7.3) that has PROXY_AUTH_WHITELIST configured to enable header-based proxy authentication AND has REAL_IP_HEADER left unset. Under exactly this combination, nginx's proxy.conf hid X-Forwarded-By from upstream responses but never overwrote the incoming client-supplied value, so an attacker-supplied X-Forwarded-By is trusted. This is NOT the default configuration: installations that do not use proxy auth, or that set REAL_IP_HEADER, are unaffected. Once the vulnerable config is present, no authentication, no user interaction, and no special client position are needed - a single forged HTTP header from any remote host bypasses authentication. |
| Impact | The vendor CVSS of 9.8 (AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H) reflects a full unauthenticated remote authentication bypass, and the vector is internally consistent with CWE-290 (Authentication Bypass by Spoofing): a client-controlled X-Forwarded-By header is trusted for header-based proxy authentication. However, the raw 9.8 overstates real-world exposure because exploitation is strictly gated on a non-default configuration - PROXY_AUTH_WHITELIST must be set AND REAL_IP_HEADER must be left unset. Deployments not using header-based proxy auth, or that correctly set REAL_IP_HEADER, are not affected, so this is an environmental precondition the base score cannot express. No EPSS score, no CISA KEV listing, and no public POC are present in the provided data, so there is no signal of active or imminent mass exploitation; the technique itself (spoofing an HTTP header) is trivial once the vulnerable config is present. Net: a genuinely serious, easily-weaponized flaw FOR THE SUBSET of Mailu operators running proxy auth without REAL_IP_HEADER, but not a universal 'patch-everything-now' emergency for all Mailu installs. Treat as high priority specifically for deployments using PROXY_AUTH_WHITELIST. |
| Exploit ScenarioDerived | A Mailu operator has enabled header-based proxy authentication via PROXY_AUTH_WHITELIST but did not set REAL_IP_HEADER. An unauthenticated remote attacker sends an HTTP request to the exposed Mailu front-end with a forged X-Forwarded-By header matching a trusted proxy identity; because nginx hid the header from responses but never overwrote the incoming request value, the attacker is treated as the trusted proxy and is authenticated without credentials. No public POC is referenced in the provided data, but the exploit is a single crafted request requiring low complexity. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 21, 2026
Authentication bypass in Mailu 2.0 through 2024.06.55 and Mailu helm-charts before 2.7.3 allows unauthenticated remote attackers to spoof the trusted proxy identity via a client-controlled X-Forwarded-By header, bypassing header-based proxy authentication. This affects only deployments with PROXY_AUTH_WHITELIST configured and REAL_IP_HEADER unset; default configurations are not vulnerable. The vendor has released fixes in Mailu 2024.06.55 and helm-charts 2.7.3, and no public exploit has been identified at time of analysis.
RemediationAI
Upgrade to Mailu 2024.06.55 or later, and to Mailu helm-charts 2.7.3 or later, to obtain the vendor-released patch that sets X-Forwarded-By to $remote_addr in the nginx proxy configuration. If an immediate upgrade is not possible, a workaround is to manually add 'proxy_set_header X-Forwarded-By $remote_addr;' to the nginx proxy.conf in affected deployments, which overwrites spoofed client values; this requires rebuilding or modifying the container and may be overwritten by updates. Alternatively, if header-based proxy authentication is not needed, remove PROXY_AUTH_WHITELIST from the configuration to eliminate the attack vector, though this may disable SSO or proxy-based access controls. Setting REAL_IP_HEADER to a trusted value (e.g., X-Forwarded-For) also mitigates the issue by changing how the real client IP is derived, but it must be configured consistently with the front-end proxy to avoid breaking client IP logging. For full details, refer to the advisory at https://github.com/Mailu/Mailu/security/advisories/GHSA-rfhj-4wcq-74xg and the fix commits.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The vulnerability is an authentication bypass by spoofing (CWE-290) in the nginx reverse proxy configuration shipped with Mailu, a Docker-based mail server suite. Mailu versions 2.0 through 2024.06.55 and Mailu helm-charts before 2.7.3 use an nginx template at core/nginx/conf/proxy.conf that, when PROXY_AUTH_WHITELIST is configured for header-based proxy authentication and REAL_IP_HEADER is unset, fails to overwrite the incoming X-Forwarded-By header. The proxy_hide_header directive removed the header from upstream responses but did not set it on requests, so a remote client could supply an arbitrary X-Forwarded-By value that the backend trusted as the proxy identity. The fix adds proxy_set_header X-Forwarded-By $remote_addr; to overwrite the header with the actual direct client IP, ensuring spoofed values are ignored. Affected products per CPE include cpe:2.3:a:mailu:mailu and cpe:2.3:a:mailu:helm-charts.
Know when Mailu gets its next vulnerability
- 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:N/UI:N/S:U/C:H/I:H/A:H
Once the vulnerable proxy-auth config exists, a single spoofed header from any remote unauthenticated host yields full account/admin access; the config prerequisite is environmental, not a base-metric factor.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
2DescriptionCVE.org
Mailu is a mail server distributed as a set of Docker images. From Mailu 2.0 until 2024.06.55 and prior to Mailu helm-charts 2.7.3, deployments with PROXY_AUTH_WHITELIST configured but REAL_IP_HEADER unset trusted a client-controlled X-Forwarded-By header for header-based proxy authentication. The proxy_hide_header directive in the nginx template at core/nginx/conf/proxy.conf hid the header from upstream responses but did not overwrite the incoming request value in this configuration. An unauthenticated remote attacker could therefore spoof the trusted proxy identity and bypass authentication. This issue is fixed in Mailu 2024.06.55 and Mailu helm-charts 2.7.3.
Articles & Coverage 2
Technical POC Analysis
This is CWE-290 Authentication Bypass by Spoofing; the advisory also tags CWE-807 Reliance on Untrusted Inputs in a Security Decision.
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
Mailu email server versions 2.0 through 2024.06.55 and helm-charts before 2.7.3 contain a critical authentication bypass (CVE-2026-85751) that allows attackers to spoof trusted proxy identity in specific configurations. Organizations using PROXY_AUTH_WHITELIST without REAL_IP_HEADER are at risk of unauthorized access to email services, potentially leading to data exposure and operational disruption. Leadership should ensure immediate patching to mitigate this high-risk vulnerability.
Apply vendor patch.
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
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
In Mailu before version 1.7, an authenticated user can exploit a vulnerability in Mailu fetchmail script and gain full a
Cross-domain sender spoofing in Mailu allows a domain manager to authenticate as arbitrary senders on other domains host
Mailu, an open-source mail server distributed as a set of Docker images, contains an authorization flaw that lets an aut
EUVD-2026-83975
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB