CVE-2025-1796
published high CVSS 3.0 · 7.5Admin account takeover through weak Pseudo-Random number generator used in generating password reset codes in langgenius/dify
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| langgenius | — | langgenius/difyunspecified through latest | Affected | Not stated | @huntr_ai |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.0
- Base score
- 7.5 / 10
- Severity
- high
- Provider
- @huntr_ai · cna
- Vector string
- CVSS:3.0/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| langgenius | langgenius/dify | unspecified through latest (affected · custom) | @huntr_ai · cna |
Weaknesses
1- CWE-338 CWE-338 Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG)
References
1Provider assertions
2@huntr_ai · cna
Admin account takeover through weak Pseudo-Random number generator used in generating password reset codes in langgenius/dify
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- cc2a754b793c8f4f99b56c4c0192ba6ac899afb4c7f9be35e2cd5fb9e1deb3d9
- Ingested
- 23 Sep 2026, 08:38:52 UTC
- Source record
- Official CVE record