CVE-2018-19148: Caddy allows enumeration of Certificates and Hostnames
3.7
CVSS Score
3.0
Basic Information
CVE ID
GHSA ID
EPSS Score
0.38648%
CWE
Published
5/14/2022
Updated
4/24/2024
KEV Status
No
Technology
Go
Technical Details
CVSS Vector
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
github.com/caddyserver/caddy | go | < 0.11.1 | 0.11.1 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stemmed from Caddy's TLS handshake behavior when encountering unmatched Host headers. The key functions in caddytls/handshake.go
: 1) getCertificate()
previously selected a random certificate from a global cache when no SNI match was found, as shown by the commit diff removing 'default certificate' fallback logic. 2) getCertDuringHandshake()
facilitated this by not properly restricting certificate selection. The patch introduced certificate cache restructuring and strict SNI matching, confirming these functions' role in the vulnerability.