What’s Vulnerable › Vulnerabilities
CVE-2018-19148
- Severity: low (CVSS 3.7 v3.0)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.9% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2018-11-10 · updated 2026-06-17
- Weakness: CWE-200
Description
Caddy through 0.11.0 sends incorrect certificates for certain invalid requests, making it easier for attackers to enumerate hostnames. Specifically, when unable to match a Host header with a vhost in its configuration, it serves the X.509 certificate for a randomly selected vhost in its configuration. Repeated requests (with a nonexistent hostname in the Host header) permit full enumeration of all certificates on the server. This generally permits an attacker to easily and accurately discover the existence of and relationships among hostnames that weren't meant to be public, though this information could likely have been discovered via other methods with additional effort.
Affected products
- caddyserver caddy: through 0.11.0
References
- https://github.com/mholt/caddy/issues/1303
- https://github.com/mholt/caddy/issues/2334
- https://github.com/mholt/caddy/pull/2015
- https://securitytrails.com/blog/caddy-web-server-ssl-bug
- https://github.com/mholt/caddy/issues/1303
- https://github.com/mholt/caddy/issues/2334
- https://github.com/mholt/caddy/pull/2015
Get alerted when CVE-2018-19148 or the next vulnerability affects your stack