CVE-2018-19148
What it is
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.
At a glance
- Exploitability
- Can be exploited over the network without logging in. Limited direct impact.
- Exploit odds
- 0.9% chance of exploitation in the next 30 days (EPSS).
- Fix
- A patch, advisory or fixed version is referenced. Upgrade or apply it.
Timeline
- PublishedDisclosed publicly on CVE.org and NVD
- Last updatedMost recent change to the record
Why it ranks here
- Exploited in the wild: no, CISA does not list it.
- Exploit odds: 0.9% in the next 30 days (EPSS).
- Severity: 3.7 LOW (CVSS).
- Fix: a patch or advisory is linked.
Details
- Published
- Last modified
- Exploit probability
- 0.9% · EPSS, next 30 days
- Weakness
- CWE-200 · Information exposure
- Record status
- Modified
Affected
- Caddyserver Caddy ≤ 0.11.0
Attack profile CVSS 3.0 · 3.7
- Attack vector
- Network
- Complexity
- High
- Privileges needed
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- Low
- Integrity
- None
- Availability
- None
Raw vector
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N
Is it in your code?
Hand this to your coding agent. It searches your project for the affected products and checks versions. Nothing leaves your machine.
Read https://cve-list.com/agent/cve/CVE-2018-19148.md and follow it. Check whether this project is affected by CVE-2018-19148. Read only. Don't change anything and don't upload my code. Tell me yes, no or not sure, with the file as proof.
Fix and advisories
- 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
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