CVE-2026-39888: CWE-657: Violation of Secure Design Principles in MervinPraison praisonaiagents
CVE-2026-39888 is a critical vulnerability in MervinPraison's praisonaiagents prior to version 1. 5. 115. The issue arises from an incomplete sandboxing mechanism in the execute_code() function, where the subprocess wrapper's AST-based blocklist is insufficiently restrictive. Specifically, four attributes that enable frame traversal (__traceback__, tb_frame, f_back, and f_builtins) are not blocked, allowing an attacker to escape the sandbox by chaining these attributes through a caught exception. This leads to exposure of the real Python builtins dict and enables arbitrary code execution, bypassing all remaining security layers. The vulnerability is fixed in version 1. 5. 115. No known exploits in the wild have been reported.
AI Analysis
Technical Summary
PraisonAI's praisonaiagents prior to version 1.5.115 contains a sandbox escape vulnerability in the execute_code() function. The subprocess sandbox uses an AST-based blocklist to restrict certain attribute names, but this blocklist only covers 11 attributes, missing four critical attributes (__traceback__, tb_frame, f_back, and f_builtins) that enable frame traversal. By chaining these attributes through a caught exception, an attacker can access the real Python builtins dictionary within the subprocess wrapper frame. From there, the attacker can retrieve and invoke exec under a non-blocked variable name, effectively bypassing the sandbox's security controls and enabling arbitrary code execution. This vulnerability violates secure design principles (CWE-657) and improper restriction of operations within the sandbox (CWE-693). The issue is resolved in version 1.5.115.
Potential Impact
Successful exploitation allows an attacker with limited privileges to bypass the sandbox restrictions and execute arbitrary Python code with the privileges of the subprocess. This leads to complete compromise of the affected system's confidentiality, integrity, and availability. The vulnerability has a CVSS v3.1 score of 10.0, reflecting its critical impact. There are no reports of known exploits in the wild at this time.
Mitigation Recommendations
A fix for this vulnerability is available in praisonaiagents version 1.5.115. Users should upgrade to version 1.5.115 or later to remediate this issue. Patch status is not explicitly stated beyond the fixed version, so users should consult the vendor's official advisory or release notes for detailed remediation guidance. Until upgraded, users should consider restricting access to the vulnerable functionality or environment to trusted users only.
CVE-2026-39888: CWE-657: Violation of Secure Design Principles in MervinPraison praisonaiagents
Description
CVE-2026-39888 is a critical vulnerability in MervinPraison's praisonaiagents prior to version 1. 5. 115. The issue arises from an incomplete sandboxing mechanism in the execute_code() function, where the subprocess wrapper's AST-based blocklist is insufficiently restrictive. Specifically, four attributes that enable frame traversal (__traceback__, tb_frame, f_back, and f_builtins) are not blocked, allowing an attacker to escape the sandbox by chaining these attributes through a caught exception. This leads to exposure of the real Python builtins dict and enables arbitrary code execution, bypassing all remaining security layers. The vulnerability is fixed in version 1. 5. 115. No known exploits in the wild have been reported.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
PraisonAI's praisonaiagents prior to version 1.5.115 contains a sandbox escape vulnerability in the execute_code() function. The subprocess sandbox uses an AST-based blocklist to restrict certain attribute names, but this blocklist only covers 11 attributes, missing four critical attributes (__traceback__, tb_frame, f_back, and f_builtins) that enable frame traversal. By chaining these attributes through a caught exception, an attacker can access the real Python builtins dictionary within the subprocess wrapper frame. From there, the attacker can retrieve and invoke exec under a non-blocked variable name, effectively bypassing the sandbox's security controls and enabling arbitrary code execution. This vulnerability violates secure design principles (CWE-657) and improper restriction of operations within the sandbox (CWE-693). The issue is resolved in version 1.5.115.
Potential Impact
Successful exploitation allows an attacker with limited privileges to bypass the sandbox restrictions and execute arbitrary Python code with the privileges of the subprocess. This leads to complete compromise of the affected system's confidentiality, integrity, and availability. The vulnerability has a CVSS v3.1 score of 10.0, reflecting its critical impact. There are no reports of known exploits in the wild at this time.
Mitigation Recommendations
A fix for this vulnerability is available in praisonaiagents version 1.5.115. Users should upgrade to version 1.5.115 or later to remediate this issue. Patch status is not explicitly stated beyond the fixed version, so users should consult the vendor's official advisory or release notes for detailed remediation guidance. Until upgraded, users should consider restricting access to the vulnerable functionality or environment to trusted users only.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-04-07T20:32:03.011Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 69d6c32c1cc7ad14dab1ab41
Added to database: 4/8/2026, 9:05:48 PM
Last enriched: 4/8/2026, 9:21:09 PM
Last updated: 4/8/2026, 11:22:50 PM
Views: 7
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.