Skip to main content

Seahub EUVDEUVD-2026-120525

| CVE-2026-125362 LOW
Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG) (CWE-338)
2026-11-10 disclosure@vulncheck.com GHSA-6jc7-hvrq-rjqm
2.3
CVSS 4.0 · Vendor: vulncheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate as share-link-capable user
  2. Delivery
    Batch-request many auto-generated passwords
  3. Exploit
    Reconstruct Mersenne Twister state
  4. Execution
    Predict other users' share-link passwords
  5. Impact
    Access protected shared content

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A04:2025 - Cryptographic Failures
ASVS 5.0
V11 - Cryptography Cryptographic PRNG selection
Exploitation Conditions

Exploitation requires an authenticated Seahub account (PR:L) whose user is permitted to create share links, and the auto_generate_password path of the multi-share-links batch endpoint (MultiShareLinksBatch.post()) must be exercised to emit passwords from the shared process-wide random module. The attacker must request a large number of generated passwords to reconstruct the Mersenne Twister state, which is why attack complexity is High (AC:H) and an attack requirement applies (AT:P). Limiting factors: only authenticated, share-link-capable users can reach the endpoint; the impact is confined to predicting other users' share-link passwords (VC:L, no integrity or availability impact); and predicted passwords are only useful to an attacker who can also reach the corresponding share links. Affects Seahub through 14.0.10; fixed by commit dd3ba0341031fd29cabe4855b548badde861df52, which switches to the cryptographically secure get_random_string().

Impact

This is a genuinely low-priority issue, and the multiple signals agree. The vendor-assigned CVSS 4.0 score is 2.3 (Low), driven by AV:N but offset by AC:H (reconstructing the Mersenne Twister state requires collecting many observed outputs), AT:P (a specific attack requirement/precondition applies), PR:L (the attacker must be an authenticated user permitted to create share links), and only VC:L impact (no integrity or availability impact). No EPSS score is provided in the input, there is no CISA KEV listing (confirmed actively exploited status is absent), and no working exploit code is referenced. The vuln.today Decision label is 'monitor', which is consistent with the low severity and the absence of exploitation signals. The practical risk is bounded: even a successful attacker only recovers share-link passwords, and a share link typically still requires knowledge of the link token/URL to be useful, so the real-world confidentiality impact is marginal. Note one nuance: the CVSS vector is CVSS 4.0 only - no CVSS 3.1 vector was supplied - and no EPSS value accompanies it, so the probabilistic exploitation signal is missing rather than low.

Exploit ScenarioDerived

An authenticated Seahub user who is allowed to create share links repeatedly calls the multi-share-links batch endpoint to harvest many auto-generated 8-character passwords produced by Python's non-cryptographic random.choices(). From enough observed outputs they reconstruct the process-wide Mersenne Twister state and then predict passwords generated for other users' share links. No public exploit code is identified in the provided data, and the high attack complexity (AC:H) reflects the volume of observations needed.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
No patch listed yet 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 10, 2026

Seahub through 14.0.10 generates auto-created share-link passwords with Python's non-cryptographic random.choices() from the process-wide Mersenne Twister instance, so an authenticated user allowed to create share links can drive the multi-share-links batch endpoint (MultiShareLinksBatch.post()) to emit many generated passwords and reconstruct the RNG state to predict passwords subsequently issued to other users. The exposure is limited to confidentiality of share-link passwords (CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N), exploitation is restricted to authenticated, share-link-capable accounts and requires a large volume of generated outputs, and predicted passwords are only useful to someone who can also reach the corresponding share links. No public exploit code or active exploitation was identified at time of analysis; the vendor addressed the flaw in commit dd3ba0341031fd29cabe4855b548badde861df52 by switching to django.utils.crypto.get_random_string().

RemediationAI

