CVE-2023-50463Caddyserver Caddy
Medium 6.5 No auth needed
Follow: this CVE · Caddyserver · Caddyserver Caddy We alert you by email or Slack (account required).
- Priority
- 54
- CVSS 3.1
- 6.5
- EPSS
- 0.8% probability of exploitation in 30 days · percentile 53
- Auth required
- No
- Published
- Dec 10, 2023
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-290
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N
What happens
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).
What to do
- Apply the vendor's security update for Caddy.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Go | github.com/shift72/caddy-geo-ip |
≤ 0.6.0 |
no fixed version | — |
| Go | github.com/shift72/caddy-geo-ip |
all |
no fixed version | — |
Per OSV / GitHub Advisories (GHSA-rxg9-hgq7-8pwx, GO-2023-2394). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| caddyserver | caddy | ≤ 0.6.0 |
Official sources
References
Links published by the sources. Open them with care.
- caddyserver.com Broken Link
- github.com Third Party Advisory
- github.com Release Notes