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

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2026-40111— PraisonAIAgents has an OS Command Injection via shell=True in Memory Hooks Executor (memory/hooks.py)

Quick assessment

Affected
MervinPraison PraisonAIAgents
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是Mervin Praison个人开发者的一个低代码多智能体协作框架。 PraisonAI 1.5.128之前版本存在操作系统命令注入漏洞,该漏洞源于内存钩子执行器将用户控制的命令字符串直接传递给subprocess.run且未进行清理,可能导致shell命令注入。

AI Predicted 9.8 Difficulty: Easy EPSS 0.34% · P25
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-40111

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
PraisonAIAgents has an OS Command Injection via shell=True in Memory Hooks Executor (memory/hooks.py)
Source: CVE Program / CVE List V5
Vulnerability Description
PraisonAIAgents is a multi-agent teams system. Prior to 1.5.128, he memory hooks executor in praisonaiagents passes a user-controlled command string directly to subprocess.run() with shell=True at src/praisonai-agents/praisonaiagents/memory/hooks.py. No sanitization is performed and shell metacharacters are interpreted by /bin/sh before the intended command executes. Two independent attack surfaces exist. The first is via pre_run_command and post_run_command hook event types registered through the hooks configuration. The second and more severe surface is the .praisonai/hooks.json lifecycle configuration, where hooks registered for events such as BEFORE_TOOL and AFTER_TOOL fire automatically during agent operation. An agent that gains file-write access through prompt injection can overwrite .praisonai/hooks.json and have its payload execute silently at every subsequent lifecycle event without further user interaction. This vulnerability is fixed in 1.5.128.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H
Source: CVE Program / CVE List V5
Vulnerability Type
OS命令中使用的特殊元素转义处理不恰当(OS命令注入)
Source: CVE Program / CVE List V5
Vulnerability Title
PraisonAI 操作系统命令注入漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
PraisonAI是Mervin Praison个人开发者的一个低代码多智能体协作框架。 PraisonAI 1.5.128之前版本存在操作系统命令注入漏洞,该漏洞源于内存钩子执行器将用户控制的命令字符串直接传递给subprocess.run且未进行清理,可能导致shell命令注入。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
MervinPraison PraisonAIAgents < 1.5.128 -

II. Public POCs for CVE-2026-40111

# 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-40111

请登录查看更多情报信息。

Vendor Advisories for CVE-2026-40111 (1)

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

CVE-2026-40088 9.7 CRITICAL Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
CVE-2026-40154 9.3 CRITICAL PraisonAI Affected by Untrusted Remote Template Code Execution
CVE-2026-40113 8.4 HIGH PraisonAI has an Argument Injection into Cloud Run Environment Variables via Unsanitized C
CVE-2026-40149 7.9 HIGH PraisonAI has an Unauthenticated Allow-List Manipulation Bypasses Agent Tool Approval Safe
CVE-2026-40150 7.7 HIGH PraisonAIAgents has SSRF and Local File Read via Unvalidated URLs in web_crawl Tool
CVE-2026-40116 7.5 HIGH PraisonAI's Unauthenticated WebSocket Endpoint Proxies to Paid OpenAI Realtime API Without
CVE-2026-40153 7.4 HIGH PraisonAIAgents Affected by Environment Variable Secret Exfiltration via os.path.expandvar
CVE-2026-40114 7.2 HIGH PraisonAI has Server-Side Request Forgery via Unvalidated webhook_url in Jobs API
CVE-2026-40148 6.5 MEDIUM PraisonAI Affected by Decompression Bomb DoS via Recipe Bundle Extraction Without Size Lim
CVE-2026-40115 6.2 MEDIUM PraisonAI has an Unrestricted Upload Size in WSGI Recipe Registry Server Enables Memory Ex
CVE-2026-40117 6.2 MEDIUM PraisonAIAgents Affected by Arbitrary File Read via read_skill_file Missing Workspace Boun
CVE-2026-40112 5.4 MEDIUM PraisonAI has Stored XSS via Unsanitized Agent Output in HTML Rendering (nh3 Not a Require
CVE-2026-40151 5.3 MEDIUM PraisonAI Affected by Unauthenticated Information Disclosure of Agent Instructions via /ap
CVE-2026-40152 5.3 MEDIUM PraisonAIAgents has a Path Traversal via Unvalidated Glob Pattern in list_files Bypasses W

IV. Related Vulnerabilities

V. Comments for CVE-2026-40111

No comments yet


Leave a comment