Apply the upstream fix commit dd3ba0341031fd29cabe4855b548badde861df52, which replaces the random.choices()-based password generator with django.utils.crypto.get_random_string(); no tagged patched release version is confirmed in the available data, so confirm with the vendor advisory (https://www.vulncheck.com/advisories/seahub-through-14.0.10-predictable-share-link-passwords-via-batch-endpoint) and the tracking issue (https://github.com/haiwen/seahub/issues/9687) before assuming a given release contains it. Because the flaw leaks password values generated while the vulnerable process is running, plan to rotate or regenerate share-link passwords created before the fix is deployed. If the commit cannot be applied promptly, the actionable compensating controls are to restrict who may create share links (removing share-link creation permission from untrusted or low-trust accounts, which shrinks the pool of accounts able to observe generator output) and to rate-limit or block access to the multi-share-links batch endpoint at the reverse proxy, accepting that both measures degrade functionality for legitimate bulk share-link workflows rather than eliminating the weakness.

Affected VersionsENISA

seahub 0 ≤14.0.10

Affected Packages

euvd seahub no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The root cause is use of a non-cryptographic pseudo-random generator for a security-sensitive value (CWE-338, Use of Cryptographically Weak Pseudo-Random Number Generator). In the affected code path, an inner generate_password() helper imported Python's random module and built an 8-character password with random.choices() over string.ascii_letters + string.digits + string.punctuation. Python's random module is backed by a Mersenne Twister whose state is process-wide and shared across all callers; as the upstream commit message states, that state can be reconstructed from enough observed output, which makes passwords generated later in the same process predictable. The batch endpoint is what makes observation practical: MultiShareLinksBatch.post() issues multiple auto-generated passwords in a single request, giving an authenticated share-link creator a high-volume oracle into the shared generator. The fix replaces the local helper with a module-level generate_share_link_password() built on django.utils.crypto.get_random_string(8, characters) and adds regression tests asserting that output is not reproducible from a known random seed and that passwords retain the expected 8-character shape and alphabet. The vulnerable surface is the Seahub web frontend of the Seafile server; the underlying storage, sync protocol and Seafile daemon components are not implicated by the available evidence.

Know when Python gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (vulncheck) PRIMARY 2.3 LOW
CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N
vuln.today AI 3.1 LOW

Authenticated share-link creator (PR:L), network-reachable endpoint (AV:N), many observations needed to recover PRNG state (AC:H), and only predictable passwords disclosed (C:L, I/A:N).

3.1 AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N
4.0 AV:N/AC:H/AT:P/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (vulncheck).

CVSS VectorVendor: vulncheck

Attack Vector
Network
Attack Complexity
High
Attack Requirements
Present
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

Seahub through 14.0.10 contains a weak randomness vulnerability in MultiShareLinksBatch.post() that generates batch share link passwords using Python's non-cryptographic random.choices(). Authenticated users permitted to create share links can request many generated passwords via the multi-share-links batch endpoint, recover the Mersenne Twister state, and predict other users' share link passwords.

Threat Intelligence Overview

EPSS Score
0.3%
Top 82% exploitable
Prevalence
Medium
Seafile/Seahub is a popular self-hosted file-sync platform, common but not universal
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity LOW
CISA KEV No
Public POC No
EPSS 0.3%
Patch available No
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Low

Priority Score

12
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +12
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

More in Python

View all
CVE-2025-24016 CRITICAL POC
9.9 Feb 10

Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t

CVE-2025-27520 CRITICAL POC
9.8 Apr 04

BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser

CVE-2025-2945 CRITICAL POC
9.9 Apr 03

pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi

CVE-2013-5093 MEDIUM POC
6.8 Sep 27

The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python

CVE-2025-32375 CRITICAL POC
9.8 Apr 09

BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica

CVE-2014-0224 HIGH POC
7.4 Jun 05

OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph

CVE-2024-21644 HIGH POC
7.5 Jan 08

pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.

CVE-2026-33017 CRITICAL POC
9.3 Mar 17

Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301

CVE-2017-9462 HIGH POC
8.8 Jun 06

In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse

CVE-2026-49869 CRITICAL POC
10.0 Jun 26

Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to

CVE-2026-39987 CRITICAL POC
9.3 Apr 08

Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/

CVE-2024-21645 MEDIUM POC
5.3 Jan 08

pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy