Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1336 CNY

100%

CVE-2026-57141— PraisonAI: Remote Code Execution via Sandbox Escape in `codeMode` Tool

Quick assessment

Affected
MervinPraison PraisonAI
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

PraisonAI 是一个多智能体(multi-agent)团队系统。在 1.7.2 版本之前,位于 中的 工具使用 配合 来执行模型生成的 JavaScript 代码。然而,其基于正则表达式的黑名单机制可以被绕过:攻击者可通过 获取全局对象,并通过动态构造 模块名来突破限制。 若攻击者能够影响传入 工具的 参数,则可以利用宿主机进程的能力,读写文件、获取环境变量中的凭证,并以 PraisonAI 进程的权限执行操作系统命令。该问题已在版本 1.7.2 中修复。

CVSS 9.8 · Critical
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-57141

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
PraisonAI: Remote Code Execution via Sandbox Escape in `codeMode` Tool
Source: CVE Program / CVE List V5
Vulnerability Description
PraisonAI is a multi-agent teams system. Prior to 1.7.2, the codeMode tool in src/praisonai-ts/src/tools/builtins/code-mode.ts executes model-generated JavaScript with new Function() and with(sandbox), while a regular-expression blocklist can be bypassed with Function('return this')() to recover the global object and by constructing the child_process module name dynamically. An attacker who can influence the code argument can access host process capabilities, read or write files, obtain environment credentials, and execute operating-system commands with the PraisonAI process privileges. This issue is fixed in version 1.7.2.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Source: CVE Program / CVE List V5
Vulnerability Type
对生成代码的控制不恰当(代码注入)
Source: CVE Program / CVE List V5

Affected Products

Vendor Product Affected Versions CPE Subscribe
MervinPraison PraisonAI < 1.7.2 -

II. Public POCs for CVE-2026-57141

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-57141

登录查看更多情报信息。

Patches & Fixes for CVE-2026-57141 (1)

Vendor Advisories for CVE-2026-57141 (1)

Vendor Pages for CVE-2026-57141 (1)

Same Patch Batch · MervinPraison · 2026-09-15 · 12 CVEs total

CVE-2026-57138 9.9 CRITICAL PraisonAI codeMode sandbox escape via Function constructor
CVE-2026-57139 9.8 CRITICAL PraisonAI MCPServer exposes unauthenticated HTTP tools/call
CVE-2026-57147 9.8 CRITICAL praisonai-platform: default JWT signing secret 'dev-secret-change-me' enables token forger
CVE-2026-57148 9.8 CRITICAL praisonai-platform 0.1.4 still boots on the hardcoded JWT secret dev-secret-change-me (def
CVE-2026-57140 9.4 CRITICAL PraisonAI AgentOS exposes unauthenticated agent listing and invocation
CVE-2026-57133 8.8 HIGH PraisonAI utility shell safe-command wrapper allowlist bypass via shell chaining
CVE-2026-57136 8.8 HIGH PraisonAI SandboxExecutor allowedCommands bypass via shell chaining
CVE-2026-57137 8.8 HIGH PraisonAI AgentLoop onToolCall approval runs after tool execution
CVE-2026-57112 8.3 HIGH PraisonAI ToolsMCPServer legacy SSE transport accepts attacker Host/Origin and exposes reg
CVE-2026-57134 8.2 HIGH PraisonAI MCPSecurity Basic/OAuth authentication policies accept invalid credentials witho
CVE-2026-57135 7.6 HIGH PraisonAI SandboxExecutor network-isolated mode does not block non-proxy-aware network cli

IV. Related Vulnerabilities

V. Comments for CVE-2026-57141

No comments yet


Leave a comment