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

Published Mar 20, 2025
·
Updated

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.

Affected Software

2 affected components
LangGenius Dify
LangGenius Dify Node.js=0.10.1

Event History

Mar 20, 2025
CVE Published
via MITRE·10:08 AM
Data Sourced
via MITRE·10:08 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·10:15 AM
DescriptionSeverityWeaknessAffected Software
Apr 18, 57510
Event
via NVD·10:41 PM
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2025-1796?

CVE-2025-1796 is classified as a critical vulnerability due to its potential for account takeover.

2

How do I fix CVE-2025-1796?

To fix CVE-2025-1796, update langgenius/dify to the latest version where the weak PRNG issue is addressed.

3

Who is affected by CVE-2025-1796?

Any user of langgenius/dify version 0.10.1 is affected by CVE-2025-1796, including administrators.

4

What are the implications of exploiting CVE-2025-1796?

Exploiting CVE-2025-1796 allows an attacker to take over user accounts, potentially leading to unauthorized access to sensitive information.

5

How does CVE-2025-1796 work?

CVE-2025-1796 works by exploiting a weak pseudo-random number generator used to create password reset codes, making them predictable.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203