CVE-2025-0185

A vulnerability in the Dify Tools' Vanna module of the langgenius/dify repository allows for a Pandas Query Injection in the latest version. The vulnerability occurs in the function `vn.get_training_plan_generic(df_information_schema)`, which does not properly sanitize user inputs before executing queries using the Pandas library. This can potentially lead to Remote Code Execution (RCE) if exploited.
References
Link Resource
https://huntr.com/bounties/7d9eb9b2-7b86-45ed-89bd-276c1350db7e Exploit Issue Tracking Third Party Advisory
https://huntr.com/bounties/7d9eb9b2-7b86-45ed-89bd-276c1350db7e Exploit Issue Tracking Third Party Advisory
Configurations

Configuration 1 (hide)

cpe:2.3:a:dify:dify:-:*:*:*:*:*:*:*

History

27 Mar 2025, 19:18

Type Values Removed Values Added
References () https://huntr.com/bounties/7d9eb9b2-7b86-45ed-89bd-276c1350db7e - () https://huntr.com/bounties/7d9eb9b2-7b86-45ed-89bd-276c1350db7e - Exploit, Issue Tracking, Third Party Advisory
CPE cpe:2.3:a:dify:dify:-:*:*:*:*:*:*:*
First Time Dify dify
Dify

20 Mar 2025, 15:15

Type Values Removed Values Added
Summary
  • (es) Una vulnerabilidad en el módulo Vanna de Dify Tools del repositorio langgenius/dify permite la inyección de consultas de Pandas en la última versión. La vulnerabilidad se produce en la función `vn.get_training_plan_generic(df_information_schema)`, que no depura correctamente las entradas del usuario antes de ejecutar consultas con la librería de Pandas. Esto podría provocar la ejecución remota de código (RCE) si se explota.
References () https://huntr.com/bounties/7d9eb9b2-7b86-45ed-89bd-276c1350db7e - () https://huntr.com/bounties/7d9eb9b2-7b86-45ed-89bd-276c1350db7e -

20 Mar 2025, 10:15

Type Values Removed Values Added
New CVE

Information

Published : 2025-03-20 10:15

Updated : 2025-03-27 19:18


NVD link : CVE-2025-0185

Mitre link : CVE-2025-0185

CVE.ORG link : CVE-2025-0185


JSON object : View

Products Affected

dify

  • dify
CWE
CWE-94

Improper Control of Generation of Code ('Code Injection')