CVE-2026-62176: CWE-94: Improper Control of Generation of Code ('Code Injection') in MervinPraison PraisonAI
Description
PraisonAI is a multi-agent teams system. Prior to version 4.6.78, the `deploy/api.py` module generates Python server code by directly interpolating the `agents_file` parameter into an f-string that is then written to a file and executed via `subprocess.Popen()`. An attacker who controls the `agents_file` value (via CLI argument, configuration, or upstream API) can inject arbitrary Python code. Version 4.6.78 patches the issue.
CVSS v3.1
Score 9.1critical
Affected software
MervinPraison
PraisonAI
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
PraisonAI versions before 4.6.78 contain a code injection vulnerability (CWE-94) in the deploy/api.py module. The module generates Python server code by directly embedding the 'agents_file' parameter into an f-string, which is then written to a file and executed using subprocess.Popen(). If an attacker can control the 'agents_file' parameter (via CLI, configuration, or API), they can inject and execute arbitrary Python code. This vulnerability is fixed in version 4.6.78.
Potential Impact
Successful exploitation allows an attacker with high privileges to execute arbitrary Python code on the server, leading to complete compromise of confidentiality, integrity, and availability of the affected system. The CVSS score of 9.1 reflects the critical severity and the potential for severe impact.
Mitigation Recommendations
Upgrade PraisonAI to version 4.6.78 or later, where this vulnerability is patched. No other mitigation is required as the fix addresses the root cause.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-07-13T14:16:29.574Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 6ac674862cdf04f656647320
Added to database: 10/07/2026, 16:34:14 UTC
Last enriched: 10/07/2026, 17:03:50 UTC
Last updated: 10/07/2026, 18:56:10 UTC
Views: 10
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.