Intel

AIKIDO-2025-10379

promptflow-tools is vulnerable to Remote Code Execution (RCE)

Remote Code Execution (RCE) Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Jun 17, 2025

75

High Risk

This Affects:

Pythonpromptflow-tools
1.0.0 - 1.6.0
Fixed in 1.6.1
Are you affected? Scan for Free

TL;DR

Affected versions of this package are vulnerable to remote code execution (RCE) and prompt injection via chat history manipulation due to unsafe use of eval() and improper input sanitization. An attacker could exploit this by crafting a malicious tool call to execute arbitrary Python code through eval or injecting fake chat history entries to manipulate AI behavior. The fix replaces eval with ast.literal_eval and validates chat history entries to prevent unauthorized modifications.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

promptflow-tools is vulnerable to Remote Code Execution (RCE) in versions 1.0.0 - 1.6.0.

How to fix this

Upgrade the promptflow-tools library to the patch version.