Vulnerability details
CVE-2025-1796
langgenius langgenius/dify
Admin account takeover through weak Pseudo-Random number generator used in generating password reset codes in langgenius/dify
CVSS 3.0
7.5High
Official description
A vulnerability in langgenius/dify v0.10.1 allows an attacker to take over any account, including administrator accounts, by exploiting a weak pseudo-random number generator (PRNG) used for generating password reset codes. The application uses `random.randint` for this purpose, which is not suitable for cryptographic use and can be cracked. An attacker with access to workflow tools can extract the PRNG output and predict future password reset codes, leading to a complete compromise of the application.
CVSS scores
| Score | Version | Source | Vector |
|---|---|---|---|
| 7.5High | 3.0 | CVEProject cvelistV5 (CNA) (@huntr_ai) | CVSS:3.0/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H |
Affected products
| Vendor | Product | Versions | Source |
|---|---|---|---|
| langgenius | langgenius/dify | v ≤ latest | CVEProject cvelistV5 (CNA) |
References and advisories
1
Kolun on Telegram @kolunsec
Exploited CVEs, key news and a daily digest
Alerts for this product's next CVEsFollow the product to get new vulnerabilities on Telegram.
Details
- Published
- 2025-03-20
- Last updated
- 2025-10-15
- State
- Published
- Assigner (CNA)
- @huntr_ai
Exploit prediction (EPSS)
0.6%
Probability of exploitation in 30 days
49.1%
Percentile (among all CVEs)
SSVC assessment (CISA)
- Automatable
- No
- Exploitation
- Proof of concept
- Technical impact
- Total
Weaknesses (CWE)
- CWE-338Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG)