Vulnerability in Cloudreve
CVE-2026-25726
- CVSS v3
- 8.1 High
- Public exploits
- None known
- EPSS
- 0.004 · 33.8th percentile
- Published
- 2026-04-03
What to do
- Fixed in
4.13.0- Affected
- 1 affected product
Cloudreve is a self-hosted file management and sharing system. Prior to version 4.13.0, the application uses the weak pseudo-random number generator math/rand seeded with time.Now().UnixNano() to generate critical security secrets, including the secret_key, and hash_id_salt. These secrets are generated upon first startup and persisted in the database. An attacker can exploit this by obtaining the administrator's account creation time (via public API endpoints) to narrow the search window for the PRNG seed, and use known hashid to validate the seed. By brute-forcing the seed (demonstrated to take <3 hours on general consumer PC), an attacker can predict the secret_key. This allows them to forge valid JSON Web Tokens (JWTs) for any user, including administrators, leading to full account takeover and privilege escalation. This issue has been patched in version 4.13.0.
Published · last modified .
CVSS v3 metric
CVSS v3 base score 8.1 (High). Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H.
- Attack Vector
- Network
AV:N - Attack Complexity
- High
AC:H - Privileges Required
- None
PR:N - User Interaction
- None
UI:N - Scope
- Unchanged
S:U - Confidentiality
- High
C:H - Integrity
- High
I:H - Availability
- High
A:H
EPSS exploit prediction
EPSS 0.004, 33.8th percentile (last changed ); unchanged over 30 days. About EPSS.
Affected products
- Cloudreve — versions < 4.13.0
Weakness classification (CWE)
References
- https://github.com/cloudreve/cloudreve/security/advisories/GHSA-f8xp-wvcx-p6f4 (Mitigation, Vendor Advisory)
- https://github.com/cloudreve/cloudreve/releases/tag/4.13.0 (Product, Release Notes)