CVE-2024-21495 Use of Insufficiently Random Values in github.com/greenpau/caddy-security
CriticalCVSS 9.8
EPSS 0.68%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: yes · technical impact: partial
Description
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.
Upgrade path
3 packages: 2 fixed, 1 partially fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| greenpau github.com/greenpau/caddy-security(Go) | <= 1.0.42; All versions | after 1.0.42 | Partially fixed |
| authcrunch caddy security | < 1.0.42 | 1.0.42 | Fixed |
| greenpau github.com/greenpau/caddy-security | < 1.0.42 | 1.0.42 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| greenpau github.com/greenpau/caddy-security(Go) | <= 1.0.42 | No fix listed |
| greenpau github.com/greenpau/caddy-security(Go) | All versions | No fix listed |
| authcrunch caddy security | < 1.0.42 | 1.0.42 |
| greenpau github.com/greenpau/caddy-security | < 1.0.42 | 1.0.42 |
References
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com issue-tracking
- github.com patch
- blog.trailofbits.com third-party-advisory
- security.snyk.io third-party-advisory
- github.com vendor-advisory