CVE-2018-21246: Caddy vulnerable to Authentication Bypass due to mishandling of TLS client authentication
9.8
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.66282%
CWE
Published
10/6/2022
Updated
2/14/2023
KEV Status
No
Technology
Go
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| github.com/caddyserver/caddy | go | < 0.10.13 | 0.10.13 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stemmed from three key flaws: 1) Missing enforcement of hostname consistency between TLS SNI and HTTP Host headers, 2) Failure to require strict configuration when ClientAuth was enabled, and 3) Ambiguous ClientAuth CA pool configurations. The commit diff shows these functions were specifically modified to add StrictHostMatching enforcement, QUIC compatibility checks, and CA pool validation - indicating they were the vulnerable points. The pre-patch versions of MakeServers didn't set StrictHostMatching, serveHTTP didn't validate SNI/Host consistency, and assertConfigsCompatible didn't check CA pool conflicts.