---
title: "CVE-2026-47392: PraisonAI vulnerable to sandbox escape via `print.__self__` builtins module leak in `execute_code` (subprocess mode)"
url: https://erroneo.us/security/cve/CVE-2026-47392/
description: "CVE-2026-47392 (praisonaiagents (PyPI)): PraisonAI is a multi-agent teams system. Prior to version 4.6.40 of PraisonAI, corresponding to version 1.6.40 of…"
type: vulnerability-record
section: "Security Digest"
date_published: 2026-07-21
date_modified: 2026-07-21
publisher: erroneo.us
author: erroneo.us Security Desk
cve: "CVE-2026-47392"
kev: false
cvss: 9.9
epss: 0.00884
license: All rights reserved. Quote with attribution and a link.
---

# CVE-2026-47392: PraisonAI vulnerable to sandbox escape via `print.__self__` builtins module leak in `execute_code` (subprocess mode)

**Signal:** Critical, preconditions apply. Severe if exploited, but exploitation needs conditions that may not apply to you. (Computed from CISA KEV, EPSS and CVSS; not an editorial verdict.)

## Should you act?

- Not in CISA KEV , but CISA’s SSVC assessment records a public proof-of-concept, so attack code exists.
- EPSS 0.9% , percentile 59: FIRST’s model estimates a 0.9% chance of exploitation activity in the next 30 days, higher than 59% of all scored CVEs (moderate). EPSS is a probability, not a verdict.
- Needs an account (low (any account)). Exposure depends on who can log in.
- Only applies if your dependency tree includes praisonaiagents (PyPI) <= 1.6.39, fixed in 1.6.40 ; PraisonAI (PyPI) <= 4.6.39, fixed in 4.6.40 . Check your lockfile, including transitive dependencies.

## What it is

PraisonAI is a multi-agent teams system. Prior to version 4.6.40 of PraisonAI, corresponding to version 1.6.40 of praisonaiagents, executecode() in praisonaiagents/tools/pythontools.py (v1.6.37, subprocess sandbox mode) can be fully bypassed using print.self to retrieve the real Python builtins module, from which import can be extracted via vars() and runtime string construction. This achieves arbitrary OS command execution on the host, completely defeating the sandbox. This is a novel bypass that survives all patches for CVE-2026-39888 (frame traversal), CVE-2026-34938 (str subclass), and CVE-2026-40158 (type.getattribute trampoline). PraisonAI version 4.6.40 and praisonaiagents version 1.6.40 contain an updated fix.

## Affected packages

- PyPI `praisonaiagents` <= 1.6.39 → fixed: 1.6.40
- PyPI `PraisonAI` <= 4.6.39 → fixed: 4.6.40

## Affected products (CVE record)

- MervinPraison PraisonAI: < 4.6.40
- MervinPraison < 1.6.40: praisonaiagents

## Severity

- GitHub_M CVSS 3.1: 9.9 `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H`
- GitHub CVSS 3.1: 9.9 `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H`

## Exploitation

- CISA KEV: not listed (no confirmed in-the-wild exploitation known to CISA).
- CISA SSVC assessment: exploitation poc , automatable no , technical impact total .
- FIRST EPSS (model of 2026-10-21): 0.88% probability of exploitation activity in the next 30 days; percentile 59.

## Sources

- [GitHub Advisory GHSA-4mr5-g6f9-cfrh](https://github.com/advisories/GHSA-4mr5-g6f9-cfrh)
- [CVE.org record CVE-2026-47392](https://www.cve.org/CVERecord?id=CVE-2026-47392)
- [NVD entry CVE-2026-47392](https://nvd.nist.gov/vuln/detail/CVE-2026-47392)
- [github.com](https://github.com/MervinPraison/PraisonAI/security/advisories/GHSA-4mr5-g6f9-cfrh)
- [github.com](https://github.com/MervinPraison/PraisonAI/pull/1684)
- [github.com](https://github.com/MervinPraison/PraisonAI/commit/b0d8f777528f3253a0cfb0a3ef65455da6ae32f6)

---
Source page: https://erroneo.us/security/cve/CVE-2026-47392/ · Security Digest: https://erroneo.us/security/ · More: https://erroneo.us/llms.txt
