HighVulnerability
GHSA-fg23-3346-88f5: Langroid: Path traversal in the file tools allows read/write outside configured current directory
- Identifiers
- CVE-2026-50181GHSA-fg23-3346-88f5
- Published
- Record updated
- Affected
- langroid <= 0.63.0
- Fixed in
- 0.64.0
- released May 28, 2026, 35 days before disclosure
- Known exploitation
- Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
- EPSS
- 0.2%
Summary
Langroid's ReadFileTool and WriteFileTool in langroid/agent/tools/file_tools.py only change the process working directory to curr_dir and never check that the resolved file_path stays inside it. A tool caller can pass traversal sequences such as ../secret.txt to read, or ../written_by_tool.txt to write, files outside the configured directory. The source's local PoC confirmed both read and write escapes against the current repository checkout.
Mitigation
The source does not state a fix yet. Check the original advisory for updates.
Affected packages in the Exposure Registry
Matched by package name and ecosystem. Each entry shows whether the package delegates to a language model and how many tracked packages depend on it.
- langroidPyPILLM dependency since 2023-07-14
Related items
- MediumCVE-2026-138033: mcp-video-analyzer server-side request forgery via video URL inputsSimilar attack · NVD/CVE Database
- MediumSwitzerland Confirms AI-Assisted Cyberattacks Breached Critical Infrastructure OperatorsSimilar attack · The Hacker News
- MediumCVE-2026-137668: ONNX ONNXMLTools cross site scripting in visualize_model via producer_nameSimilar attack · NVD/CVE Database
- MediumCVE-2026-137667: ONNX ONNXMLTools cross site scripting in Model VisualizationSimilar attack · NVD/CVE Database
- InfoEvaluating transformer based language model robustness under low rate training data poisoningSimilar attack · OpenAlex (peer-reviewed AI security)