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 package | Versions | Reported by |
|---|---|---|
| github.com/greenpau/caddy-security | before * | 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.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L/E:P |
| GitHub | 5.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
| NVD | 5.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
Classification
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
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-21493 changed 2024-08-01 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-8h95-jcp5-pjpr changed 2024-06-28 | CC-BY-4.0 |
| Go Vulnerability Database | GO-2024-2564 changed 2026-03-03 | CC-BY-4.0 |
| NVD | CVE-2024-21493 changed 2026-06-17 | Public domain |