HighVulnerability
GHSA-ch89-h4r2-c8f8: PraisonAI: [Path Traversal] agent tools escape the configured workspace via symlinks
- Identifiers
- CVE-2026-55540GHSA-ch89-h4r2-c8f8
- Published
- Record updated
- Affected
- PraisonAI < 4.6.58
- Fixed in
- 4.6.58
- released June 13, 2026, 73 days before disclosure
- Known exploitation
- Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
- EPSS
- 0.4%
Summary
PraisonAI's `praisonai.code` tool wrappers, exported as `CODE_TOOLS`, enforce a `workspace` boundary unsoundly. The containment helper `is_path_within_directory()` uses `os.path.abspath()` rather than resolving symlinks, so a symlink inside the workspace pointing outside passes the check and `open()` follows it. `list_files()` never calls the helper, and `execute_command()` and `code_execute_command()` never validate `cwd`, letting an attacker who can influence an agent read, write, list and execute outside the configured workspace, limited only by the process user's filesystem permissions.
Mitigation
The source does not state a fix yet. Check the original advisory for updates.
Related items
- MediumCVE-2026-121936: easyVoice server-side request forgery through openaiBaseUrl in /api/v1/ttsSimilar attack · NVD/CVE Database
- MediumCVE-2026-118628: MLflow get-artifacts server-side request forgery information disclosureSimilar attack · NVD/CVE Database
- HighCVE-2026-118625: MLflow Tracking Server privilege escalation via get_endpointsSimilar attack · NVD/CVE Database
- InfoWhen trust becomes the payload: Inside the threats, etc quarterly reportSimilar attack · Elastic Security Labs
- MediumCritical Langflow flaws enable authentication bypass and RCESimilar attack · CSO Online