Vulnerabilities in pkg:pypi/promptflow-tools
PACKAGECVE-2025-24986 is a MODERATE (CVSS 6.5) remote code execution vulnerability (CWE-653: Improper Isolation or Compartmentalization) affecting Promptflow tools libraries in the PyPI ecosystem. The issue involves azure promptflow remote code execution related to jinja templates. Remediation is available by upgrading affected packages to version 1.6.0, 1.17.2.
pkg:pypi/promptflow-tools
Vulnerability advisories affecting package pkg:pypi/promptflow-tools. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-gprr-v9f2-px3c | CVE-2025-24986 | MODERATE | Azure PromptFlow remote code execution related to Jinja templates |
CVE-2025-24986 at a Glance
Security Impact
CVSS: 6.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N).
How to Fix CVE-2025-24986
To remediate this vulnerability, upgrade all affected Promptflow tools dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install promptflow-tools>=1.6.0
pip install promptflow-core>=1.17.2
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show promptflow-tools
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2025-24986, inspect your installed packages using pip:
pip show promptflow-tools
Analyze the terminal output to locate any version of Promptflow tools in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.6.0), your application is affected.
Note: The pip show promptflow-tools command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-653: Improper Isolation or Compartmentalization, where the product does not properly compartmentalize or isolate functionality, processes, or resources that require different privilege levels, rights, or permissions. In Promptflow tools, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2025-24986 Affected Promptflow tools Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
promptflow-tools
|
PyPI |
< 1.6.0
|
1.6.0
|
|
promptflow-core
|
PyPI |
< 1.17.2
|
1.17.2
|
References
Frequently Asked Questions
What is CVE-2025-24986?
Which Promptflow tools versions are affected?
What version fixes CVE-2025-24986?
Is promptflow-tools affected?
Is promptflow-core affected?
What is the CVSS score of CVE-2025-24986?
What CWE is associated with CVE-2025-24986?
How can I check PyPI dependencies for CVE-2025-24986?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-gprr-v9f2-px3c",
"modified" : "2025-03-11T20:19:56Z",
"published" : "2025-03-11T18:32:18Z",
"aliases" : [ "CVE-2025-24986" ],
"summary" : "Azure PromptFlow remote code execution related to Jinja templates",
"details" : "Improper isolation or compartmentalization in Azure PromptFlow allows an unauthorized attacker to execute code over a network.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "promptflow-tools"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.6.0"
} ]
} ]
}, {
"package" : {
"ecosystem" : "PyPI",
"name" : "promptflow-core"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.17.2"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-24986"
}, {
"type" : "WEB",
"url" : "https://github.com/microsoft/promptflow/commit/5f4a41ab4cb15607ade7f26138b0b863b4e4eb0a"
}, {
"type" : "WEB",
"url" : "https://github.com/microsoft/promptflow/commit/625061724c51533d28fe6e0e3014b1042afdb07f"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/microsoft/promptflow"
}, {
"type" : "WEB",
"url" : "https://msrc.microsoft.com/update-guide/vulnerability/CVE-2025-24986"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-653" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2025-03-11T20:19:55Z",
"nvd_published_at" : "2025-03-11T17:16:34Z"
}
}