PraisonAIAgents: Path Traversal via Unvalidated Glob Pattern in list_files Bypasses Workspace Boundary
CVE-2026-40152 · GHSA-7j2f-xc8p-fjmq · published 2026-04-10
- Severity
- Medium
- CVSS score
- 5.3
- Chance of exploitation (EPSS)
- 0.42%
- Fixed in
- 1.5.128
- Exploitation Public proof of concept
- Automatable Yes
- Technical impact Partial
- CISA SSVC
An attacker who can influence the LLM agent's tool calls (via direct prompting or prompt injection in processed documents) can: 1. Enumerate arbitrary files on the filesystem — discover sensitive files, application configuration, SSH keys, credentials files, and database files by their existence and metadata. 2. Perform reconnaissance — map the server's directory structure, identify installed software (by checking /usr/bin/, /opt/), discover user accounts (via /home/), and find deployment paths. 3.
Upgrade praisonaiagents to 1.5.128 or later.
Add validation to reject .. segments in the glob pattern and verify each matched file is within the workspace boundary:
| Package | Registry | Affected | Fixed in |
|---|---|---|---|
| praisonaiagents | PyPI | < 1.5.128 | 1.5.128 |
- CriticalMCP Path Traversal Allows Full-Filesystem Read and JWT Secret Exfiltration Leading to Account Takeoverlangflow, langflow-base
- Critical@zereight/mcp-gitlab: Unauthenticated arbitrary file read via `upload_markdown` enables PAT exfiltration and full account takeover@zereight/mcp-gitlab
- CriticalFlowise RCE via SQL Database Chain Nodeflowise, flowise-components
- CriticalLangroid: SQLChatAgent dangerous-function blocklist can be bypassed with quoted or schema-qualified pg_read_file callslangroid
- Criticalfast-mcp-telegram: Bearer token path traversal bypasses reserved Telegram session protectionfast-mcp-telegram
- CriticalMCP Toolbox HTTP tool path parameters allow traversal to unintended endpointsgithub.com/googleapis/mcp-toolbox
- CriticalPraisonAI: CodeAgent Executes LLM-Generated Code Without Sandboxing and Leaks All Environment Secretspraisonaiagents
- CriticalPraisonAI: Unauthenticated RCE via Jobs API + Approval Bypasspraisonaiagents, praisonai
- CriticalPraisonAI: MCP SSE transport binds 0.0.0.0 with no authentication and no Origin validation; bundled SecurityConfig is never wired inpraisonaiagents
- CriticalPraisonAI AgentTeam.launch exposes unauthenticated remote agent listing and invocation endpointspraisonaiagents
- CriticalPraisonAI vulnerable to sandbox escape via `print.__self__` builtins module leak in `execute_code` (subprocess mode)praisonaiagents, praisonai
- CriticalPraisonAI Browser Server allows unauthenticated WebSocket clients to hijack connected extension sessionspraisonaiagents, praisonai
The impact, patch and workaround text comes from the advisory, shortened (GitHub Advisory Database, CC BY 4.0). Proof-of-concept and reproduction sections and code are left out; the original advisory has them.