CVE-2026-47398: CWE-94: Improper Control of Generation of Code ('Code Injection') in MervinPraison PraisonAI
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.
AI Analysis
Technical Summary
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.
CVE-2026-47398: CWE-94: Improper Control of Generation of Code ('Code Injection') in MervinPraison 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
Affected software
pkg:github/mervinpraison/PraisonAIRun 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
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.
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 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.
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.