cve.bz

CVE-2024-21495

9.8 criticalEPSS 0.7%

Critical (9.8) in greenpau caddy-security. EPSS 0.7% chance of exploitation in the next 30 days.

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.

Severity

CVSS 3.1

9.8 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
0.7% chance of exploitation in the next 30 days; higher than 52% of CVEs (scores of 2026-10-31)
CWE
CWE-330
Published
Modified
Record from
the NVD, synced

Affected

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-c7vf-m394-m4x4Gogithub.com/greenpau/caddy-security<=1.0.42no fix published
GO-2024-2565Gogithub.com/greenpau/caddy-securityall versionsno fix published

References

Check your stackJSON