CVE-2026-40158: PraisonAI is a multi-agent teams system
CVE-2026-40158 is a high-severity flaw (CVSS 8.6) affecting praisonai. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
PraisonAI is a multi-agent teams system. Prior to 4.5.128, PraisonAI's AST-based Python sandbox can be bypassed using type.__getattribute__ trampoline, allowing arbitrary code execution when running untrusted agent code. The _execute_code_direct function in praisonaiagents/tools/python_tools.py uses AST filtering to block dangerous Python attributes like __subclasses__, __globals__, and __bases__. However, the filter only checks ast.Attribute nod
Why this priority
- High severity
- Public exploit reference
A fixed release or distro patch exists.
Last updated 2026-10-26 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2026-40158?
praisonai: upgrade to 4.5.128. Exact commands for each OS are on this page.
Is CVE-2026-40158 being exploited?
CVE-2026-40158 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2026-40158 affect?
CVE-2026-40158 affects praisonai. Severity is high (CVSS 8.6). PraisonAI is a multi-agent teams system. Prior to 4.5.128, PraisonAI's AST-based Python sandbox can be bypassed using type.__getattribute__ trampoline, allowing arbitrary code execution when running untrusted agent code. The _execute_code_d
How urgent is CVE-2026-40158?
Priority 39/100. High severity; Public exploit reference
Software pages
Related CVEs
- CVE-2026-40288 CRITICAL 9.8 UPGRADE UPGRADE PraisonAI is a multi-agent teams system
- CVE-2026-40289 CRITICAL 9.1 UPGRADE UPGRADE PraisonAI is a multi-agent teams system
- CVE-2026-40315 CRITICAL 9.8 UPGRADE PraisonAI is a multi-agent teams system
- CVE-2026-40116 HIGH 7.5 UPGRADE PraisonAI is a multi-agent teams system
- CVE-2026-40113 HIGH 8.4 UPGRADE PraisonAI is a multi-agent teams system