CVE-2024-21494
JSON

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 packageVersionsReported by
github.com/greenpau/caddy-securitybefore *CVE List
github.com\/greenpau\/caddy-security github.com\/greenpau\/caddy-securityup to *CVE List
github.com/greenpau/caddy-security (Go)up to 1.1.23, all versionsGitHub Advisory Database, Go Vulnerability Database
greenpau caddy-securityNot specifiedNVD

All scores

snyk5.4medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N/E:P
GitHub5.4medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
NVD5.4medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N

Classification

CWE-79CWE-290

SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.

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

SourceRecordLicence
CVE ListCVE-2024-21494 changed 2025-04-24CVE Terms of Use
GitHub Advisory DatabaseGHSA-vj36-3ccr-6563 changed 2024-06-28CC-BY-4.0
Go Vulnerability DatabaseGO-2024-2558 changed 2026-03-03CC-BY-4.0
NVDCVE-2024-21494 changed 2026-06-17Public domain