CVE-2026-25726
Cloudreve is vulnerable to Account Takeover via Weak Cryptographic Token Generation (Insecure PRNG Seeding)
Also known as GHSA-f8xp-wvcx-p6f4, GO-2026-5350
Mitigation
- Upgrade github.com/cloudreve/Cloudreve/v4 to 4.0.0-20260205113604-ec9fdd33bc54 or later.
Who should check
- Projects that depend on Go package github.com/cloudreve/Cloudreve/v4 (< 4.0.0-20260205113604-ec9fdd33bc54)
- Projects that depend on Go package github.com/cloudreve/Cloudreve
- Projects that depend on Go package github.com/cloudreve/Cloudreve/v3
- Anyone running cloudreve < 4.13.0
Vulnerability facts
- Affected
- github.com/cloudreve/Cloudreve/v4 < 4.0.0-20260205113604-ec9fdd33bc54; github.com/cloudreve/Cloudreve; github.com/cloudreve/Cloudreve/v3
- Fixed in
- 4.0.0-20260205113604-ec9fdd33bc54
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 8.1 (v3.1, CNA)CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: High
- Privileges required: None
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: High
- Integrity impact: High
- Availability impact: High
- EPSS
- 0.53% chance of exploitation in 30 days (percentile 38, 2026-11-26)
- CWE
- CWE-338
- Modified
Description
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Go github.com/cloudreve/Cloudreve/v4 | < 4.0.0-20260205113604-ec9fdd33bc54 | 4.0.0-20260205113604-ec9fdd33bc54 | osv |
| Go github.com/cloudreve/Cloudreve | — | — | osv |
| Go github.com/cloudreve/Cloudreve/v3 | — | — | osv |
| cloudreve | < 4.13.0 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-25726. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-25726.md Affected: github.com/cloudreve/Cloudreve/v4 < 4.0.0-20260205113604-ec9fdd33bc54; github.com/cloudreve/Cloudreve; github.com/cloudreve/Cloudreve/v3 Fixed in: 4.0.0-20260205113604-ec9fdd33bc54 Steps: 1. Search this machine and project for github.com/cloudreve/Cloudreve/v4 (Go), github.com/cloudreve/Cloudreve (Go), github.com/cloudreve/Cloudreve/v3 (Go), cloudreve: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
FAQ
Is CVE-2026-25726 being exploited?
There is no confirmed exploitation: CVE-2026-25726 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.53% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2026-25726?
High: CVSS 8.1 (v3.1, scored by CNA). Remote, no login needed. The attack needs conditions outside the attacker's control, which makes it harder.
Which versions are affected by CVE-2026-25726?
github.com/cloudreve/Cloudreve/v4 < 4.0.0-20260205113604-ec9fdd33bc54; github.com/cloudreve/Cloudreve; github.com/cloudreve/Cloudreve/v3.
Is there a fix for CVE-2026-25726?
Yes. Fixed in 4.0.0-20260205113604-ec9fdd33bc54. Upgrade github.com/cloudreve/Cloudreve/v4 to 4.0.0-20260205113604-ec9fdd33bc54 or later.
How do I check if I'm affected by CVE-2026-25726?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.