CVE-2018-21246 Caddy vulnerable to Authentication Bypass due to mishandling of TLS client authentication

Critical 9.8 Published Updated

Attackers can bypass TLS client authentication in Caddy web server due to missing strict host matching, allowing unauthorized access.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2018-21246?

CVE-2018-21246 is a critical authentication bypass vulnerability in n/a, published on 15 Jun 2020. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Caddy before 0.10.13 mishandles TLS client authentication, as demonstrated by an authentication bypass caused by the lack of the StrictHostMatching mode.

Weakness: CWE-287

Which versions are affected by CVE-2018-21246?

3 open source packages ship an affected version, including github.com/caddyserver/caddy and github.com/mholt/caddy. It affects 1 product.

PackageAffectedFixed in
github.com/caddyserver/caddy GoAll versions0.10.13
github.com/caddyserver/caddy GoAll versions0.10.13
github.com/mholt/caddy GoAll versions0.10.13

Products include Caddyserver Caddy.

How do I fix CVE-2018-21246?

Upgrade github.com/caddyserver/caddy to 0.10.13 or later.

Upgrade, and rotate credentials and sessions that may have been exposed. More about Authentication bypass.

Is CVE-2018-21246 being exploited?

There is no known exploitation of CVE-2018-21246 in the wild and no public exploit code.

Sources

Also known as GHSA-gr7w-x2jp-3xgw, GO-2020-0043.

Is CVE-2018-21246 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free