Caddy Security Improper Array Index Validation Vulnerability

Vulnerability

A vulnerability exists in all versions of the Caddy security plugin developed by Greenpau, specifically in the package github.com/greenpau/caddy-security, prior to version 1.1.32. The issue stems from multiple parsing functions that fail to validate input values for nil before accessing elements, leading to panics due to index out-of-range errors. This improper validation can cause ambiguities and vulnerabilities in the web server's configuration, potentially disrupting normal operations.

Impact

Exploitation of this vulnerability causes a panic in the application, disrupting the parsing of the Caddyfile and potentially leading to a denial of service by causing the application to crash.

Reproduction

The vulnerability can be reproduced by parsing a Caddyfile that includes nil values in certain fields, such as 'credentials' or 'sso provider'. This can be done using a test function that creates a Caddyfile dispenser with the crafted input and then parses it, which will trigger the panic by accessing an out-of-range index.

Remediation

Users are advised to upgrade the Caddy security plugin to version 1.1.32 or higher.

Added: Jun 22, 2026, 10:33 AM
Updated: Jun 22, 2026, 10:33 AM

Vulnerability Rating

Custom Algorithm
spread
6.4
impact
2.5
exploitability
6.8
remediation
7.7
relevance
0.0
threat
6.4
urgency
2.9
incentive
0.0

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.