CVE-2025-1796CWE-338

Admin account takeover through weak Pseudo-Random number generator used in generating password reset codes in langgenius/dify

High · published March 20, 2025

CVSS v3.0
7.5
EPSS
1%
Percentile
48.4
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.0
7.5 · HIGH
Vector
CVSS:3.0/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00606 · 48.4th percentile
Weakness
CWE-338 · Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG)
Published
2025-03-20T10:08Z
EPSS history
Timeline
  • 20 MAR 10:08Z
    Admin account takeover through weak Pseudo-Random number generator used in generating password reset codes in langgenius/dify
    cvelistv5