{"cve":"CVE-2026-50181","nvd":{"published":"2026-07-10T00:16:33.340","modified":"2026-07-14T02:16:55.357","status":"Deferred","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","score":7.1},"cwes":["CWE-22","CWE-23"],"references":["https://github.com/langroid/langroid/commit/56e2756ecab70a70a7e6edbee2f2187b8484683e","https://github.com/langroid/langroid/security/advisories/GHSA-fg23-3346-88f5","https://github.com/langroid/langroid/security/advisories/GHSA-fg23-3346-88f5"],"products":[],"source":"nvd","synced_at":"2026-10-19T22:44:02.134301115+00:00"},"epss":{"cve":"CVE-2026-50181","score":0.00184,"percentile":0.07952,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-fg23-3346-88f5","url":"https://osv.dev/vulnerability/GHSA-fg23-3346-88f5","summary":"Langroid: Path traversal in the file tools allows read/write outside configured current directory","modified":"2026-07-13T16:42:49.945202219Z","packages":[{"ecosystem":"PyPI","name":"langroid","purl":"pkg:pypi/langroid","ranges":["<0.64.0"],"fixed":["0.64.0"]}]},{"id":"PYSEC-2026-2578","url":"https://osv.dev/vulnerability/PYSEC-2026-2578","summary":"Langroid: Path traversal in the file tools allows read/write outside configured current directory","modified":"2026-07-13T16:31:49.879805389Z","packages":[{"ecosystem":"PyPI","name":"langroid","purl":"pkg:pypi/langroid","ranges":["<0.64.0"],"fixed":["0.64.0"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}