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.
Advisories
Source ID Title
EUVD EUVD EUVD-2024-0575 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.
Github GHSA Github GHSA GHSA-8h95-jcp5-pjpr Improper Validation of Array Index in github.com/greenpau/caddy-security
Fixes

Solution

No solution given by the vendor.


Workaround

No workaround given by the vendor.

History

No history.

Projects

Sign in to view the affected projects.

cve-icon MITRE

Status: PUBLISHED

Assigner: snyk

Published:

Updated: 2024-08-01T22:20:40.991Z

Reserved: 2023-12-22T12:33:20.118Z

Link: CVE-2024-21493

cve-icon Vulnrichment

Updated: 2024-08-01T22:20:40.991Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2024-02-17T05:15:08.747

Modified: 2024-11-21T08:54:32.820

Link: CVE-2024-21493

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

No data.

Weaknesses