Versions of the package github.com/greenpau/caddy-security before 1.0.42 are vulnerable…
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub.
Summary
Versions of the package github.com/greenpau/caddy-security before 1.0.42 are vulnerable to Insecure Randomness due to using an insecure random number generation library which could possibly be predicted via a brute-force search. Attackers could use the potentially predictable nonce value used for authentication purposes in the OAuth flow to conduct OAuth replay attacks. In addition, insecure randomness is used while generating multifactor authentication (MFA) secrets and creating API keys in the database package.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | github.com/greenpau/caddy-security | before 1.0.42 | 1.0.42 | Patch available | CNA |
| — | github.com/greenpau/caddy-security (Go) | up to 1.0.42 | — | No fix listed | GHSA-c7vf-m394-m4x4 |
- github.com/greenpau/caddy-security Vendor— Affected before 1.0.42 Fixed in 1.0.42 Patch available CNA
- github.com/greenpau/caddy-security (Go) Vendor— Affected up to 1.0.42 Fixed in — No fix listed GHSA-c7vf-m394-m4x4
Remediation
- Fix · CNA github.com/greenpau/caddy-security Fixed in 1.0.42
Timeline
- 2026-10-02 Threatist record created from CVE-2024-21495
- 2026-10-03 Alias added: GHSA-c7vf-m394-m4x4
References
Advisory 2
More Greenpau Caddy-security vulnerabilities
- TI-2024-14251 Authentication bypass by spoofing in github.com/greenpau/caddy-security CVSS 3.1MEDIUM 5.4
- TI-2024-14254 Open redirect in github.com/greenpau/caddy-security CVSS 3.1MEDIUM 6.1
- TI-2024-14250 Improper array index validation in github.com/greenpau/caddy-security CVSS 3.1MEDIUM 5.3
- TI-2024-14256 Improper output encoding in github.com/greenpau/caddy-security CVSS 3.1MEDIUM 4.3
Sources
- CVE-2024-21495 · CVE Program
- CVE-2024-21495 · NVD
- FIRST EPSS
- GHSA-c7vf-m394-m4x4 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences