CVE-2026-27588

Caddy: MatchHost becomes case-sensitive for large host lists (>100), enabling host-based route/auth bypass

State
Published
Severity
7.7 High
Published
Feb 24, 2026
Updated
Feb 27, 2026
Reserved
Feb 20, 2026

Read the record on cve.org

Description

Caddy is an extensible server platform that uses TLS by default. Prior to version 2.11.1, Caddy's HTTP `host` request matcher is documented as case-insensitive, but when configured with a large host list (>100 entries) it becomes case-sensitive due to an optimized matching path. An attacker can bypass host-based routing and any access controls attached to that route by changing the casing of the `Host` header. Version 2.11.1 contains a fix for the issue.

Scores

CVSSScoreVectorSource
4.07.7 HighCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:PGitHub_M

Weaknesses

  • CWE-178 Improper Handling of Case Sensitivity

Affected Products

ProductVersions
caddycaddyserver
  • < 2.11.1Affected

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.