PT-2026-55462 · Pypi · Langroid
CVE-2026-50181
·
Published
2026-07-02
·
Updated
2026-07-13
CVSS v3.1
7.1
High
| Vector | AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N |
Name of the Vulnerable Software and Affected Versions
Langroid versions prior to 0.64.0
Description
Langroid's
ReadFileTool and WriteFileTool fail to properly enforce the working-directory boundary defined by curr dir. While the tools change the process working directory to curr dir, they do not resolve or validate the user-supplied file path to ensure it remains within that directory. Consequently, a tool caller can use path traversal sequences, such as ../, to read or write files outside the intended project or workspace directory. This issue affects applications that expose these file tools to LLM agents, user-controlled tool calls, or delegated coding agents. The vulnerability is located within the langroid/agent/tools/file tools.py and langroid/utils/system.py components.Recommendations
Update to version 0.64.0.
As a temporary mitigation, restrict the use of the
file path parameter in ReadFileTool and WriteFileTool to prevent the use of path traversal sequences.Exploit
Fix
Relative Path Traversal
Path traversal
Found an issue in the description? Have something to add? Feel free to write us 👾
Related Identifiers
Affected Products
Langroid