CVE-2024-21493 Improper Validation of Array Index in github.com/greenpau/caddy-security
- 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.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| 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
| Product | Affected versions | Fixed 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
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com issue-tracking
- blog.trailofbits.com third-party-advisory
- security.snyk.io third-party-advisory
- github.com vendor-advisory