CVE-2026-40158Disclosure(praison / praisonai)

LOWCVSS 7.8 · HIGH

Signal is active with 2 mentions in latest observed window

Immediate actions

  • Patch praison praisonai systems immediately

Recommended action window: Monitor and triage in normal cycle

NVD description

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 nodes, allowing a bypass. The sandbox relies on AST-based filtering of attribute access but fails to account for dynamic attribute resolution via built-in methods such as type.getattribute, resulting in incomplete enforcement of security restrictions. The string '__subclasses__' is an ast.Constant, not an ast.Attribute, so it is never checked against the blocked list. This vulnerability is fixed in 4.5.128.

0.5/ 10 priority

Sources & remediation

Weakness type (CWE)
CWE-94CWE-693

Priority

LOW

Exploitation

NONE

PoC

YES

Patch

AVAILABLE

Momentum

NONE

Are you affected?

If you run products in this scope, you should treat this CVE as relevant to your environment.

  • praisonai

Threat summary

  • Patch or workaround signal is available
  • 2 mentions across 1 observed day

What's happening

  • Patch or workaround mentioned in 1 signal
  • Technical details provided in 2 signals
  • Disclosure: 2 classified signals
  • 2 total mentions across 1 day

Affected systems

Vendors
Products
praisonai

Deep dive

Activity timeline2 mentions / 1d
01122Mentions · 2026-04-10: 2Patch / Workaround · 2026-04-10: 1Technical Details · 2026-04-10: 204-10
Signal classification1 categories
Disclosure
2100.0%
Referenced assets2 URLs
Full discourse2 posts
  • CVE@CVEnew
    Disclosure

    CVE-2026-40158 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 arbit… https://www.cve.org/CVERecord?id=CVE-2026-40158

    Post summary

    The tweet announces CVE‑2026‑40158 for PraisonAI, noting a sandbox bypass technique but offers no PoC, exploit code, patch, or evidence of active exploitation.

    00010107
    57.0K followersView on X
  • CVEFind.com@CveFindCom
    Disclosure

    [CVE-2026-40158: HIGH] Critical security vulnerability in PraisonAI up to version 4.5.128 allows bypass of Python sandbox for arbitrary code execution. Fixed in version 4.5.128. #cybersecurity#cve,CVE-2026-40158,#cybersecurity https://cvefind.com/CVE-2026-40158

    Post summary

    CVE-2026-40158 is a high‑severity vulnerability in PraisonAI allowing bypass of the Python sandbox for arbitrary code execution; it has been patched in version 4.5.128.

    0000051
    619 followersView on X
CPE platform detail1 entries

1 of 1 entries

PartVendorProductVersionTarget SWTarget HW
Apppraisonpraisonai---

Explore more