Track vulnerabilities like this one. Sign up free to get alerted when software you use is affected.
7.1

CVE-2026-50181: Langroid: Files can be accessed outside the intended directory

CVE-2026-50181 · published 3 months ago
Summary

Langroid's file tools can be tricked into reading or writing files outside the project directory. This is a concern if Langroid is used by untrusted users or agents, as it could allow them to access sensitive files. To fix this, Langroid's developers should ensure that file paths are properly validated and restricted to the intended directory.

What to do
  • Update prasad chalasani langroid to version 0.64.0.
Affected software
Ecosystem VendorProductAffected versions
pip prasad chalasani langroid <= 0.63.0
Fix: upgrade to 0.64.0
Original advisory text
Langroid: Path traversal in the file tools allows read/write outside configured current directory
Langroid is a framework for building large-language-model-powered applications. Prior to version 0.64.0, Langroid's `ReadFileTool` and `WriteFileTool` appear to treat `curr_dir` as the intended working-directory boundary for file operations. However, the tools only change the process working directory to `curr_dir` and then operate on the user-supplied `file_path` without resolving and enforcing that the final path remains inside `curr_dir`. As a result, a tool caller can supply path traversal sequences such as `../secret.txt` to read files outside the configured current directory, or `../written_by_tool.txt` to write files outside that directory. This can impact applications that expose Langroid file tools to an LLM agent, user-controlled tool call, or delegated coding/documentation agent while relying on `curr_dir` to restrict file access to a project/workspace directory. Version 0.64.0 patches the issue.
Fix within
Internet-facing 14 days
Internal At next upgrade
  • Not known to be exploited
  • Needs hands-on effort to exploit
  • Gives an attacker full control
Severity
7.1 High
Exploitation
<1% chance of attack within 30 days
Type
CWE-22Path Traversal
CWE-23Relative Path Traversal
Timeline
Published9 Jul 2026
Updated3 Nov 2026
First seen2 Jul 2026
Sources
Track software like this
Free during beta