{"id":"CVE-2024-21494","aliases":["CVE-2024-21494","GHSA-vj36-3ccr-6563","GO-2024-2558"],"related":[],"kind":"vulnerability","state":"published","title":"Authentication Bypass by Spoofing in github.com/greenpau/caddy-security","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"Authentication Bypass by Spoofing in github.com/greenpau/caddy-security","format":"markdown","source":"go"},{"lang":"es","text":"Todas las versiones del paquete github.com/greenpau/caddy-security son vulnerables a la omisión de autenticación mediante suplantación de identidad a través del encabezado X-Forwarded-For debido a una sanitización de entrada inadecuada. Un atacante puede falsificar una dirección IP utilizada en el módulo de identidad del usuario (endpoint API/whoami). Esto podría dar lugar a un acceso no autorizado si el sistema confía en esta dirección IP falsificada.","source":"nvd"}],"published":"2024-02-17T05:00:07.518Z","modified":"2026-06-17T07:09:36.700Z","severity":{"scorer":"snyk","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N/E:P","score":5.4,"rating":"MEDIUM"},"severities":[{"scorer":"snyk","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N/E:P","score":5.4,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"}],"cwes":["CWE-79","CWE-290"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"*","status":"affected"}],"product":"github.com/greenpau/caddy-security","source":"cvelist"},{"ranges":[{"type":"custom","introduced":"0","lastAffected":"*","status":"affected"}],"vendor":"github.com\\/greenpau\\/caddy-security","product":"github.com\\/greenpau\\/caddy-security","cpe":"cpe:2.3:a:github.com\\/greenpau\\/caddy-security:github.com\\/greenpau\\/caddy-security:*:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","lastAffected":"1.1.23"}],"ecosystem":"Go","package":"github.com/greenpau/caddy-security","purl":"pkg:golang/github.com/greenpau/caddy-security","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected"}],"ecosystem":"Go","package":"github.com/greenpau/caddy-security","purl":"pkg:golang/github.com/greenpau/caddy-security","source":"go"},{"ranges":[],"vendor":"greenpau","product":"caddy-security","cpe":"cpe:2.3:a:greenpau:caddy-security:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://security.snyk.io/vuln/SNYK-GOLANG-GITHUBCOMGREENPAUCADDYSECURITY-6249859","tags":["third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/greenpau/caddy-security/issues/266","tags":["issue-tracking","report","web","x-transferred"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://blog.trailofbits.com/2023/09/18/security-flaws-in-an-sso-plugin-for-caddy/","tags":["third-party-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-21494","tags":["advisory"],"sources":["ghsa","go"]},{"url":"https://blog.trailofbits.com/2023/09/18/security-flaws-in-an-sso-plugin-for-caddy","tags":["web"],"sources":["ghsa","go"]},{"url":"https://github.com/advisories/GHSA-vj36-3ccr-6563","tags":["advisory"],"sources":["go"]}],"credits":["Maciej Domanski","Travis Peters","David Pokora"],"assigner":"snyk","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2024-02-20T15:22:14.559Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-21494","url":"https://www.cve.org/CVERecord?id=CVE-2024-21494","licence":"CVE Terms of Use","modified":"2025-04-24T15:12:20.920Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-vj36-3ccr-6563","url":"https://github.com/advisories/GHSA-vj36-3ccr-6563","licence":"CC-BY-4.0","modified":"2024-06-28T15:58:30.531Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2024-2558","url":"https://pkg.go.dev/vuln/GO-2024-2558","licence":"CC-BY-4.0","modified":"2026-03-03T04:54:42.785Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-21494","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-21494","licence":"Public domain","modified":"2026-06-17T07:09:36.700Z"}],"updatedAt":"2026-11-25T22:58:36.886Z","epss":{"score":0.00519,"percentile":0.45561,"date":"2026-12-01T12:00:22.000Z"}}