CVE-2024-21494Greenpau Caddy-security
Medium 5.4 No auth needed
Follow: this CVE · Greenpau · Greenpau Caddy-security We alert you by email or Slack (account required).
- Priority
- 47
- CVSS 3.1
- 5.4
- EPSS
- 0.7% probability of exploitation in 30 days · percentile 49
- Auth required
- No
- Published
- Feb 17, 2024
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
What happens
All versions of the package github.com/greenpau/caddy-security are vulnerable to Authentication Bypass by Spoofing via the X-Forwarded-For header due to improper input sanitization. An attacker can spoof an IP address used in the user identity module (/whoami API endpoint). This could lead to unauthorized access if the system trusts this spoofed IP address.
What to do
- Apply the vendor's security update for Caddy-security.
- 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/greenpau/caddy-security |
≤ 1.1.23 |
no fixed version | — |
| Go | github.com/greenpau/caddy-security |
all |
no fixed version | — |
Per OSV / GitHub Advisories (GHSA-vj36-3ccr-6563, GO-2024-2558). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| greenpau | caddy-security | all |
Official sources
References
Links published by the sources. Open them with care.
- blog.trailofbits.com Third Party Advisory
- github.com Issue Tracking
- security.snyk.io Third Party Advisory