CVE-2024-21494
MEDIUM 5.4CVSS 3.1Authentication Bypass by Spoofing in github.com/greenpau/caddy-security
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.
- Published
- 17 Feb 2024
- Last modified
- 17 Jun 2026
- Assigned by
- report@snyk.io
- NVD status
- Modified
- Weakness
- CWE-290CWE-79
- Also known as
- GHSA-vj36-3ccr-6563GO-2024-2558
- Sources
- NVDJSONOSV GHSA-vj36-3ccr-6563JSONOSV GO-2024-2558JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | report@snyk.io (Secondary) | CVSS 3.1 | MEDIUM 5.4 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 5.4 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.4 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | greenpau | caddy-securitycpe:2.3:a:greenpau:caddy-security:*:*:*:*:*:*:*:* |
all versions | |
| OSV | Go | github.com/greenpau/caddy-security | <= 1.1.23 | |
| OSV | Go | github.com/greenpau/caddy-security | all versions |
References
- https://blog.trailofbits.com/2023/09/18/security-flaws-in-an-sso-plugin-for-caddy/ · Third Party Advisory, WEB
- https://github.com/greenpau/caddy-security/issues/266 · Issue Tracking, WEB, REPORT
- https://security.snyk.io/vuln/SNYK-GOLANG-GITHUBCOMGREENPAUCADDYSECURITY-6249859 · Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-21494 · ADVISORY
- github.com/greenpau/caddy-security · PACKAGE
- https://github.com/advisories/GHSA-vj36-3ccr-6563 · ADVISORY
History
- 25 Nov 2026 20:54 UTC · NVD: first stored (published 17 Feb 2024)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 28 Jun 2024)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 17 Feb 2024)