Dify Tools Vanna Module Pandas Query Injection Vulnerability Allowing Remote Code Execution

Vulnerability

A Pandas query injection vulnerability has been identified in the Vanna module of the langgenius/dify repository, specifically in the latest version. The issue arises in the function 'vn.get_training_plan_generic(df_information_schema)', where user inputs are not adequately sanitized before being used in queries with the Pandas library. This lack of proper input validation could potentially be exploited to achieve remote code execution.

Impact

Exploitation of this vulnerability could lead to remote code execution on the server where the application is running.

Added: Jun 9, 2025, 7:46 PM
Updated: Jun 9, 2025, 7:46 PM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
10.0
exploitability
4.6
remediation
0.0
relevance
0.0
threat
6.5
urgency
2.9
incentive
1.7

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.