CVE-2023-50463: 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...
Medium CVSS 6.5
- CVE id
- CVE-2023-50463
- Published
- Last modified
Affected packages
| Package | Affected versions | Fixed in |
|---|---|---|
| Caddy Runtimes and servers |
<= 0.6.0 | after 0.6.0 |
How to fix it
Upgrade Caddy to a release newer than 0.6.0.
caddy version
- Upgrade Caddy (the caddy image tag or binary) to the patched release.
A free AIssue account reads the runtime versions your repositories pin (version files, Dockerfiles, build files) and tells you when one is affected.
Details
The caddy-geo-ip (aka GeoIP) middleware through 0.6.0 for Caddy 2, when trustheader 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 (trustedproxy directive in reverse_proxy or IP address range restrictions).
References
- CVE-2023-50463 on the NVD
- Advisory: https://nvd.nist.gov/vuln/detail/CVE-2023-50463
- Web: https://caddyserver.com/v2
- Web: https://github.com/shift72/caddy-geo-ip/issues/4
- Web: https://github.com/shift72/caddy-geo-ip/tags
- Web: https://caddyserver.com/v2
- Web: https://github.com/shift72/caddy-geo-ip/issues/4
- Web: https://github.com/shift72/caddy-geo-ip/tags
Am I affected?
Upload or paste your lockfile. We check every package version in it against OSV.dev, this advisory included, and email you the vulnerable ones with the version that fixes them. Free, and no account needed.
About this data
Source: National Vulnerability Database (NVD) (public domain). Severity comes from the advisory's own rating when it has one, else from its CVSS score.