CVE-2026-40111: PraisonAIAgents has an OS Command Injection via shell=True in Memory Hooks Executor (memory/hooks.py)
Affects praisonaiagentsSource GCVE Database
Not known to be exploited · CVSS 9.3 Critical : upgrade to 1.5.128 as a priority.
Data as of 16 Nov 2026, 16:36 UTC
- Patch
- Available – fixed in 1.5.128
CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:HExploitation evidence
Disclosed: evidence found.
CVE published 9 Apr 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 15 Nov 2026.
What to do
Upgrade praisonaiagents to 1.5.128.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| PyPIpraisonaiagents | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A patch is available in praisonaiagents version 1.5.128 that addresses this vulnerability. Users should upgrade to this fixed version. Until patched, there is no effective workaround because the vulnerable code uses shell=True without sanitization. Restricting file-write access to the .praisonai/hooks.json file and limiting agent execution privileges can reduce risk but do not eliminate it.
Description
PraisonAIAgents contains a critical OS command injection vulnerability (CVE-2026-40111) in its memory hooks executor. The vulnerability arises because user-controlled command strings are passed directly to subprocess.run() with shell=True without any sanitization or filtering. This allows shell metacharacters to be interpreted, enabling arbitrary command execution. Two attack surfaces exist: hooks registered via configuration events and the lifecycle hooks.json file, which can be overwritten by an attacker with file-write access to execute commands silently during agent operation. A fix is available in version 1.5.128.
References
- github.com/MervinPraison/PraisonAI/security/advisories/GHSA-v7px-3835-7gjx (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2026-40111 (opens in a new tab)
- github.com/MervinPraison/PraisonAI (opens in a new tab)
- github.com/pypa/advisory-database/tree/main/vulns/praisonaiagents/PYSEC-2026-487.yaml (opens in a new tab)
- pypi.org/project/praisonaiagents (opens in a new tab)