CVE-2024-21495 json
Use of Insufficiently Random Values in github.com/greenpau/caddy-security
published 2024-02-17 2 y ago modified 2026-06-17 4 mo ago also EUVD-2024-0610 , GHSA-c7vf-m394-m4x4 , GO-2024-2565
- cvss
- 6.5
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.7%
- EPSS 0.7% chance of exploitation in 30 days, percentile 52%
- public exploits
- 0
- none known
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.
Patch / fix
- n/a github.com/greenpau/caddy-security 1.0.42
- authcrunch caddy_security 1.0.42
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- yes
- Technical impact
- partial
- Assessed
- 2 y ago
Exploit prediction
0.68% chance of exploitation in the next 30 days, higher than 52% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N/E:P |
| GitHub | 3.1 | 6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N |
| CNA | 3.1 | 6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N |
| NVD | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| go | github.com/greenpau/caddy-security | <=1.0.42 all versions |
no fix listed |
Affected products
- n/a github.com/greenpau/caddy-security
- authcrunch caddy_security
Classification
- Weakness
-
- CWE-330 Use of Insufficiently Random Values
References
-
github.com
/greenpau/go-authcrunch/commit/ecd3725baf2683eb1519bb3c81ae41085fbf7dc2
web, patch
-
security.snyk.io
/vuln/SNYK-GOLANG-GITHUBCOMGREENPAUCADDYSECURITY-6248275
web, third-party-advisory
-
blog.trailofbits.com
/2023/09/18/security-flaws-in-an-sso-plugin-for-caddy/
third-party-advisory
-
github.com
/greenpau/caddy-security/issues/265
web, issue-tracking, report
-
nvd.nist.gov
/vuln/detail/CVE-2024-21495
advisory
-
blog.trailofbits.com
/2023/09/18/security-flaws-in-an-sso-plugin-for-caddy
web
-
github.com
/advisories/GHSA-c7vf-m394-m4x4
advisory
Sources
- CVE List CVE-2024-21495
- GitHub Advisory GHSA-c7vf-m394-m4x4
- NVD CVE-2024-21495
- OSV GO-2024-2565
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.