PraisonAI: Arbitrary File Read via `@file:` Mention Path Traversal
CVE-2026-57129 · GHSA-2rcg-mm5h-xchx · published 2026-06-18 · updated 2026-07-20
- Severity
- High
- CVSS score
- 7.5
- Chance of exploitation (EPSS)
- 0.53%
- Fixed in
- 1.6.59
- Exploitation Public proof of concept
- Automatable Yes
- Technical impact Partial
- CISA SSVC
An attacker who can inject @file: mentions into agent prompts (via chat messages in Telegram/Discord/Slack bots, user input in web UI, or YAML workflow configurations) can read any file accessible to the process user, including: Secrets and credentials: .env files, ~/.aws/credentials, ~/.ssh/id_rsa, API keys Configuration files: Database passwords, JWT secrets, OAuth tokens Source code: Application internals, database schemas System files: /etc/passwd, /etc/shadow (if process has read access) This is particularly dangerous in bot deployments where auto_approve_tools defaults to True and untrusted users can send messages containing @file: mentions.
Upgrade praisonaiagents to 1.6.59 or later.
result = parser._process_file_mention('/etc/hostname') print(f'Absolute path read: {result[:80]}...') 1. Remove the absolute path fallback. 2. Add symlink resolution via .resolve() to prevent symlink-based traversal. 3. Add a protected path guard (.env, .git, .ssh, keys, credentials). 4. Apply the same os.path.commonpath pattern used by skill_tools.py.
| Package | Registry | Affected | Fixed in |
|---|---|---|---|
| praisonaiagents | PyPI | <= 1.6.48 | 1.6.59 |
- 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.