CVE-2026-85751
CriticalCVSS 9.8Summary
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.
Risk Assessment
An unauthenticated attacker can bypass authentication and gain access to protected mail resources by spoofing the trusted proxy identity. The risk is high in deployments with PROXY_AUTH_WHITELIST and without REAL_IP_HEADER.
Recommendation
Upgrade Mailu to version 2024.06.55 or later and Mailu helm-charts to 2.7.3 or later. Ensure REAL_IP_HEADER is set when using PROXY_AUTH_WHITELIST.
Other vulnerabilities in Mailu
Original NVD description (English source)
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.

