CVE-2026-85751

Mailu: Authentication bypass in header-based proxy authentication via spoofable `X-Forwarded-By` trust

State
Published
Severity
9.8 Critical
Published
Sep 21, 2026
Updated
Sep 21, 2026
Reserved
Sep 4, 2026

Read the record on cve.org

Description

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.

Scores

CVSSScoreVectorSource
3.19.8 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HGitHub_M

Weaknesses

  • CWE-290 Authentication Bypass by Spoofing
  • CWE-807 Reliance on Untrusted Inputs in a Security Decision

Affected Products

ProductVersions
MailuMailu
  • >= 2.0.0, < 2024.06.55Affected
helm-chartsMailu
  • < 2.7.3Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.