CVE-2026-47392
PraisonAI vulnerable to sandbox escape via `print.__self__` builtins module leak in `execute_code` (subprocess mode)
Also known as GHSA-4mr5-g6f9-cfrh, PYSEC-2026-463, PYSEC-2026-483
Mitigation
- Upgrade praisonaiagents to 1.6.40 or later.
- Upgrade praisonai to 4.6.40 or later.
Who should check
- Projects that depend on PyPI package praisonaiagents (< 1.6.40)
- Projects that depend on PyPI package praisonai (< 4.6.40)
- Anyone running MervinPraison PraisonAI < 4.6.40
- Anyone running MervinPraison < 1.6.40 praisonaiagents
Vulnerability facts
- Affected
- praisonaiagents < 1.6.40; praisonai < 4.6.40
- Fixed in
- 1.6.40, 4.6.40
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, login needed
- CVSS
- 9.9 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Privileges required: Low
- User interaction: None
- Scope: Changed (impact reaches other components)
- Confidentiality impact: High
- Integrity impact: High
- Availability impact: High
- EPSS
- 0.88% chance of exploitation in 30 days (percentile 57, 2026-11-26)
- CWE
- CWE-184, CWE-693
- Modified
Description
PraisonAI is a multi-agent teams system. Prior to version 4.6.40 of PraisonAI, corresponding to version 1.6.40 of praisonaiagents, `execute_code()` in `praisonaiagents/tools/python_tools.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 and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| PyPI praisonaiagents | < 1.6.40 | 1.6.40 | osv |
| PyPI praisonai | < 4.6.40 | 4.6.40 | osv |
| MervinPraison PraisonAI | < 4.6.40 | — | cvelist |
| MervinPraison < 1.6.40 | praisonaiagents | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-47392. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-47392.md Affected: praisonaiagents < 1.6.40; praisonai < 4.6.40 Fixed in: 1.6.40, 4.6.40 Steps: 1. Search this machine and project for praisonaiagents (PyPI), praisonai (PyPI), MervinPraison PraisonAI, MervinPraison < 1.6.40: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
Patches
FAQ
Is CVE-2026-47392 being exploited?
There is no confirmed exploitation: CVE-2026-47392 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.88% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2026-47392?
Critical: CVSS 9.9 (v3.1, scored by CNA). Remote, login needed.
Which versions are affected by CVE-2026-47392?
praisonaiagents < 1.6.40; praisonai < 4.6.40.
Is there a fix for CVE-2026-47392?
Yes. Fixed in 1.6.40, 4.6.40. Upgrade praisonaiagents to 1.6.40 or later. Upgrade praisonai to 4.6.40 or later.
How do I check if I'm affected by CVE-2026-47392?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.