SCA: security update for github.com/cloudreve/Cloudreve/v4 (GHSA-f8xp-wvcx-p6f4)

critical Tenable Cloud Security Plugin ID 439565

Description

There are packages installed that are affected by a vulnerability referenced in the following CVE:

- 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. (CVE-2026-25726)

Solution

Update the github.com/cloudreve/Cloudreve/v4 library and its related packages to version 4.0.0-20260205113604-ec9fdd33bc54 or later.

See Also

https://github.com/advisories/GHSA-f8xp-wvcx-p6f4

Plugin Details

Severity: Critical

ID: 439565

Version: Revision 1.7

Type: Local

Family: SCA Checks

Published: 4/1/2026

Updated: 7/2/2026

Supported Sensors: Tenable Cloud Security, Tenable Self-Hosted Container Security

Risk Information

VPR

Risk Factor: Medium

Score: 6.9

Percentile: 96.95

Vendor

Vendor Severity: High

CVSS v2

Risk Factor: Critical

Base Score: 10

Temporal Score: 7.4

Vector: CVSS2#AV:N/AC:L/Au:N/C:C/I:C/A:C

CVSS Score Source: CVE-2026-25726

CVSS v3

Risk Factor: Critical

Base Score: 9.8

Temporal Score: 8.5

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Temporal Vector: CVSS:3.0/E:U/RL:O/RC:C

Vulnerability Information

Exploit Ease: No known exploits are available

Patch Publication Date: 3/31/2026

Vulnerability Publication Date: 3/31/2026

Reference Information

CVE: CVE-2026-25726

cwe: CWE-338