CVE-2023-50463 Header spoofing in caddy-geo-ip

Medium 6.5 Published Updated

Attackers can spoof source IP addresses via X-Forwarded-For headers to bypass IP-based access controls in Caddy's GeoIP middleware.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
None listed

What is CVE-2023-50463?

CVE-2023-50463 is a medium-severity vulnerability in n/a, published on 10 Dec 2023. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

The caddy-geo-ip (aka GeoIP) middleware through 0.6.0 for Caddy 2, when trust_header X-Forwarded-For is used, allows attackers to spoof their source IP address via an X-Forwarded-For header, which may bypass a protection mechanism (trusted_proxy directive in reverse_proxy or IP address range restrictions).

Weakness: CWE-290

Which versions are affected by CVE-2023-50463?

3 open source packages ship an affected version, including github.com/shift72/caddy-geo-ip. It affects 1 product.

PackageAffectedFixed in
github.com/shift72/caddy-geo-ip GoAll versionsNone
github.com/shift72/caddy-geo-ip GoAll versions to 0.6.0None
github.com/shift72/caddy-geo-ip GoAll versions to 0.6.0None

Products include Caddyserver Caddy.

How do I fix CVE-2023-50463?

No fix has been published for CVE-2023-50463 yet. Limit exposure of the affected software until one is available.

Is CVE-2023-50463 being exploited?

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

Sources

Also known as GHSA-rxg9-hgq7-8pwx, GO-2023-2394.

Is CVE-2023-50463 in your software?

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

Check your SBOMs for free