Cyber Posture

CVE-2025-0185

HighPublic PoCRCE

Published: 20 March 2025

Published
20 March 2025
Modified
27 March 2025
KEV Added
Patch
CVSS Score 8.8 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS Score 0.0302 86.7th percentile
Risk Priority 19 60% EPSS · 20% KEV · 20% CVSS

Summary

CVE-2025-0185 is a high-severity Code Injection (CWE-94) vulnerability in Dify Dify. Its CVSS base score is 8.8 (High).

Operationally, exploitation aligns with the MITRE ATT&CK technique Exploit Public-Facing Application (T1190); ranked in the top 13.3% of CVEs by exploit likelihood; it is not currently listed in the CISA KEV catalog; a public proof-of-concept is referenced.

This vulnerability is AI-related — categorised as Enterprise AI Assistants; in the Data-Related Vulnerabilities risk domain.

The strongest mitigations our analysis identified are NIST 800-53 RA-5 (Vulnerability Monitoring and Scanning) and SI-10 (Information Input Validation).

Threat & Defense at a Glance

What attackers do: exploitation maps to Exploit Public-Facing Application (T1190) and 1 other technique. What defenders deploy: see the NIST 800-53 controls recommended below.
Threat & Defense Details

Mitigating Controls (NIST 800-53 r5)AI

prevent

Directly addresses the Pandas query injection by requiring validation and sanitization of unsanitized user inputs before execution in the Vanna module's get_training_plan_generic function.

prevent

Ensures timely remediation of the specific flaw in the langgenius/dify Vanna module through patching or updates as advised in the Huntr report.

detect

Identifies the presence of CVE-2025-0185 via vulnerability scanning of the affected Dify Tools' Vanna module to enable proactive mitigation.

MITRE ATT&CK Enterprise TechniquesAI

T1190 Exploit Public-Facing Application Initial Access
Adversaries may attempt to exploit a weakness in an Internet-facing host or system to initially access a network.
T1059.006 Python Execution
Adversaries may abuse Python commands and scripts for execution.
Why these techniques?

Pandas Query Injection vulnerability in Dify's Vanna module enables remote code execution via unsanitized inputs, exploiting public-facing applications (T1190) and facilitating arbitrary Python command execution (T1059.006).

NVD Description

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…

more

the Pandas library. This can potentially lead to Remote Code Execution (RCE) if exploited.

Deeper analysisAI

CVE-2025-0185 is a Pandas Query Injection vulnerability in the Dify Tools' Vanna module of the langgenius/dify repository, affecting the latest version. The flaw occurs in the function `vn.get_training_plan_generic(df_information_schema)`, which does not properly sanitize user inputs before executing queries via the Pandas library. Published on 2025-03-20, this issue is classified under CWE-94 (Code Injection) with a CVSS v3.1 base score of 8.8 (AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H), indicating high severity due to potential remote code execution (RCE).

The vulnerability can be exploited by low-privileged remote attackers (PR:L) with network access (AV:N), requiring low attack complexity (AC:L) and no user interaction (UI:N). Exploitation involves injecting malicious queries through unsanitized inputs, enabling attackers to execute arbitrary code on the affected system and achieve high impacts on confidentiality, integrity, and availability (C:H/I:H/A:H).

Advisories and mitigation guidance are detailed in the Huntr bounty report at https://huntr.com/bounties/7d9eb9b2-7b86-45ed-89bd-276c1350db7e.

Details

CWE(s)

Affected Products

dify
dify
all versions

AI Security AnalysisAI

AI Category
Enterprise AI Assistants
Risk Domain
Data-Related Vulnerabilities
OWASP Top 10 for LLMs 2025
None mapped
Classification Reason
Dify (langgenius/dify) is an open-source enterprise platform for developing LLM applications and AI assistants, with the Vanna module enabling AI-powered text-to-SQL functionality; the vulnerability in its training plan generation is AI-related.

CVEs Like This One

CVE-2024-11822Same product: Dify Dify
CVE-2025-54550Shared CWE-94
CVE-2026-39891Shared CWE-94
CVE-2026-31048Shared CWE-94
CVE-2026-25153Shared CWE-94
CVE-2026-7466Shared CWE-94
CVE-2024-10252Shared CWE-94
CVE-2026-25481Shared CWE-94
CVE-2024-57609Shared CWE-94
CVE-2026-26216Shared CWE-94

References