CVE-2018-19148
mediumpriority · track · 15EPSS 0.009 · 58 %ileEUUSEPSS · scored 2026-10-28
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.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · low–medium · 3.4–4.3
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (3)
Products and version ranges known to be affected.
advisories (1)
Vendor and ecosystem advisories describing this.
- GHSA-jf2w-mq6r-56v8Caddy allows enumeration of Certificates and Hostnames2022-05-14ghsa · osvUS
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.
also known as (3)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (10)
External citations — patches, advisories, analysis.
- https://github.com/mholt/caddy/issues/1303cnnvd
- https://github.com/mholt/caddy/issues/2334cnnvd
- https://github.com/mholt/caddy/pull/2015cnnvd
- https://github.com/mholt/caddy/issues/1303enisa_euvd
- https://github.com/mholt/caddy/issues/2334enisa_euvd
- https://github.com/mholt/caddy/pull/2015enisa_euvd
- https://github.com/mholt/caddy/issues/1303Issue TrackingPatchThird Party Advisorynvd
- https://github.com/mholt/caddy/issues/2334Issue TrackingPatchThird Party Advisorynvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan