Skip to content

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

MediumCVSS 5.3 EPSS 0.72%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: partial

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.

Upgrade path

2 packages: 0 fixed, 1 partially fixed, 1 with no fix yet.

PackageAffectedFixed inStatus
greenpau github.com/greenpau/caddy-security All versions No fix listed No fix yet
greenpau github.com/greenpau/caddy-security(Go) <= 1.1.23; All versions after 1.1.23 Partially fixed

Affected products

ProductAffected versionsFixed in
greenpau github.com/greenpau/caddy-security(Go) <= 1.1.23 No fix listed
greenpau github.com/greenpau/caddy-security(Go) All versions No fix listed
greenpau github.com/greenpau/caddy-security All versions No fix listed

References