Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate to PraisonAI deploy API
-
DeliverySubmit agents_file with embedded Python
-
Exploitf-string interpolates value into generated code
-
Executionsubprocess.Popen() runs generated script
-
ImpactArbitrary code executes on host
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 the attacker to control the agents_file parameter passed to the deploy/api.py deployment endpoint, and per the CVSS vector (PR:H) requires high privileges to reach that functionality - so this is not exploitable against a default, unauthenticated deployment. The affected code path (f-string interpolation of agents_file followed by execution of the generated code via subprocess.Popen()) must be exercised, which limits exploitation to environments that actually run the PraisonAI deployment API and expose its agent-file input to the attacker. Limiting factors: high-privilege access is mandatory, no user interaction is needed once access is held (UI:N), and the target must be a version before 4.6.78. |
| Impact | Signals are largely consistent and point to a genuinely high-severity flaw, tempered by an access prerequisite. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:H/UI:N) with full high impact on both the vulnerable system (VC:H/VI:H/VA:H) and subsequent systems (SC:H/SI:H/SA:H) yields 9.4 and reflects trivial exploitation complexity once the attacker has the required privileged access. The dominant limiter is PR:H: the attacker must already hold high privileges to control the agents_file parameter, which materially narrows the realistic attacker population and argues against unauthenticated mass exploitation. No EPSS score, SSVC decision, KEV entry, or POC was provided, so probability-of-exploitation and automatability cannot be quantified from the input; treat exploitation likelihood as unknown rather than low. Net: prioritize patching for anyone running the PraisonAI deployment API, but the PR:H barrier means this is more an insider/compromised-credential and privilege-boundary concern than an internet-wide worm risk. |
| Exploit ScenarioDerived | An attacker with privileged access to the PraisonAI deployment API submits a crafted agents_file value that embeds Python code; when deploy/api.py interpolates it into the generated server script and launches it via subprocess.Popen(), the injected code executes on the host with the process's privileges. No public POC was identified, and low attack complexity (AC:L) means that once the attacker can set the parameter, exploitation is straightforward. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 10, 2026
Remote code execution in PraisonAI before 4.6.78 lets an attacker who can supply the agents_file parameter to deploy/api.py run arbitrary Python, because that value is interpolated directly into an f-string that is later executed as generated server code via subprocess.Popen(). The CVSS 4.0 base score is 9.4 and the vector requires high privileges (PR:H), meaning the attacker must already be able to reach and drive the deployment API. No public exploit has been identified at time of analysis and it is not on the CISA KEV list.
RemediationAI
Vendor-released patch: 4.6.78 - upgrade PraisonAI to 4.6.78 or later, which is the primary and recommended fix (see GHSA-g6j7-pffp-8whg). If you cannot upgrade immediately, restrict who can reach and invoke the deploy/api.py deployment endpoint to trusted operators only and treat the agents_file parameter as untrusted input: validate it against a strict allow-list of known file paths and reject any value containing Python syntax, quotes, or newlines, accepting that this narrows legitimate flexibility in specifying agent definitions. As a further compensating control, run the generated server process under a low-privilege, sandboxed account so a successful injection cannot pivot to broader system compromise, at the cost of some deployment convenience. Refer to the vendor advisory (https://github.com/MervinPraison/PraisonAI/security/advisories/GHSA-g6j7-pffp-8whg) and the VulnCheck writeup (https://www.vulncheck.com/advisories/praisonai-before-code-injection-via-f-string) for confirmation of the fixed version.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in pypi
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
PraisonAI is an open-source Python framework for building and orchestrating multi-agent LLM systems (mervinpraison/praisonai). Its deployment component (deploy/api.py) programmatically generates server code and launches it as a child process with subprocess.Popen(). The root cause is CWE-94 (Improper Control of Generation of Code, i.e. code injection): the user-controlled agents_file value is concatenated into a Python f-string template with no sanitization, escaping, or allow-listing, so any Python expression or statement embedded in that value becomes part of the emitted program and is executed when the generated script runs. This is a classic template/eval-style injection where the trust boundary between configuration input and executable code is not enforced.
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:H/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H
Network-reachable API with low complexity but PR:H because controlling agents_file needs privileged access; scope change (S:C) since injected code runs in a spawned subprocess, with full C/I/A impact.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
1DescriptionCVE.org
PraisonAI versions before 4.6.78 contain a code injection vulnerability in deploy/api.py where the agents_file parameter is directly interpolated into an f-string without sanitization. Attackers can inject arbitrary Python code that executes when the generated server code runs via subprocess.Popen().
Articles & Coverage 2
Executive ViewAI
PraisonAI versions prior to 4.6.78 contain a critical remote code execution vulnerability in the deployment API that allows authenticated users with high-level privileges to execute arbitrary Python code by manipulating the agents_file parameter. This poses complete system compromise risk to PraisonAI deployments and could enable attackers with API access to breach entire environments. Immediate access restrictions and monitoring are required.
No vendor-released patch identified at time of analysis. Interim mitigations: (1) Restrict deployment API network access to internal IP ranges only; (2) Require multi-factor authentication for all API access; (3) Implement input validation to reject agents_file values containing Python syntax or shell metacharacters; (4) Deploy application-level controls to sanitize f-string interpolation inputs; (5) Enable comprehensive API audit logging with real-time alerting on parameter anomalies; (6) Consider disabling deployment API endpoints if not actively required.
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.
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
Unauthenticated authentication bypass in praisonai-platform prior to 0.1.6 (and PraisonAI before 4.6.51) allows a remote
WebSocket origin-validation bypass in PraisonAI's Browser Server (praisonai/browser/server.py) before 4.6.58 lets an att
Unauthenticated agent access in PraisonAI before 1.7.3 lets remote attackers read agent instructions and system prompts
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
EUVD-2026-42902
GHSA-vwv5-32vr-3jcp
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB