# CVE-2024-21494: Authentication Bypass by Spoofing in github.com/greenpau/caddy-security

- Severity: Medium 5.4 (CVSS:3.1, scored by snyk) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N/E:P`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.52%, higher than 45% of CVEs (2026-12-01)
- Published: 2024-02-17T05:00:07.518Z
- Modified: 2026-06-17T07:09:36.700Z
- Also known as: GHSA-vj36-3ccr-6563, GO-2024-2558
- Weaknesses: CWE-79, CWE-290
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: snyk

## Description

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.

(As written by CVE List.)

## Affected

- github.com/greenpau/caddy-security: before *
- github.com\/greenpau\/caddy-security github.com\/greenpau\/caddy-security: up to *
- github.com/greenpau/caddy-security (Go): up to 1.1.23; all versions
- greenpau caddy-security: no versions given

## Every score

- snyk: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N/E:P`
- GitHub: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N`
- NVD: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N`

## References

- <https://security.snyk.io/vuln/SNYK-GOLANG-GITHUBCOMGREENPAUCADDYSECURITY-6249859> (third-party-advisory, web)
- <https://github.com/greenpau/caddy-security/issues/266> (issue-tracking, report, web)
- <https://blog.trailofbits.com/2023/09/18/security-flaws-in-an-sso-plugin-for-caddy/> (third-party-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-21494> (advisory)
- <https://blog.trailofbits.com/2023/09/18/security-flaws-in-an-sso-plugin-for-caddy> (web)
- <https://github.com/advisories/GHSA-vj36-3ccr-6563> (advisory)

## Sources

- CVE List: [CVE-2024-21494](https://www.cve.org/CVERecord?id=CVE-2024-21494), CVE Terms of Use, modified 2025-04-24
- GitHub Advisory Database: [GHSA-vj36-3ccr-6563](https://github.com/advisories/GHSA-vj36-3ccr-6563), CC-BY-4.0, modified 2024-06-28
- Go Vulnerability Database: [GO-2024-2558](https://pkg.go.dev/vuln/GO-2024-2558), CC-BY-4.0, modified 2026-03-03
- NVD: [CVE-2024-21494](https://nvd.nist.gov/vuln/detail/CVE-2024-21494), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-21494 · Whole record: https://cve.day/CVE-2024-21494.json · Rebuilt by cve.day 2026-11-25T22:58:36.886Z
