CVE-2024-21498 Server-Side Request Forgery in github.com/greenpau/caddy-security
Attackers can exploit SSRF via X-Forwarded-Host header manipulation in the Caddy security plugin to access internal services and sensitive data.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2024-21498?
CVE-2024-21498 is a medium-severity server-side request forgery vulnerability in github.com/greenpau/caddy-security, published on 17 Feb 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
All versions of the package github.com/greenpau/caddy-security are vulnerable to Server-side Request Forgery (SSRF) via X-Forwarded-Host header manipulation. An attacker can expose sensitive information, interact with internal services, or exploit other vulnerabilities within the network by exploiting this vulnerability.
Weakness: CWE-918
Which versions are affected by CVE-2024-21498?
3 open source packages ship an affected version, including github.com/greenpau/caddy-security. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
github.com/greenpau/caddy-security Go | All versions | None |
github.com/greenpau/caddy-security Go | All versions to 1.1.23 | None |
github.com/greenpau/caddy-security Go | All versions to 1.1.23 | None |
Products include Authcrunch Caddy-Security.
How do I fix CVE-2024-21498?
No fix has been published for CVE-2024-21498 yet. Limit exposure of the affected software until one is available.
Upgrade, and send outbound requests through an allow-list that blocks internal addresses. More about Server-side request forgery.
Is CVE-2024-21498 being exploited?
There is no known exploitation of CVE-2024-21498 in the wild and no public exploit code.
Other vulnerabilities in github.com/greenpau/caddy-security
- CVE-2024-21496 Cross-site Scripting in github.com/greenpau/caddy-security
- CVE-2023-52430 caddy-security plugin for Caddy vulnerable to reflected Cross-site Scripting
- CVE-2024-21492 Insufficient Session Expiration in github.com/greenpau/caddy-security
- CVE-2024-21500 Improper Restriction of Excessive Authentication Attempts in github.com/greenpau/caddy-security
Sources
Also known as GHSA-93x8-66j2-wwr5, GO-2024-2561.