Vulnerabilities in pkg:pypi/promptflow-tools

PACKAGE
Advisory Identifier: GHSA-gprr-v9f2-px3c
Advisory Summary

CVE-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.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:pypi/promptflow-tools

1 Known Advisory Record(s)

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

CVE Identifier CVE-2025-24986
GHSA Identifier GHSA-gprr-v9f2-px3c
Severity MODERATE
CVSS v3.1 Base Score 6.5
CWE Classification CWE-653: Improper Isolation or Compartmentalization
Affected Product Promptflow tools
Package Ecosystem PyPI
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability None (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.

promptflow-tools fixed: 1.6.0
pip install promptflow-tools>=1.6.0
promptflow-core fixed: 1.17.2
pip install promptflow-core>=1.17.2
Verify Direct and Transitive Dependencies

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

Improper isolation or compartmentalization in Azure PromptFlow allows an unauthorized attacker to execute code over a network.

CVE-2025-24986 Affected Promptflow tools Versions

2 component(s)
Fixed Versions:
1.6.01.17.2
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?
CVE-2025-24986 is a security vulnerability in Promptflow tools involving Azure PromptFlow remote code execution related to Jinja templates under CWE-653: Improper Isolation or Compartmentalization.
Which Promptflow tools versions are affected?
Affected versions include releases prior to 1.6.0, 1.17.2 across affected packages: promptflow-tools, promptflow-core.
What version fixes CVE-2025-24986?
Upgrading to 1.6.0, 1.17.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is promptflow-tools affected?
Yes, promptflow-tools is affected in releases prior to 1.6.0. Upgrade your dependency to 1.6.0 or later.
Is promptflow-core affected?
Yes, promptflow-core is affected in releases prior to 1.17.2. Upgrade your dependency to 1.17.2 or later.
What is the CVSS score of CVE-2025-24986?
CVE-2025-24986 has a CVSS v3.1 base score of 6.5 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N.
What CWE is associated with CVE-2025-24986?
CVE-2025-24986 is classified under CWE-653: Improper Isolation or Compartmentalization (The product does not properly compartmentalize or isolate functionality, processes, or resources that require different privilege levels, rights, or permissions.).
How can I check PyPI dependencies for CVE-2025-24986?
Run the dependency tree command: 'pip show promptflow-tools'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}