Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconIdentify PraisonAI CodeAgent endpoint
-
DeliveryInject malicious instructions into model context
-
ExploitLLM emits attacker-controlled Python
-
Install_execute_python runs code unsandboxed
-
C2Read os.environ and secrets
-
ExecuteEstablish reverse shell and execute commands
-
ImpactFull host compromise and exfiltration
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Code injection prevention, sandbox exec
MITRE ATT&CK
2 techniques across 2 tactics: Execution, Initial Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires that the target deployment uses PraisonAI's CodeAgent feature (the component containing _execute_python) and that the attacker can influence the LLM's context - i.e. some untrusted content (user prompt, retrieved document, tool/web result) reaches the model driving the agent. Given that, no authentication is indicated by the vector (PR:N/UI:N) and default CodeAgent configurations perform no AST validation, import filtering, or sandboxing, so nothing further limits code execution. The practical limiting factors are: the CodeAgent code-execution mode must be in use (not all PraisonAI deployments enable it), the attacker needs a path into the model input, and reliable triggering depends on the LLM actually emitting the injected code, which is probabilistic though readily achievable via prompt injection. |
| Impact | All available signals point to genuine high priority rather than an inflated score. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N) describes network-reachable, low-complexity, unauthenticated exploitation, and the vulnerable-system and subsequent-system impacts are all High (VC:H/VI:H/VA:H/SC:H/SI:H/SA:H) yielding the maximum 10.0 - consistent with full host compromise and secret theft. The realistic constraint not captured by the raw score is dependence on LLM behavior: exploitation requires an attacker-controllable path into the model's context and relies on the (non-deterministic but readily coaxed) model emitting the malicious code, which is why an assessed CVSS 3.1 could justify AC:H even though 4.0 rates AC:L. No EPSS score was provided, the CVE is not in CISA KEV, and no POC is referenced, so there is no evidence of active or widespread exploitation yet; the risk is driven by the trivial post-injection impact and the design pattern, not by observed in-the-wild activity. |
| Exploit ScenarioDerived | An attacker plants injection text in content the agent will process - a web page, uploaded file, or chat message - instructing the model to write Python that reads os.environ and opens a reverse shell. When the CodeAgent generates and calls _execute_python(), the unsandboxed code runs on the host, exfiltrating API keys and giving the attacker command execution. No exploit code is publicly identified at time of analysis, but the network attack vector and low complexity make the path straightforward once model input is attacker-influenced. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 11, 2026
Remote code execution in PraisonAI before 1.6.78 allows attackers to run arbitrary Python on the host by manipulating the LLM that drives the CodeAgent component. Because CodeAgent._execute_python() runs LLM-generated code with no AST validation, import restrictions, or sandbox, an attacker who can shape model output via prompt injection can exfiltrate all environment secrets and gain full control of the agent host. VulnCheck reports the flaw with a maximum CVSS 4.0 score of 10.0; there is no public exploit identified at time of analysis and it is not listed in CISA KEV.
RemediationAI
Vendor-released patch: upgrade to PraisonAI 1.6.78 or later, the first fixed release per the GitHub Security Advisory (https://github.com/MervinPraison/PraisonAI/security/advisories/GHSA-2xv2-w8cq-5gxw). If immediate upgrade is not possible, disable the CodeAgent code-execution path so the framework does not run LLM-generated Python - this removes the automated-coding feature but eliminates the RCE - and run any agent that must execute code inside a locked-down sandbox: an isolated container or VM with no outbound network, dropped privileges, and no access to production credentials. Additionally, strip secrets from the process environment and inject them only through a broker the agent cannot read, and treat all documents, tool outputs, and user messages that reach the model as untrusted to shrink the prompt-injection surface. The trade-off of the disable/sandbox controls is loss of dynamic code-execution functionality and added operational complexity; credential isolation limits blast radius but does not stop code execution itself.
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 multi-agent AI orchestration framework (Python, distributed as the mervinpraison/praisonai package) whose CodeAgent feature lets an LLM author and execute Python to accomplish tasks. The vulnerability is CWE-94 (Improper Control of Generation of Code / code injection): the _execute_python() routine passes model-generated source straight into the Python interpreter without an allow-list AST walk, without restricting dangerous imports (os, subprocess, socket), and without any process or OS sandbox. In agentic designs the LLM's output is data influenced by upstream, potentially untrusted context (documents, tool results, user messages), so any content that reaches the model can steer the generated code - turning prompt injection into direct code execution on the host.
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:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H
Network-reachable and unauthenticated (AV:N/PR:N) but reliant on influencing non-deterministic LLM output, so AC:H; sandbox-less host execution breaks scope (S:C) with full C/I/A impact.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
1DescriptionCVE.org
PraisonAI before 1.6.78 contains a remote code execution vulnerability in CodeAgent._execute_python() that executes LLM-generated Python code without AST validation, import restrictions, or sandbox enforcement. Attackers can influence LLM output through prompt injection to exfiltrate all environment secrets and execute arbitrary code on the host system.
Articles & Coverage 1
Executive ViewAI
PraisonAI versions before 1.6.78 contain a critical remote code execution vulnerability in the CodeAgent component that allows attackers to execute arbitrary Python code and exfiltrate all environment secrets through prompt injection attacks; no public exploit identified at time of analysis. Organizations deploying PraisonAI for autonomous agent operations face immediate risk of complete infrastructure compromise and unauthorized access to all system credentials and sensitive data. Affected systems require immediate assessment for active deployment and isolation pending remediation.
No vendor-released patch identified at time of analysis. Interim mitigations: disable CodeAgent if not business-critical; run PraisonAI instances in isolated sandboxed environments with minimal or no access to sensitive environment variables and secrets; implement strict input validation and prompt injection filtering for all LLM interactions; enforce least-privilege service account execution with restricted file system and network access; establish monitoring and alerting for suspicious CodeAgent Python execution patterns and model-generated code; implement network segmentation and microsegmentation to contain blast radius from compromised instances; conduct threat modeling to assess attack surface and prioritize systems for remediation.
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
Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
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
Cross-site request forgery against the PraisonAI MCP HTTP-stream transport allows unauthenticated remote attackers to ex
EUVD-2026-43182
GHSA-2xv2-w8cq-5gxw
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB
VulDB