CVE-2023-50463 Header spoofing in caddy-geo-ip
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.
| Package | Affected | Fixed in |
|---|---|---|
github.com/shift72/caddy-geo-ip Go | All versions | None |
github.com/shift72/caddy-geo-ip Go | All versions to 0.6.0 | None |
github.com/shift72/caddy-geo-ip Go | All versions to 0.6.0 | None |
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.
Other vulnerabilities in n/a
- CVE-2018-21246 Caddy vulnerable to Authentication Bypass due to mishandling of TLS client authentication
- CVE-2026-27590 Caddy: Unicode case-folding length expansion causes incorrect split_path index in FastCGI transport
- CVE-2026-27586 Caddy's mTLS client authentication silently fails open when CA certificate file is missing or malformed
- CVE-2026-45135 Caddy: Unsafe Unicode Handling in FastCGI splitPos Allows Execution of Non-PHP Files
- CVE-2026-52845 Caddy: FastCGI header normalization bypass in `forward_auth copy_headers`
Sources
Also known as GHSA-rxg9-hgq7-8pwx, GO-2023-2394.