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

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

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

EPSS 0.03% · P9
Get alerts for future matching vulnerabilitiesLog 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: NVD (National Vulnerability Database)
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: NVD (National Vulnerability Database)
CVSS Information
N/A
Source: NVD (National Vulnerability Database)
Vulnerability Type
OS命令中使用的特殊元素转义处理不恰当(OS命令注入)
Source: NVD (National Vulnerability Database)
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

VendorProductAffected VersionsCPESubscribe
MervinPraisonPraisonAIAgents < 1.5.128 -

II. Public POCs for CVE-2026-40111

#POC DescriptionSource LinkShenlong Link
AI-Generated POCPremium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-40111

登录查看更多情报信息。

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

CVE-2026-400889.7 CRITICALImproper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
CVE-2026-401549.3 CRITICALPraisonAI Affected by Untrusted Remote Template Code Execution
CVE-2026-401138.4 HIGHPraisonAI has an Argument Injection into Cloud Run Environment Variables via Unsanitized C
CVE-2026-401497.9 HIGHPraisonAI has an Unauthenticated Allow-List Manipulation Bypasses Agent Tool Approval Safe
CVE-2026-401507.7 HIGHPraisonAIAgents has SSRF and Local File Read via Unvalidated URLs in web_crawl Tool
CVE-2026-401167.5 HIGHPraisonAI's Unauthenticated WebSocket Endpoint Proxies to Paid OpenAI Realtime API Without
CVE-2026-401537.4 HIGHPraisonAIAgents Affected by Environment Variable Secret Exfiltration via os.path.expandvar
CVE-2026-401147.2 HIGHPraisonAI has Server-Side Request Forgery via Unvalidated webhook_url in Jobs API
CVE-2026-401486.5 MEDIUMPraisonAI Affected by Decompression Bomb DoS via Recipe Bundle Extraction Without Size Lim
CVE-2026-401156.2 MEDIUMPraisonAI has an Unrestricted Upload Size in WSGI Recipe Registry Server Enables Memory Ex
CVE-2026-401176.2 MEDIUMPraisonAIAgents Affected by Arbitrary File Read via read_skill_file Missing Workspace Boun
CVE-2026-401125.4 MEDIUMPraisonAI has Stored XSS via Unsanitized Agent Output in HTML Rendering (nh3 Not a Require
CVE-2026-401515.3 MEDIUMPraisonAI Affected by Unauthenticated Information Disclosure of Agent Instructions via /ap
CVE-2026-401525.3 MEDIUMPraisonAIAgents 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