CVE-2026-85751

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

Published Sep 21, 2026 CVSS 3.1 · 9.8 Critical EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

The vulnerability allows an attacker to spoof the identity of a trusted proxy by sending a crafted X-Forwarded-By header, thereby bypassing the authentication controls that rely on header‑based proxy authentication. This results in unauthorized access to the mail server, enabling retrieval or manipulation of mail data.

Affected Systems

Mailu mail server deployed via Docker images, versions 2.0 through 2024.06.55, and Mailu helm‑charts prior to 2.7.3, when the configuration includes PROXY_AUTH_WHITELIST while REAL_IP_HEADER is not set. These settings cause the application to accept the X‑Forwarded‑By header as a trusted proxy identifier.

Risk and Exploitability

The CVSS score of 9.8 reflects a critical severity. EPSS is not available, and the vulnerability is not listed in KEV, but a remote attacker can exploit it over the network by injecting a header into an HTTP request. Based on the description, the likely attack vector is remote HTTP header injection, potentially allowing unrestricted access to the mail service without authentication. Immediate remediation is required.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Mailu to version 2024.06.55 or newer, and Helm charts to 2.7.3 or newer.
  • If immediate upgrade is not feasible, set REAL_IP_HEADER to a value that matches the actual reverse proxy IP, and ensure PROXY_AUTH_WHITELIST is only enabled for trusted sources.
  • Avoid relying on X-Forwarded-By for authentication; remove or disable header‑based proxy authentication until the vulnerability is patched.

Generated by OpenCVE AI on September 21, 2026 at 16:20 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Mailu
Mailu helm-charts
Mailu mailu
Vendors & Products Mailu
Mailu helm-charts
Mailu mailu
Type Values Removed Values Added
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.
Title Mailu: Authentication bypass in header-based proxy authentication via spoofable `X-Forwarded-By` trust
Weaknesses CWE-290
CWE-807
References
Metrics cvssV3_1

{'score': 9.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}

Weaknesses
  • CWE-290

    Authentication Bypass by Spoofing

  • CWE-807

    Reliance on Untrusted Inputs in a Security Decision

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Sep 21, 2026, 5:56 PM
Reserved
Sep 4, 2026, 2:50 PM
Status
Deferred
Published
Sep 21, 2026, 4:17 PM
Modified
Sep 24, 2026, 9:25 PM