CVE-2024-21493Greenpau Caddy-security
Medium 5.3 No auth needed
Follow: this CVE · Greenpau · Greenpau Caddy-security We alert you by email or Slack (account required).
- Priority
- 47
- CVSS 3.1
- 5.3
- EPSS
- 0.9% probability of exploitation in 30 days · percentile 59
- Auth required
- No
- Published
- Feb 17, 2024
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-129
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
What happens
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.
What to do
- Apply the vendor's security update for Caddy-security.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Go | github.com/greenpau/caddy-security |
≤ 1.1.23 |
no fixed version | — |
| Go | github.com/greenpau/caddy-security |
all |
no fixed version | — |
Per OSV / GitHub Advisories (GHSA-8h95-jcp5-pjpr, GO-2024-2564). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| greenpau | caddy-security | all |
Official sources
References
Links published by the sources. Open them with care.
- blog.trailofbits.com Third Party Advisory
- github.com Issue Tracking
- security.snyk.io Third Party Advisory