Live threats

All CVEs / Greenpau

CVE-2024-21495Greenpau Caddy-security

Critical 9.8 No auth needed

Priority
74
CVSS 3.1
9.8
EPSS
1.0%
probability of exploitation in 30 days · percentile 61
Auth required
No
Published
Feb 17, 2024
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-330
SSVC (CISA)
Exploitation: proof of concept · Automatable: yes · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Caddy-security.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Go github.com/greenpau/caddy-security ≤ 1.0.42 no fixed version —
Go github.com/greenpau/caddy-security all no fixed version —

Per OSV / GitHub Advisories (GHSA-c7vf-m394-m4x4, GO-2024-2565). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
greenpaucaddy-security< 1.0.42

Official sources

References

Links published by the sources. Open them with care.