Skip to content

CVE-2026-47398 PraisonAI: Arbitrary code execution via unguarded `spec.loader.exec_module` in `agents_generator.py` - sibling of CVE-2026-44334

HighCVSS 8.1 EPSS 0.50%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: no · technical impact: total

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.

Upgrade path

2 packages: 1 fixed.

PackageAffectedFixed inStatus
pypi praisonai(PyPI) <= 4.6.39 after 4.6.39 Fixed
MervinPraison PraisonAI = < 4.6.40 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
MervinPraison PraisonAI = < 4.6.40 No fix listed
pypi praisonai(PyPI) <= 4.6.39 No fix listed

References