CVE-2026-25726
CRITICAL 9.8CVSS 3.1Cloudreve is vulnerable to Account Takeover via Weak Cryptographic Token Generation (Insecure PRNG Seeding)
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
- 3 Apr 2026
- Last modified
- 24 Jul 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-338
- Also known as
- GHSA-f8xp-wvcx-p6f4GO-2026-5350
- Sources
- NVDJSONOSV GHSA-f8xp-wvcx-p6f4JSONOSV GO-2026-5350JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 8.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 8.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | cloudreve | cloudrevecpe:2.3:a:cloudreve:cloudreve:*:*:*:*:*:*:*:* |
< 4.13.0 | 4.13.0 |
| OSV | Go | github.com/cloudreve/Cloudreve/v4 | < 4.0.0-20260205113604-ec9fdd33bc54 | 4.0.0-20260205113604-ec9fdd33bc54 |
| OSV | Go | github.com/cloudreve/Cloudreve | all versions | |
| OSV | Go | github.com/cloudreve/Cloudreve/v3 | all versions |
References
- https://github.com/cloudreve/cloudreve/releases/tag/4.13.0 · Product, Release Notes, WEB
- https://github.com/cloudreve/cloudreve/security/advisories/GHSA-f8xp-wvcx-p6f4 · Mitigation, Vendor Advisory, WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2026-25726 · ADVISORY
- https://github.com/cloudreve/cloudreve · PACKAGE
History
- 25 Nov 2026 21:02 UTC · NVD: first stored (published 3 Apr 2026)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 25 Jun 2026)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 31 Mar 2026)