5.4medium
Authentication Bypass by Spoofing in github.com/greenpau/caddy-security
- Severity
- 5.4medium CVSS:3.1 by snyk
- Exploit likelihood
- 0.52% (higher than 45% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- snyk
- Also known as
- GHSA-vj36-3ccr-6563GO-2024-2558
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| github.com/greenpau/caddy-security | before * | CVE List |
| github.com\/greenpau\/caddy-security github.com\/greenpau\/caddy-security | up to * | CVE List |
| github.com/greenpau/caddy-security (Go) | up to 1.1.23, all versions | GitHub Advisory Database, Go Vulnerability Database |
| greenpau caddy-security | Not specified | NVD |
All scores
| snyk | 5.4medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N/E:P |
| GitHub | 5.4medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N |
| NVD | 5.4medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N |
Classification
What each source says
CVE List
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.
Go Vulnerability Database
Authentication Bypass by Spoofing in github.com/greenpau/caddy-security
NVD (es)
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.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-21494 changed 2025-04-24 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-vj36-3ccr-6563 changed 2024-06-28 | CC-BY-4.0 |
| Go Vulnerability Database | GO-2024-2558 changed 2026-03-03 | CC-BY-4.0 |
| NVD | CVE-2024-21494 changed 2026-06-17 | Public domain |