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

- Severity: High 8.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.50%, higher than 44% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-05-29T22:26:31.000Z
- Modified: 2026-10-24T19:10:00.127Z
- Also known as: GHSA-78r8-wwqv-r299, PYSEC-2026-2905
- Related: CVE-2026-64824
- Weaknesses: CWE-94, CWE-829
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- MervinPraison PraisonAI: < 4.6.40
- praisonai (PyPI): before 4.6.40

## Every score

- GitHub_M: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- PyPA Advisory Database: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/MervinPraison/PraisonAI/security/advisories/GHSA-78r8-wwqv-r299> (exploit, web)
- <https://github.com/MervinPraison/PraisonAI/pull/1685>
- <https://github.com/MervinPraison/PraisonAI/commit/ef79b7a0561796ad9807f0f09538c25cc78d3619>
- <https://github.com/MervinPraison/PraisonAI> (package)
- <https://pypi.org/project/praisonai> (package)
- <https://github.com/advisories/GHSA-78r8-wwqv-r299> (advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-47398> (advisory)

## Sources

- CVE List: [CVE-2026-47398](https://www.cve.org/CVERecord?id=CVE-2026-47398), CVE Terms of Use, modified 2026-07-21
- GitHub Advisory Database: [GHSA-78r8-wwqv-r299](https://github.com/advisories/GHSA-78r8-wwqv-r299), CC-BY-4.0, modified 2026-07-22
- NVD: [CVE-2026-47398](https://nvd.nist.gov/vuln/detail/CVE-2026-47398), Public domain, modified 2026-10-24
- PyPA Advisory Database: [PYSEC-2026-2905](https://osv.dev/vulnerability/PYSEC-2026-2905), CC-BY-4.0, modified 2026-07-22

---

Page: https://cve.day/CVE-2026-47398 · Whole record: https://cve.day/CVE-2026-47398.json · Rebuilt by cve.day 2026-11-25T22:59:29.360Z
