Read the docs
TI-2026-20795 Aliases CVE-2026-25726GHSA-f8xp-wvcx-p6f4

Cloudreve is vulnerable to Account Takeover via Weak Cryptographic Token Generation (Insecure PRNG Seeding)

Priority MEDIUM 43CWE-338Published · Updated

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

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00391 33rd percentileScored 2026-11-07
Fix Fixed cloudreve (cloudreve): 4.13.0github.com/cloudreve/Cloudreve/v4 (Go): 4.0.0-20260205113604-ec9fdd33bc54

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

VendorProductAffected versionsFixed inStatusSource
cloudrevecloudrevebefore 4.13.04.13.0Patch availableCNA
—github.com/cloudreve/Cloudreve/v4 (Go)before 4.0.0-20260205113604-ec9fdd33bc544.0.0-20260205113604-ec9fdd33bc54Patch availableGHSA-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

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:cloudreve:cloudreve:*:*:*:*:*:*:*:*before 4.13.0Vulnerablecloudreve
  • cpe:2.3:a:cloudreve:cloudreve:*:*:*:*:*:*:*:* Versions before 4.13.0 Vulnerable ·cloudreve

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

  1. 2026-10-02 Threatist record created from CVE-2026-25726
  2. 2026-10-03 Alias added: GHSA-f8xp-wvcx-p6f4

References

Sources