Cloudreve is vulnerable to Account Takeover via Weak Cryptographic Token Generation (Insecure PRNG Seeding)
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| cloudreve | cloudreve | before 4.13.0 | 4.13.0 | Patch available | CNA |
| — | github.com/cloudreve/Cloudreve/v4 (Go) | before 4.0.0-20260205113604-ec9fdd33bc54 | 4.0.0-20260205113604-ec9fdd33bc54 | Patch available | GHSA-f8xp-wvcx-p6f4 |
- cloudreve Vendorcloudreve Affected before 4.13.0 Fixed in 4.13.0 Patch available CNA
- github.com/cloudreve/Cloudreve/v4 (Go) Vendor— Affected before 4.0.0-20260205113604-ec9fdd33bc54 Fixed in 4.0.0-20260205113604-ec9fdd33bc54 Patch available GHSA-f8xp-wvcx-p6f4
Remediation
- Fix · CNA cloudreve (cloudreve) Fixed in 4.13.0
- Fix · GHSA-f8xp-wvcx-p6f4 github.com/cloudreve/Cloudreve/v4 (Go) Fixed in 4.0.0-20260205113604-ec9fdd33bc54 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2026-25726
- 2026-10-03 Alias added: GHSA-f8xp-wvcx-p6f4
References
More Cloudreve vulnerabilities
- TI-2022-13893 Cloudreve - Stored XSS CVSS 3.1MEDIUM 5.4
Sources
- CVE-2026-25726 · CVE Program
- CVE-2026-25726 · NVD
- FIRST EPSS
- GHSA-f8xp-wvcx-p6f4 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences