Skip to main content

CVE-2026-62176: CWE-94: Improper Control of Generation of Code ('Code Injection') in MervinPraison PraisonAI

0
Critical
VulnerabilityCVE-2026-62176cvecve-2026-62176cwe-94
Published: 10/07/2026 (10/07/2026, 16:06:56 UTC)
Source: CVE Database V5
Vendor/Project: MervinPraison
Product: 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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
High
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H

Affected software

MervinPraison

PraisonAI

Affected versions
<4.6.78
praisonai
pkg:pypi/praisonai
Affected versions
<4.6.78

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 10/07/2026, 17:03:50 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses