{"cve":"CVE-2026-25726","nvd":{"published":"2026-04-03T20:16:02.263","modified":"2026-07-24T22:10:00.140","status":"Analyzed","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8},"cwes":["CWE-338"],"references":["https://github.com/cloudreve/cloudreve/releases/tag/4.13.0","https://github.com/cloudreve/cloudreve/security/advisories/GHSA-f8xp-wvcx-p6f4"],"products":["cloudreve:cloudreve"],"source":"nvd","synced_at":"2026-10-19T22:28:59.047572785+00:00"},"epss":{"cve":"CVE-2026-25726","score":0.00391,"percentile":0.33231,"date":"2026-11-01"},"kev":null,"osv":[{"id":"GHSA-f8xp-wvcx-p6f4","url":"https://osv.dev/vulnerability/GHSA-f8xp-wvcx-p6f4","summary":"Cloudreve is vulnerable to Account Takeover via Weak Cryptographic Token Generation (Insecure PRNG Seeding)","modified":"2026-06-25T19:56:09.241472515Z","packages":[{"ecosystem":"Go","name":"github.com/cloudreve/Cloudreve/v4","purl":"pkg:golang/github.com/cloudreve/Cloudreve/v4","ranges":["<4.0.0-20260205113604-ec9fdd33bc54"],"fixed":["4.0.0-20260205113604-ec9fdd33bc54"]}]},{"id":"GO-2026-5350","url":"https://osv.dev/vulnerability/GO-2026-5350","summary":"Cloudreve is vulnerable to Account Takeover via Weak Cryptographic Token Generation (Insecure PRNG Seeding) in github.com/cloudreve/Cloudreve","modified":"2026-06-25T19:45:34.701052836Z","packages":[{"ecosystem":"Go","name":"github.com/cloudreve/Cloudreve","purl":"pkg:golang/github.com/cloudreve/Cloudreve","ranges":["all versions"],"fixed":[]},{"ecosystem":"Go","name":"github.com/cloudreve/Cloudreve/v3","purl":"pkg:golang/github.com/cloudreve/Cloudreve/v3","ranges":["all versions"],"fixed":[]},{"ecosystem":"Go","name":"github.com/cloudreve/Cloudreve/v4","purl":"pkg:golang/github.com/cloudreve/Cloudreve/v4","ranges":["<4.0.0-20260205113604-ec9fdd33bc54"],"fixed":["4.0.0-20260205113604-ec9fdd33bc54"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}