# CVE-2025-1796: Admin account takeover through weak Pseudo-Random number generator used in generating password reset codes in langgenius/dify

- Severity: High 7.5 (CVSS:3.0, scored by @huntr_ai) `CVSS:3.0/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.61%, higher than 50% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-03-20T10:08:46.897Z
- Modified: 2026-06-17T08:39:47.493Z
- Weaknesses: CWE-338
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: @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.

(As written by CVE List.)

## Affected

- langgenius langgenius/dify: from unspecified up to latest
- langgenius dify: 0.10.1

## Every score

- @huntr_ai: CVSS:3.0 7.5 High `CVSS:3.0/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://huntr.com/bounties/a60f3039-5394-4e22-8de7-a7da9c6a6e00> (exploit, third-party-advisory)

## Sources

- CVE List: [CVE-2025-1796](https://www.cve.org/CVERecord?id=CVE-2025-1796), CVE Terms of Use, modified 2025-10-15
- NVD: [CVE-2025-1796](https://nvd.nist.gov/vuln/detail/CVE-2025-1796), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-1796 · Whole record: https://cve.day/CVE-2025-1796.json · Rebuilt by cve.day 2026-11-25T22:58:55.382Z
