{"id":"CVE-2024-21493","aliases":["EUVD-2024-0575","GHSA-8h95-jcp5-pjpr","GO-2024-2564"],"status":"published","title":"Improper Validation of Array Index in github.com/greenpau/caddy-security","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.","severity":{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L/E:P","level":"medium","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-11","score":0.00722,"percentile":0.54444,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":false},"cwes":["CWE-129"],"published":"2024-02-17T05:00:08Z","modified":"2026-06-17T07:09:36Z","affected":[{"source":"ghsa","ecosystem":"Go","package":"github.com/greenpau/caddy-security","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"1.1.23"}]}]},{"source":"osv","ecosystem":"Go","package":"github.com/greenpau/caddy-security","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"last_affected":"1.1.23"}]}]},{"source":"osv","ecosystem":"Go","package":"github.com/greenpau/caddy-security","ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}]}],"products":[{"vendor":"greenpau","product":"caddy-security"}],"references":[{"url":"https://security.snyk.io/vuln/SNYK-GOLANG-GITHUBCOMGREENPAUCADDYSECURITY-5961078","tags":["x_transferred","Third Party Advisory","web"]},{"url":"https://blog.trailofbits.com/2023/09/18/security-flaws-in-an-sso-plugin-for-caddy/","tags":["x_transferred","Third Party Advisory"]},{"url":"https://github.com/greenpau/caddy-security/issues/263","tags":["x_transferred","Issue Tracking","web","report"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-21493","tags":["advisory"]},{"url":"https://blog.trailofbits.com/2023/09/18/security-flaws-in-an-sso-plugin-for-caddy","tags":["web"]},{"url":"https://github.com/advisories/GHSA-8h95-jcp5-pjpr","tags":["advisory"]},{"url":"github.com/greenpau/caddy-security","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2024-21493","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.","status":"published","published":"2024-02-17T05:00:08.927Z","modified":"2024-08-01T22:20:40.991Z","cvss":[{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L/E:P","level":"medium","assessor":"cna"}],"cwes":["CWE-129"],"updated_at":"2026-11-02T14:34:04.681315Z"}],"euvd":[{"id":"EUVD-2024-0575","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.","status":"published","published":"2024-02-17T05:00:08Z","modified":"2024-08-01T22:20:40Z","cvss":[{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L/E:P","level":"medium"}],"updated_at":"2026-11-03T03:50:29.983832Z"}],"ghsa":[{"id":"GHSA-8h95-jcp5-pjpr","title":"Improper Validation of Array Index in github.com/greenpau/caddy-security","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.","status":"published","published":"2024-02-17T06:30:34Z","modified":"2026-03-20T05:03:07Z","cvss":[{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","level":"medium"}],"cwes":["CWE-129"],"updated_at":"2026-11-02T14:39:38.524712Z"}],"nvd":[{"id":"CVE-2024-21493","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.","status":"published","published":"2024-02-17T05:15:08.747Z","modified":"2026-06-17T07:09:36.567Z","cvss":[{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","level":"medium","assessor":"secondary"},{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","level":"medium","assessor":"primary"}],"cwes":["CWE-129"],"updated_at":"2026-11-02T14:09:37.655131Z"}],"osv":[{"id":"GHSA-8h95-jcp5-pjpr","title":"Improper Validation of Array Index in github.com/greenpau/caddy-security","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.","status":"published","published":"2024-02-17T06:30:34Z","modified":"2024-06-28T15:58:30.931249Z","cvss":[{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","level":"medium"}],"cwes":["CWE-129"],"updated_at":"2026-11-02T15:46:42.437513Z"},{"id":"GO-2024-2564","title":"Improper Validation of Array Index in github.com/greenpau/caddy-security","description":"Improper Validation of Array Index in github.com/greenpau/caddy-security","status":"published","published":"2024-06-28T15:28:53Z","modified":"2026-03-03T04:54:43.422807Z","updated_at":"2026-11-02T15:47:01.185262Z"}]}}
