CVE-2026-50181: Langroid - Path Traversal
- Cve: CVE-2026-50181
- Name: Langroid - Path Traversal
- Description: 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.
- Impact: Attackers can read or write arbitrary files outside the intended directory, potentially leading to data exposure or modification.
- Remediation: Update to version 0.64.0 or later.
- Vulnerability type: path_traversal
- Vulnerability impact: file_system_read, file_system_write, information_disclosure, data_tampering
- Requirement type: none
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 7.1
- Cvss vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
- Epss score: 0.00184
- Epss percentile: 0.07841
- Assignee: [email protected]
- Published at: 2026-07-10T00:16:33Z
- Age in days: 137
- Modified at: 2026-07-14T02:16:55Z
- Patch available: yes
- Public exploits total: 1
- References total: 2
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-50181
- Nvd status: deferred
- Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-22 | Improper Limitation of a Pathname to a Restricted Directory |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://github.com/chaitanyagarware/CVE-2026-50181 | poc-in-github | 2026-07-09 |
References
| Url | Source | Tags |
|---|---|---|
| https://github.com/langroid/langroid/commit/56e2756ecab70a70a7e6edbee2f2187b8484683e | nvd | |
| https://github.com/langroid/langroid/security/advisories/GHSA-fg23-3346-88f5 | nvd |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| langroid:langroid | < 0.64.0 | no | cna_alias_text | /v1/products/langroid/langroid |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| langroid/langroid | commit, fix, package, security_advisory | yes | /v1/repositories/langroid/langroid |
Index
- Repositories: 1
- Repositories high signal: 1
- Checked, none or zero: packages
Exploitation
- Public exploit: yes
- Public exploit count: 1
- Public exploit first date: 2026-07-09
- Authentication required: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, remote
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts