{"id":"CVE-2026-47398","published":"2026-07-21T16:01:22Z","modified":"2026-07-21T16:33:53Z","title":"PraisonAI: Arbitrary code execution via unguarded `spec.loader.exec_module` in `agents_generator.py` - sibling of…","vendor":"MervinPraison","product":"PraisonAI","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.1,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.005,"percentile":0.43758,"provenance":"source"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"},{"id":"CWE-829","name":"Inclusion of Functionality from Untrusted Control Sphere"}],"references":[{"url":"https://github.com/MervinPraison/PraisonAI/security/advisories/GHSA-78r8-wwqv-r299","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/MervinPraison/PraisonAI/pull/1685","tags":["x_refsource_MISC"]},{"url":"https://github.com/MervinPraison/PraisonAI/commit/ef79b7a0561796ad9807f0f09538c25cc78d3619","tags":["x_refsource_MISC"]}],"priority":{"score":14.4,"factors":[{"name":"EPSS percentile","points":8.75},{"name":"CVSS severity","points":5.67}]},"vendorSlug":"mervinpraison","affectedVersions":[{"vendor":"MervinPraison","product":"PraisonAI","versions":["< 4.6.40"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2026-07-21T16:33:17.988858Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"PraisonAI","vulnerableRanges":["<4.6.40"],"patched":["4.6.40"],"from":["GHSA-78r8-wwqv-r299","PYSEC-2026-2905"],"provenance":"source"}],"summary":{"text":"PraisonAI, a multi-agent teams system, contains an arbitrary code execution flaw in the agents_generator.py component, where two spec.loader.exec_module call sites accept a module_path taken from YAML configuration and run it without validation, signature checking, or the PRAISONAI_ALLOW_LOCAL_TOOLS gate that protects the tool_override.py sinks. An attacker who can supply or influence the YAML configuration can get arbitrary code executed, with the attack complexity noted as high and no privileges or user interaction required, and with network access as the attack vector.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:34:09Z"},"euvd":{"id":"EUVD-2026-46306","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-mervinpraison-praisonai-cve-2026-47398","children":[{"from":"CVE-2026-47398","to":"CVE-2026-64824","relation":"related","confidence":"high","kind":"lineage","evidence":[{"kind":"osv-related","provenance":"source","id":"GHSA-78r8-wwqv-r299","via":"reference","url":"https://github.com/MervinPraison/PraisonAI/security/advisories/GHSA-78r8-wwqv-r299"}]}]}}