CVE-2024-21495
CVE-2024-21495 is a medium-severity vulnerability in Greenpau Caddy-security with a CVSS 3.x base score of 6.5. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-330.
Key facts
- Severity: Medium (CVSS 3.x base score 6.5)
- EPSS exploit prediction: 1% (48th percentile)
- Actively exploited: Not listed in CISA KEV
- EU (EUVD) id: EUVD-2024-0610
- Weakness: CWE-330
- Affected product: Greenpau Caddy-security
- Published:
- Last modified:
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.
Frequently asked questions
- What is 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.
- How severe is CVE-2024-21495?
- CVE-2024-21495 has a CVSS 3.x base score of 6.5, rated medium severity. It is exploitable over network with low attack complexity, requires no privileges and no user interaction. Impact on confidentiality is low, integrity low, and availability none.
- Is CVE-2024-21495 being actively exploited?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 1% (48th percentile), an estimate of the probability of exploitation in the next 30 days.
- What products are affected by CVE-2024-21495?
- CVE-2024-21495 affects Greenpau Caddy-security. See the affected-products list for the exact vulnerable versions.
- How do I fix CVE-2024-21495?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround.
- Does CVE-2024-21495 have an EU (EUVD) identifier?
- Yes. CVE-2024-21495 is tracked in the ENISA EU Vulnerability Database (EUVD) as EUVD-2024-0610.
- When was CVE-2024-21495 published?
- CVE-2024-21495 was published on 2024-02-17 and last updated on 2026-06-17.
References
- https://blog.trailofbits.com/2023/09/18/security-flaws-in-an-sso-plugin-for-caddy/
- https://github.com/greenpau/caddy-security/issues/265
- https://github.com/greenpau/go-authcrunch/commit/ecd3725baf2683eb1519bb3c81ae41085fbf7dc2
- https://security.snyk.io/vuln/SNYK-GOLANG-GITHUBCOMGREENPAUCADDYSECURITY-6248275
Affected products (1)
- cpe:2.3:a:greenpau:caddy-security:*:*:*:*:*:*:*:*
More vulnerabilities in Greenpau Caddy-security
- CVE-2024-21497 — Medium (CVSS 5.4): Versions of the package github.com/greenpau/caddy-security are vulnerable to Open Redirect via the redirect_url…
- CVE-2024-21494 — Medium (CVSS 5.4): All versions of the package github.com/greenpau/caddy-security are vulnerable to Authentication Bypass by Spoofing via…
- CVE-2024-21493 — Medium (CVSS 5.3): All versions of the package github.com/greenpau/caddy-security are vulnerable to Improper Validation of Array Index…
- CVE-2024-21499 — Medium (CVSS 4.3): All versions of the package github.com/greenpau/caddy-security are vulnerable to HTTP Header Injection via the…
All CVEs affecting Greenpau Caddy-security →
Other CWE-330 (Use of Insufficiently Random Values) vulnerabilities
- CVE-2023-22601 — Critical (CVSS 10.0): InHand Networks InRouter 302, prior to version IR302 V3.5.56, and InRouter 615, prior to version…
- CVE-2026-25072 — Critical (CVSS 9.8): XikeStor SKS8310-8X Network Switch firmware versions 1.04.B07 and prior contain a predictable session identifier…
- CVE-2026-27755 — Critical (CVSS 9.8): SODOLA SL902-SWTGW124AS firmware versions through 200.1.20 contain a weak session identifier generation vulnerability…
- CVE-2026-27637 — Critical (CVSS 9.8): FreeScout is a free help desk and shared inbox built with PHP's Laravel framework. Prior to version 1.8.206,…
- CVE-2025-64097 — Critical (CVSS 9.8): NervesHub is a web service that allows users to manage over-the-air (OTA) firmware updates of devices in the field. A…
- CVE-2025-4607 — Critical (CVSS 9.8): The PSW Front-end Login & Registration plugin for WordPress is vulnerable to Privilege Escalation in all versions up…
Browse all CWE-330 (Use of Insufficiently Random Values) vulnerabilities →