# CVE-2026-25726: Cloudreve is vulnerable to Account Takeover via Weak Cryptographic Token Generation (Insecure PRNG Seeding)

- Severity: High 8.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.43%, higher than 38% of CVEs (2026-12-01)
- Published: 2026-03-31T22:31:54.000Z
- Modified: 2026-07-24T22:10:00.140Z
- Also known as: GHSA-f8xp-wvcx-p6f4, GO-2026-5350
- Weaknesses: CWE-338
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- cloudreve cloudreve: < 4.13.0; before 4.13.0
- github.com/cloudreve/Cloudreve/v4 (Go): before 4.0.0-20260205113604-ec9fdd33bc54
- github.com/cloudreve/Cloudreve (Go): all versions
- github.com/cloudreve/Cloudreve/v3 (Go): all versions

## Every score

- GitHub_M: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/cloudreve/cloudreve/security/advisories/GHSA-f8xp-wvcx-p6f4> (advisory, mitigation, vendor-advisory, web)
- <https://github.com/cloudreve/cloudreve/releases/tag/4.13.0> (product, release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-25726> (advisory)
- <https://github.com/cloudreve/cloudreve> (package)

## Sources

- CVE List: [CVE-2026-25726](https://www.cve.org/CVERecord?id=CVE-2026-25726), CVE Terms of Use, modified 2026-04-04
- GitHub Advisory Database: [GHSA-f8xp-wvcx-p6f4](https://github.com/advisories/GHSA-f8xp-wvcx-p6f4), CC-BY-4.0, modified 2026-06-25
- Go Vulnerability Database: [GO-2026-5350](https://pkg.go.dev/vuln/GO-2026-5350), CC-BY-4.0, modified 2026-06-25
- NVD: [CVE-2026-25726](https://nvd.nist.gov/vuln/detail/CVE-2026-25726), Public domain, modified 2026-07-24

---

Page: https://cve.day/CVE-2026-25726 · Whole record: https://cve.day/CVE-2026-25726.json · Rebuilt by cve.day 2026-11-25T22:59:17.915Z
