{"id":"CVE-2024-21493","aliases":["CVE-2024-21493","GHSA-8h95-jcp5-pjpr","GO-2024-2564"],"related":[],"kind":"vulnerability","state":"published","title":"Improper Validation of Array Index in github.com/greenpau/caddy-security","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"Improper Validation of Array Index in github.com/greenpau/caddy-security","format":"markdown","source":"go"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2024-02-17T05:00:08.927Z","modified":"2026-06-17T07:09:36.567Z","severity":{"scorer":"snyk","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L/E:P","score":5.3,"rating":"MEDIUM"},"severities":[{"scorer":"snyk","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L/E:P","score":5.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS: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,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS: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,"rating":"MEDIUM"}],"cwes":["CWE-129"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"*","status":"affected"}],"product":"github.com/greenpau/caddy-security","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","lastAffected":"1.1.23"}],"ecosystem":"Go","package":"github.com/greenpau/caddy-security","purl":"pkg:golang/github.com/greenpau/caddy-security","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected"}],"ecosystem":"Go","package":"github.com/greenpau/caddy-security","purl":"pkg:golang/github.com/greenpau/caddy-security","source":"go"},{"ranges":[],"vendor":"greenpau","product":"caddy-security","cpe":"cpe:2.3:a:greenpau:caddy-security:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://security.snyk.io/vuln/SNYK-GOLANG-GITHUBCOMGREENPAUCADDYSECURITY-5961078","tags":["third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://blog.trailofbits.com/2023/09/18/security-flaws-in-an-sso-plugin-for-caddy/","tags":["third-party-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://github.com/greenpau/caddy-security/issues/263","tags":["issue-tracking","report","web","x-transferred"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-21493","tags":["advisory"],"sources":["ghsa","go"]},{"url":"https://blog.trailofbits.com/2023/09/18/security-flaws-in-an-sso-plugin-for-caddy","tags":["web"],"sources":["ghsa","go"]},{"url":"https://github.com/advisories/GHSA-8h95-jcp5-pjpr","tags":["advisory"],"sources":["go"]}],"credits":["Maciej Domanski","Travis Peters","David Pokora"],"assigner":"snyk","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-02-20T18:44:32.300Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-21493","url":"https://www.cve.org/CVERecord?id=CVE-2024-21493","licence":"CVE Terms of Use","modified":"2024-08-01T22:20:40.991Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-8h95-jcp5-pjpr","url":"https://github.com/advisories/GHSA-8h95-jcp5-pjpr","licence":"CC-BY-4.0","modified":"2024-06-28T15:58:30.931Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2024-2564","url":"https://pkg.go.dev/vuln/GO-2024-2564","licence":"CC-BY-4.0","modified":"2026-03-03T04:54:43.422Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-21493","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-21493","licence":"Public domain","modified":"2026-06-17T07:09:36.567Z"}],"updatedAt":"2026-11-25T22:58:36.885Z","epss":{"score":0.00722,"percentile":0.55217,"date":"2026-12-01T12:00:22.000Z"}}