PT-2026-61799 · Praisonai · Praisonai
CVE-2026-57145
·
Published
2026-06-18
·
Updated
2026-07-23
CVSS v3.1
9.1
Critical
| Vector | AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N |
Name of the Vulnerable Software and Affected Versions
PraisonAI (affected versions not specified)
Description
The
multiedit tool in src/praisonai/praisonai/tools/multiedit.py allows arbitrary file read and write operations because it lacks path validation, workspace boundary checks, and protected path guards. An attacker who can influence the filepath parameter—through crafted prompts, user input in chat bots, or malicious YAML workflow configurations—can read sensitive files such as SSH keys and cloud credentials, or overwrite arbitrary files on the filesystem to achieve privilege escalation.Recommendations
Implement a
validate path function to reject paths containing .., resolve symlinks using os.path.realpath, and ensure the resolved path is within the workspace using os.path.commonpath.
Add protected path guards to prevent access to sensitive files like .env, .git, and .ssh.
Apply the validate path function to the filepath parameter before any open() call.
Add the @require approval(risk level="high") decorator to the multiedit function.
As a temporary mitigation, restrict the use of the multiedit tool or disable auto approve tools in chat bot deployments.Fix
Path traversal
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Praisonai