Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft malicious workflow file + sibling tools.py
-
DeliveryDeliver workflow to victim (repo/template/shared dir)
-
ExploitVictim loads via load_yaml or WorkflowManager
-
ExecutionString output_pydantic triggers _resolve_pydantic_class
-
Persistimportlib exec_module runs tools.py
-
ImpactArbitrary Python executes as workflow runner
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V15 - Secure Coding and Architecture Protection mechanism completeness
|
| Exploitation Conditions | Exploitation requires that (1) the attacker controls a PraisonAI workflow file AND its sibling tools.py in the same directory, (2) the workflow step uses a string-typed output_pydantic reference (the specific feature that triggers _resolve_pydantic_class's directory search), and (3) a victim executes that workflow via WorkflowManager or after load_yaml. Limiting factors: the vector is local (AV:L) not network, and success depends on victim interaction (UI:P) - the target must actually load and run the attacker-supplied workflow - so this is not remotely triggerable against a default service. The normally-protective PRAISONAI_ALLOW_*_TOOLS environment variables do NOT limit this path because the vulnerable loader ignores them, removing a control operators may assume is in place. |
| Impact | The CVSS 4.0 vector (AV:L/AC:L/AT:N/PR:N/UI:P, VC:H/VI:H/VA:H, base 8.5) frames this as a high-impact but locally-scoped, interaction-dependent issue: full confidentiality, integrity and availability loss on the vulnerable system, but only after a victim executes a workflow the attacker influenced (UI:P). This is effectively a malicious-file / untrusted-input code-execution class, not a remote unauthenticated network exploit - the practical prerequisite is that the attacker controls both the workflow file and its sibling tools.py that the runner then loads. No EPSS score, KEV listing, or public POC was provided, so real-world exploitation pressure appears low-to-targeted rather than mass-scan driven; the danger concentrates in environments that ingest, share, or auto-execute third-party PraisonAI workflows. Note a tension worth verifying: PR:N implies no privileges, yet exploitation requires the attacker to place files the victim loads, so the true barrier is delivery and victim execution rather than authentication. |
| Exploit ScenarioDerived | An attacker publishes or shares a seemingly benign PraisonAI workflow file (e.g., in a repo, template gallery, or shared directory) that uses a string output_pydantic reference and ships a malicious sibling tools.py containing top-level code such as a reverse shell. When a victim loads and runs that workflow via WorkflowManager or load_yaml, importlib exec_module executes the tools.py and the attacker's Python runs with the runner's privileges. No public POC has been identified, and the local vector plus required user execution (UI:P) mean the attacker depends on social delivery of the workflow rather than remote triggering. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 10, 2026
Arbitrary Python code execution in PraisonAI (praisonaiagents) before 1.6.78 occurs when AgentFlow._resolve_pydantic_class resolves a string output_pydantic reference in a workflow step, causing the framework to import a sibling tools.py from the workflow file's directory via importlib exec_module without any sandboxing. Because this loader ignores the PRAISONAI_ALLOW_*_TOOLS environment guardrails, an attacker who supplies a malicious workflow file plus its tools.py runs code with the workflow runner's privileges the moment the workflow is executed via WorkflowManager or loaded through load_yaml. No public exploit is identified at time of analysis, and the flaw is not listed in CISA KEV.
RemediationAI
Vendor-released patch: upgrade praisonaiagents to 1.6.78 or later (pip install --upgrade 'praisonaiagents>=1.6.78') as the primary fix, per advisory GHSA-4gfv-wg42-7jw5. Until upgraded, treat workflow files and their directories as untrusted code: only load workflows from directories you fully control, and never run WorkflowManager or load_yaml against workflow files obtained from third parties or user uploads, since a co-located tools.py will be executed. As a compensating control, avoid using string-form output_pydantic references (pass an imported class object instead) so the sibling-tools.py resolution path is not triggered, and restrict filesystem write access to any directory from which workflows are loaded so an attacker cannot drop a malicious tools.py; note that these controls constrain legitimate dynamic-tool workflows and do not fully substitute for the patch. Do not rely on PRAISONAI_ALLOW_*_TOOLS environment variables here - this code path ignores them.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in pypi, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
PraisonAI is a Python multi-agent orchestration framework distributed as the praisonaiagents pip package, where workflows are typically defined in YAML/Python files and can reference Pydantic output schemas by string name. The vulnerable path is in src/praisonai-agents/praisonaiagents/workflows/workflows.py: when a workflow step's output_pydantic is a string, _resolve_pydantic_class searches the workflow file's directory for a sibling tools.py and loads it with importlib's exec_module, which executes all top-level code in that module. The root cause maps to CWE-693 (Protection Mechanism Failure): the framework already ships PRAISONAI_ALLOW_*_TOOLS environment controls intended to gate tool loading, but this resolution path bypasses them entirely, so the intended security boundary is not enforced. The affected CPE is cpe:2.3:a:mervinpraison:praisonai:*:*:*:*:*:*:*:* for all versions prior to 1.6.78.
Know when Praisonai gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Local malicious-file RCE: attacker supplies workflow files (AV:L) and a victim must execute them (UI:R), no prior auth needed (PR:N), yielding full C/I/A compromise of the runner.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
1DescriptionCVE.org
PraisonAI (pip package praisonaiagents) before 1.6.78 contains an unsafe dynamic module loading vulnerability in AgentFlow._resolve_pydantic_class (src/praisonai-agents/praisonaiagents/workflows/workflows.py). When a workflow step uses a string output_pydantic reference, the framework locates and imports a sibling tools.py from the workflow file's directory via importlib exec_module without sandboxing, ignoring the PRAISONAI_ALLOW_*_TOOLS environment variables. An attacker who controls a workflow file and its sibling tools.py can execute arbitrary Python code with the workflow runner's privileges when the workflow is executed via WorkflowManager or after load_yaml.
Articles & Coverage 1
Executive ViewAI
PraisonAI workflow automation framework (praisonaiagents) contains a vulnerability enabling arbitrary code execution through supplied workflow files, exposing organizations that deploy this tool to direct system compromise and privilege escalation. The flaw bypasses built-in security guardrails and executes with workflow runner privileges, creating immediate risk to any system or data accessed by the automation platform.
No vendor-released patch identified at time of analysis. Interim mitigations: (1) Restrict workflow file sourcing exclusively to internal, peer-reviewed channels with audit logging; (2) Execute workflow engine under isolated service account with least-privilege access and network segmentation from production systems; (3) Implement mandatory human code review for workflow files and tools.py modules before execution; (4) Deploy file integrity monitoring with alerting on workflow directories; (5) Enforce air-gapped or network-isolated execution environment for workflow systems until patched.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
Remote code execution in PraisonAI before 1.6.78 allows attackers to run arbitrary Python on the host by manipulating th
PraisonAI's TypeScript MCP server (npm package `praisonai`, versions 1.5.0 through 1.7.1) exposes an HTTP JSON-RPC trans
WebSocket origin-validation bypass in PraisonAI's Browser Server (praisonai/browser/server.py) before 4.6.58 lets an att
PraisonAI's `praisonai serve` subsystem (agents and unified modes) accepts an `--api-key` CLI flag that is parsed but ne
System prompt extraction and unauthorized tool invocation in PraisonAI before 4.6.78 arise because the prompt-injection
Unauthenticated remote agent invocation in PraisonAI versions 4.6.34 through 4.6.57 allows any network-reachable caller
SSRF protection bypass in PraisonAI's praisonaiagents library (all versions before 1.6.58) lets low-privileged users rou
Server-side request forgery in PraisonAI's Crawl4AI/Chromium crawling backend (all versions before 1.6.78) lets low-priv
Authentication fail-open in PraisonAI's Recipe HTTP server allows unauthenticated remote attackers to invoke recipe exec
Authentication bypass in PraisonAI's AgentServer component exposes all routes - /publish, /events, /info, /health - to u
Arbitrary Python code execution in PraisonAI's workflow include feature allows an attacker who controls a local recipe d
Server-side request forgery in PraisonAI's web_crawl() function (versions 1.5.128-1.6.57) allows an attacker who can inf
EUVD-2026-42900
GHSA-4gfv-wg42-7jw5
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB