Home / langroid / langroid / CVE-2026-50181
CVE-2026-50181: is it exploited, and which versions of langroid are affected and fixed?
CVE-2026-50181 is a path traversal (reading or writing files outside the intended folder) vulnerability in langroid. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 17:09 UTC). Affected: langroid before 0.64.0 (GitHub advisory GHSA-fg23-3346-88f5). Fixed in 0.64.0 (GitHub advisory GHSA-fg23-3346-88f5). Severity: High (7.1, CVSS 3.1, from GitHub_M).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 17:09 UTC, CVE record November 19, 2026, 07:07 UTC and NVD November 19, 2026, 07:09 UTC.
What is CVE-2026-50181?
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.
From the CVE record by GitHub_M, last updated July 14, 2026, 01:25 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| langroid | langroid | < 0.64.0 |
As the CVE record by GitHub_M states it, last updated July 14, 2026. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| PyPI | langroid | < 0.64.0 | 0.64.0 | GHSA-fg23-3346-88f5 |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated July 2, 2026. Summary: Langroid: Path traversal in the file tools allows read/write outside configured current directory.
How severe is CVE-2026-50181?
| Score | Version | Vector | Source |
|---|---|---|---|
| High 7.1 | CVSS 3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N | GitHub_M |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2026-50181 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: poc; automatable: no; technical impact: total (CISA ADP, July 14, 2026)
- EPSS
- 0.17% probability of exploitation activity in the next 30 days, percentile 7.0 (FIRST EPSS, scores of December 3, 2026)
What kind of flaw is it?
Where are the vendor advisories and references?
- https://github.com/langroid/langroid/security/advisories/GHSA-fg23-3346-88f5 x_refsource_CONFIRM
- https://github.com/langroid/langroid/commit/56e2756ecab70a70a7e6edbee2f2187b8484683e x_refsource_MISC
When was it published, and where is the official record?
- Reserved
- June 3, 2026
- Published
- July 9, 2026, 23:44 UTC
- CVE record updated
- July 14, 2026, 01:25 UTC by GitHub_M
- NVD
- Deferred, last modified July 14, 2026, 02:16 UTC
- Last checked
- CVE list November 19, 2026, 07:07 UTC; NVD November 19, 2026, 07:09 UTC; KEV December 3, 2026, 17:09 UTC; EPSS December 3, 2026
- Official record
- cve.org · NVD
What other CVEs affect langroid?
- Jul 9, 2026CVE-2026-54771 langroid: failure to Sanitize Special Elements into a Different Plane
- Jul 9, 2026CVE-2026-54769 langroid: code injection (remote code execution)
- Jul 9, 2026CVE-2026-54760 langroid: path traversal (reading or writing files outside the intended folder)
- Jul 9, 2026CVE-2026-50180 langroid: path traversal (reading or writing files outside the intended folder)
- Jul 9, 2026CVE-2026-55615 langroid: injection
- Jun 1, 2026CVE-2026-25879 langroid: SQL injection
- Feb 4, 2026CVE-2026-25481 langroid: code injection (remote code execution)
- May 20, 2025CVE-2025-46725 langroid: code injection (remote code execution)
Questions about CVE-2026-50181
Is CVE-2026-50181 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 17:09 UTC. FIRST's EPSS gives it a 0.17% chance of exploitation activity in the next 30 days (scores of December 3, 2026).
Which versions of langroid are affected by CVE-2026-50181?
langroid before 0.64.0, per the GitHub advisory GHSA-fg23-3346-88f5. The tables above give every range the sources list.
Which version fixes CVE-2026-50181?
0.64.0, per the GitHub advisory GHSA-fg23-3346-88f5. Check the vendor's advisory before you rely on it.
How severe is CVE-2026-50181?
High (7.1, CVSS 3.1, from GitHub_M). The severity table above shows each score with its source.
Where is the official record of CVE-2026-50181?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.