Skip to content
HighVulnerability

GHSA-ch89-h4r2-c8f8: PraisonAI: [Path Traversal] agent tools escape the configured workspace via symlinks

Published
Record updated
View JSON
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.