Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

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

0
High
VulnerabilityCVE-2026-47398cvecve-2026-47398cwe-94cwe-829
Published: 07/21/2026 (07/21/2026, 16:01:22 UTC)
Source: CVE Database V5
Vendor/Project: MervinPraison
Product: PraisonAI

Description

PraisonAI is a multi-agent teams system. The v4.6.32 chokepoint refactor (which patched CVE-2026-44334 / GHSA-xcmw-grxf-wjhj) added the PRAISONAI_ALLOW_LOCAL_TOOLS env-var gate to the tool_override.py sinks. However, two additional spec.loader.exec_module call sites in praisonai/agents_generator.py were missed and remain completely unguarded in versions prior to 4.6.40. Both functions accept a module_path parameter sourced from YAML configuration and execute it without validation, signature checking, or the env-var gate. Version 4.6.40 fixes the issue.

CVSS v3.1

Score 8.1high

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

Affected software

GitHub Actionsmore threats →ai
mervinpraison/PraisonAI
pkg:github/mervinpraison/PraisonAI
Affected versions
<4.6.40

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: 07/21/2026, 16:57:03 UTC

Technical Analysis

PraisonAI versions before 4.6.40 have a code injection vulnerability (CWE-94) due to two unprotected spec.loader.exec_module call sites in praisonai/agents_generator.py. These functions accept a module_path parameter from YAML configuration and execute it without validation, signature checks, or the environment variable gate introduced in a prior patch. This flaw allows execution of arbitrary code modules, leading to high impact on confidentiality, integrity, and availability. The vulnerability was addressed in version 4.6.40.

Potential Impact

Exploitation of this vulnerability can lead to remote code execution with no privileges required and no user interaction, resulting in full compromise of the affected system's confidentiality, integrity, and availability. The CVSS v3.1 base score is 8.1 (High), reflecting network attack vector, high impact, and high complexity due to the need for crafted YAML configuration input.

Mitigation Recommendations

Upgrade PraisonAI to version 4.6.40 or later, where the unguarded spec.loader.exec_module calls have been secured. Patch status is not explicitly confirmed in vendor advisory content, but the description states version 4.6.40 fixes the issue. Until upgrade, avoid using untrusted YAML configurations that specify module_path parameters.

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-05-19T19:22:45.730Z
Cvss Version
3.1
State
PUBLISHED
Remediation Level
null

Threat ID: 6a5fa1722a4a8d59896d342d

Added to database: 07/21/2026, 16:42:26 UTC

Last enriched: 07/21/2026, 16:57:03 UTC

Last updated: 07/21/2026, 17:37:40 UTC

Views: 3

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