Vulnerability · Published Feb 17, 2024 · Assigned by snyk

CVE-2024-21493

Medium 5.3

In plain English

A medium-severity security flaw in github.com/greenpau/caddy-security. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.7% (higher than 54% of all known vulnerabilities).

Severity (CVSS 3.1)5.3Medium
Exploit odds (30 days)0.7%top 45.8% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Gogithub.com/greenpau/caddy-securityno fix listedGHSA-8h95-jcp5-pjpr
Gogithub.com/greenpau/caddy-securityno fix listedGO-2024-2564

Affected products (as reported)

VendorProductVersions
n/a github.com/greenpau/caddy-security 0 – before *

Weakness: CWE-129 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L/E:P

References