CVE-2024-21498 Server-Side Request Forgery in github.com/greenpau/caddy-security

Medium 5.3 Published Updated

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.

PackageAffectedFixed in
github.com/greenpau/caddy-security GoAll versionsNone
github.com/greenpau/caddy-security GoAll versions to 1.1.23None
github.com/greenpau/caddy-security GoAll versions to 1.1.23None

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.

Sources

Also known as GHSA-93x8-66j2-wwr5, GO-2024-2561.

Is CVE-2024-21498 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free