CVE-2023-50463 Details
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).
A vulnerability exists in the Caddy GeoIP middleware, specifically in versions through 0.6.0, when the X-Forwarded-For header is trusted. This configuration allows attackers to spoof their source IP address, potentially bypassing protections like the trusted_proxy directive in reverse_proxy and IP address range restrictions. The issue arises because the trust_header option overwrites the req.RemoteAddr variable, which can be exploited to manipulate the remote address in subsequent request checks.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
No SSVC data is available for this CVE.
References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://caddyserver.com/v2 | CVE | Broken Link |
| https://github.com/shift72/caddy-geo-ip/issues/4 | CVE | Third Party Advisory |
| https://github.com/shift72/caddy-geo-ip/tags | CVE | Release Notes |
| https://caddyserver.com/v2 | [email protected] | Broken Link |
| https://github.com/shift72/caddy-geo-ip/issues/4 | [email protected] | Third Party Advisory |
| https://github.com/shift72/caddy-geo-ip/tags | [email protected] | Release Notes |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-290 | Authentication Bypass by Spoofing | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| caddyserver caddy | <= 0.6.0 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Nov 21, 2024 | CVE Modified | CVE |
| May 14, 2024 | CVE Modified | [email protected] |
| Dec 13, 2023 | Initial Analysis | [email protected] |
| Dec 10, 2023 | New CVE Received | [email protected] |