CVE-2024-21493
JSON

5.3medium

Improper Validation of Array Index in github.com/greenpau/caddy-security

Severity
5.3medium CVSS:3.1 by snyk
Exploit likelihood
0.72% (higher than 55% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
snyk
Also known as
GHSA-8h95-jcp5-pjprGO-2024-2564

Description

All versions of the package github.com/greenpau/caddy-security are vulnerable to Improper Validation of Array Index when parsing a Caddyfile. Multiple parsing functions in the affected library do not validate whether their input values are nil before attempting to access elements, which can lead to a panic (index out of range). Panics during the parsing of a configuration file may introduce ambiguity and vulnerabilities, hindering the correct interpretation and configuration of the web server.

Affected

Product or packageVersionsReported by
github.com/greenpau/caddy-securitybefore *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.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L/E:P
GitHub5.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
NVD5.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Classification

CWE-129

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

What each source says

CVE List

All versions of the package github.com/greenpau/caddy-security are vulnerable to Improper Validation of Array Index when parsing a Caddyfile. Multiple parsing functions in the affected library do not validate whether their input values are nil before attempting to access elements, which can lead to a panic (index out of range). Panics during the parsing of a configuration file may introduce ambiguity and vulnerabilities, hindering the correct interpretation and configuration of the web server.

Go Vulnerability Database

Improper Validation of Array Index in github.com/greenpau/caddy-security

NVD (es)

Todas las versiones del paquete github.com/greenpau/caddy-security son vulnerables a una validación incorrecta del índice de matriz al analizar un Caddyfile. Varias funciones de análisis en la librería afectada no validan si sus valores de entrada son nulos antes de intentar acceder a los elementos, lo que puede provocar pánico (índice fuera de rango). Los pánicos durante el análisis de un archivo de configuración pueden introducir ambigüedad y vulnerabilidades, dificultando la correcta interpretación y configuración del servidor web.

References

Sources

SourceRecordLicence
CVE ListCVE-2024-21493 changed 2024-08-01CVE Terms of Use
GitHub Advisory DatabaseGHSA-8h95-jcp5-pjpr changed 2024-06-28CC-BY-4.0
Go Vulnerability DatabaseGO-2024-2564 changed 2026-03-03CC-BY-4.0
NVDCVE-2024-21493 changed 2026-06-17Public domain