{"cve":"CVE-2024-21493","nvd":{"published":"2024-02-17T05:15:08.747","modified":"2026-06-17T07:09:36.567","status":"Analyzed","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","score":5.3},"cwes":["CWE-129"],"references":["https://blog.trailofbits.com/2023/09/18/security-flaws-in-an-sso-plugin-for-caddy/","https://github.com/greenpau/caddy-security/issues/263","https://security.snyk.io/vuln/SNYK-GOLANG-GITHUBCOMGREENPAUCADDYSECURITY-5961078","https://blog.trailofbits.com/2023/09/18/security-flaws-in-an-sso-plugin-for-caddy/","https://github.com/greenpau/caddy-security/issues/263"],"products":["greenpau:caddy-security"],"source":"nvd","synced_at":"2026-10-19T21:45:59.823092188+00:00"},"epss":{"cve":"CVE-2024-21493","score":0.00722,"percentile":0.54013,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-8h95-jcp5-pjpr","url":"https://osv.dev/vulnerability/GHSA-8h95-jcp5-pjpr","summary":"Improper Validation of Array Index in github.com/greenpau/caddy-security","modified":"2024-06-28T15:58:30.931249Z","packages":[{"ecosystem":"Go","name":"github.com/greenpau/caddy-security","purl":"pkg:golang/github.com/greenpau/caddy-security","ranges":["<=1.1.23"],"fixed":[]}]},{"id":"GO-2024-2564","url":"https://osv.dev/vulnerability/GO-2024-2564","summary":"Improper Validation of Array Index in github.com/greenpau/caddy-security","modified":"2026-03-03T04:54:43.422807Z","packages":[{"ecosystem":"Go","name":"github.com/greenpau/caddy-security","purl":"pkg:golang/github.com/greenpau/caddy-security","ranges":["all versions"],"fixed":[]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}