Vulnerability in Langgenius Dify
CVE-2025-1796
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.
Published · last modified .
CVSS v3 metric
CVSS v3 base score 8.8 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS: 0.006 (48.3th percentile), scored .
Very low probability of exploitation in the next 30 days; routine patching cadence is appropriate. 48th percentile — 48.3% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.006 · newest: 0.006 · change: +0.000
Affected products
- Langgenius Dify — versions 0.10.1
- Langgenius Langgenius/dify — versions unspecified
Weakness classification (CWE)
Public proof-of-concept exploits
References
- huntr.com/bounties/a60f3039-5394-4e22-8de7-a7da9c6a6e00 (Exploit, Third Party Advisory)
Frequently asked questions
- What is CVE-2025-1796?
- CVE-2025-1796 is a high-severity vulnerability in Langgenius Dify, classified under Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG). CVSS score: 8.8/10. Published 2025-03-20.
- How severe is CVE-2025-1796?
- High severity. CVSS v3 base score is 8.8 out of 10.
- Is CVE-2025-1796 known to be exploited?
- 1 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.