CVE-2026-47398 Code injection in PraisonAI

High 8.1 Published Updated

Attackers can execute arbitrary code by supplying malicious module paths in YAML configuration due to unguarded exec_module calls in PraisonAI.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2026-47398?

CVE-2026-47398 is a high-severity code injection vulnerability in MervinPraison PraisonAI, published on 21 Jul 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official 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.

Weakness: CWE-94, CWE-829

Which versions are affected by CVE-2026-47398?

How do I fix CVE-2026-47398?

Upgrade to a fixed version.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2026-47398 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-47398 exists.

Sources

Is CVE-2026-47398 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free