Vulnerability in Greenpau Caddy-Security

CVE-2024-21495

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.

EPSS: 0.007 (48.7th percentile) — read the EPSS interpretation.

CVSS v3 metric

CVSS v3 base score 6.5 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N.

Affected products

Weakness classification (CWE)

Public proof-of-concept exploits

References

Frequently asked questions

What is CVE-2024-21495?
CVE-2024-21495 is a medium-severity vulnerability in Greenpau Caddy-Security, classified under Use of Insufficiently Random Values. CVSS score: 6.5/10. Published 2024-02-17.
How severe is CVE-2024-21495?
Medium severity. CVSS v3 base score is 6.5 out of 10.
Is CVE-2024-21495 known to be exploited?
2 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.