CVE-2024-21495
Last modified
CVE-2024-21495 is a critical-severity vulnerability rated 9.8/10 on the CVSS scale. 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. EPSS estimates a 0.68% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Greenpau | Caddy-Security | < 1.0.42 |
References
- https://github.com/greenpau/caddy-security/issues/265Issue Tracking
- https://security.snyk.io/vuln/SNYK-GOLANG-GITHUBCOMGREENPAUCADDYSECURITY-6248275Third Party Advisory
- https://github.com/greenpau/caddy-security/issues/265Issue Tracking
- https://security.snyk.io/vuln/SNYK-GOLANG-GITHUBCOMGREENPAUCADDYSECURITY-6248275Third Party Advisory
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2024-21495?
How severe is CVE-2024-21495?
How do I fix CVE-2024-21495?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2024
- CVE-2024-2149A vulnerability classified as critical was found in CodeAstr…7.2
- CVE-2024-21490This affects versions of the package angular from 1.3.0; ver…7.5
- CVE-2024-21491Versions of the package svix before 1.17.0 are vulnerable to…6.5
- CVE-2024-21492All versions of the package github.com/greenpau/caddy-securi…8.1
- CVE-2024-21493All versions of the package github.com/greenpau/caddy-securi…5.3
- CVE-2024-21494All versions of the package github.com/greenpau/caddy-securi…5.4
- CVE-2024-21496All versions of the package github.com/greenpau/caddy-securi…6.1
- CVE-2024-21497Versions of the package github.com/greenpau/caddy-security …6.1
- CVE-2024-21498All versions of the package github.com/greenpau/caddy-securi…5.3
- CVE-2024-21499All versions of the package github.com/greenpau/caddy-securi…4.3
- CVE-2024-2150A vulnerability, which was classified as critical, has been …5.3
- CVE-2024-21500All versions of the package github.com/greenpau/caddy-securi…6.5
Are you affected by CVE-2024-21495?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
