{"answers":{"affected":"5 open source packages ship an affected version, including github.com/cloudreve/Cloudreve/v4, github.com/cloudreve/Cloudreve and github.com/cloudreve/Cloudreve/v3. It affects 1 product.","exploited":"There is no known exploitation of CVE-2026-25726 in the wild and no public exploit code.","fix":"Upgrade github.com/cloudreve/Cloudreve/v4 to 4.0.0-20260205113604-ec9fdd33bc54 or later.","what":"CVE-2026-25726 is a high-severity vulnerability in cloudreve, published on 3 Apr 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-25726 and fix it if it is affected.\n\nWhat it is: CVE-2026-25726 is a high-severity vulnerability in cloudreve, published on 3 Apr 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2026-25726 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/cloudreve/Cloudreve/v4 (Go): affected all versions; fixed in 4.0.0-20260205113604-ec9fdd33bc54\n- github.com/cloudreve/Cloudreve/v4 (Go): affected all versions; fixed in 4.0.0-20260205113604-ec9fdd33bc54\n- github.com/cloudreve/Cloudreve/v4 (Go): affected all versions; fixed in 4.0.0-20260205113604-ec9fdd33bc54\n- github.com/cloudreve/Cloudreve (Go): affected all versions; no fix listed\n- github.com/cloudreve/Cloudreve/v3 (Go): affected all versions; no fix listed\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-25726/ (Markdown: https://insights.sbomify.com/CVE-2026-25726/index.md)","id":"CVE-2026-25726","markdown":"https://insights.sbomify.com/CVE-2026-25726/index.md","name":"CVE-2026-25726","record":{"aliases":["GHSA-f8xp-wvcx-p6f4","GO-2026-5350"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["account_takeover","privilege_escalation"],"network_reachable":"yes","non_default_config":false,"product_category":"Cloudreve file manager","requires_auth":"none","summary":"Attackers can predict weakly generated secrets to forge JWTs, enabling full account takeover and privilege escalation in Cloudreve.","user_interaction":"not_required","vuln_class":"weak_cryptography"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"cloudreve","vendor":"cloudreve"}],"cvss":{"score":8.1,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-338","name":"Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG)"}],"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 \u003c3 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.","ecosystems":["Go"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Cloudreve is vulnerable to Account Takeover via Weak Cryptographic Token Generation (Insecure PRNG Seeding)","id":"CVE-2026-25726","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"weak_cryptography","year":"2026"},"n_packages":5,"n_references":2,"next":{"headline":"time affected by a stack exhaustion denial of service attack","id":"CVE-2026-25727"},"packages":[{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":[],"package":"github.com/cloudreve/Cloudreve","purl":"pkg:golang/github.com/cloudreve/Cloudreve","source":"GO-2026-5350"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":[],"package":"github.com/cloudreve/Cloudreve/v3","purl":"pkg:golang/github.com/cloudreve/Cloudreve/v3","source":"GO-2026-5350"},{"ecosystem":"Go","fixed":["4.0.0-20260205113604-ec9fdd33bc54"],"introduced":["0"],"last_affected":[],"package":"github.com/cloudreve/Cloudreve/v4","purl":null,"source":"GHSA-f8xp-wvcx-p6f4"},{"ecosystem":"Go","fixed":["4.0.0-20260205113604-ec9fdd33bc54"],"introduced":["0"],"last_affected":[],"package":"github.com/cloudreve/Cloudreve/v4","purl":"pkg:golang/github.com/cloudreve/Cloudreve/v4","source":"GHSA-f8xp-wvcx-p6f4"},{"ecosystem":"Go","fixed":["4.0.0-20260205113604-ec9fdd33bc54"],"introduced":["0"],"last_affected":[],"package":"github.com/cloudreve/Cloudreve/v4","purl":"pkg:golang/github.com/cloudreve/Cloudreve/v4","source":"GO-2026-5350"}],"prev":{"headline":"Claude Code Has Sandbox Escape via Persistent Configuration Injection in settings.json","id":"CVE-2026-25725"},"products":["cloudreve"],"published":"2026-04-03","related":[{"cvss_score":5.4,"headline":"Cloudreve - Stored XSS","id":"CVE-2022-32167","kev_date_added":null,"published":"2022-09-20"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-04-04","vendors":["cloudreve"]},"summary":"Attackers can predict weakly generated secrets to forge JWTs, enabling full account takeover and privilege escalation in Cloudreve.","url":"https://insights.sbomify.com/CVE-2026-25726/"}