{"id":"CVE-2024-21494","aliases":["EUVD-2024-0735","GHSA-vj36-3ccr-6563","GO-2024-2558"],"status":"published","title":"Authentication Bypass by Spoofing in github.com/greenpau/caddy-security","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.","severity":{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N/E:P","level":"medium","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-12","score":0.00519,"percentile":0.44586,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":false},"cwes":["CWE-290","CWE-79"],"published":"2024-02-17T05:00:07Z","modified":"2026-06-17T07:09:36Z","affected":[{"source":"ghsa","ecosystem":"Go","package":"github.com/greenpau/caddy-security","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"1.1.23"}]}]},{"source":"osv","ecosystem":"Go","package":"github.com/greenpau/caddy-security","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"last_affected":"1.1.23"}]}]},{"source":"osv","ecosystem":"Go","package":"github.com/greenpau/caddy-security","ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}]}],"products":[{"vendor":"github.com\\/greenpau\\/caddy-security","product":"github.com\\/greenpau\\/caddy-security"},{"vendor":"greenpau","product":"caddy-security"}],"references":[{"url":"https://security.snyk.io/vuln/SNYK-GOLANG-GITHUBCOMGREENPAUCADDYSECURITY-6249859","tags":["x_transferred","Third Party Advisory","web"]},{"url":"https://github.com/greenpau/caddy-security/issues/266","tags":["x_transferred","Issue Tracking","web","report"]},{"url":"https://blog.trailofbits.com/2023/09/18/security-flaws-in-an-sso-plugin-for-caddy/","tags":["x_transferred","Third Party Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-21494","tags":["advisory"]},{"url":"https://blog.trailofbits.com/2023/09/18/security-flaws-in-an-sso-plugin-for-caddy","tags":["web"]},{"url":"https://github.com/advisories/GHSA-vj36-3ccr-6563","tags":["advisory"]},{"url":"github.com/greenpau/caddy-security","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2024-21494","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.","status":"published","published":"2024-02-17T05:00:07.518Z","modified":"2025-04-24T15:12:20.92Z","cvss":[{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N/E:P","level":"medium","assessor":"cna"}],"cwes":["CWE-290","CWE-79"],"updated_at":"2026-11-02T14:34:04.681315Z"}],"euvd":[{"id":"EUVD-2024-0735","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.","status":"published","published":"2024-02-17T05:00:07Z","modified":"2025-04-24T15:12:20Z","cvss":[{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N/E:P","level":"medium"}],"updated_at":"2026-11-02T20:52:04.118749Z"}],"ghsa":[{"id":"GHSA-vj36-3ccr-6563","title":"Authentication Bypass by Spoofing in github.com/greenpau/caddy-security","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.","status":"published","published":"2024-02-17T06:30:34Z","modified":"2026-03-21T05:21:51Z","cvss":[{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N","level":"medium"}],"cwes":["CWE-79","CWE-290"],"updated_at":"2026-11-02T14:39:40.633038Z"}],"nvd":[{"id":"CVE-2024-21494","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.","status":"published","published":"2024-02-17T05:15:09.077Z","modified":"2026-06-17T07:09:36.7Z","cvss":[{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N","level":"medium","assessor":"secondary"},{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N","level":"medium","assessor":"primary"}],"cwes":["CWE-290","CWE-79"],"updated_at":"2026-11-02T14:09:37.655131Z"}],"osv":[{"id":"GHSA-vj36-3ccr-6563","title":"Authentication Bypass by Spoofing in github.com/greenpau/caddy-security","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.","status":"published","published":"2024-02-17T06:30:34Z","modified":"2024-06-28T15:58:30.531033Z","cvss":[{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N","level":"medium"}],"cwes":["CWE-290","CWE-79"],"updated_at":"2026-11-02T15:46:57.348035Z"},{"id":"GO-2024-2558","title":"Authentication Bypass by Spoofing in github.com/greenpau/caddy-security","description":"Authentication Bypass by Spoofing in github.com/greenpau/caddy-security","status":"published","published":"2024-06-28T15:28:53Z","modified":"2026-03-03T04:54:42.785861Z","updated_at":"2026-11-02T15:47:01.185262Z"}]}}
