{
  "id": "CVE-2026-50181",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-50181",
  "published_at": "2026-07-09T23:44:46.559Z",
  "title": "Langroid: Path traversal in the file tools allows read/write outside configured current directory",
  "vendor": "langroid",
  "product": "langroid",
  "cvss": {
    "score": 7.1,
    "source": "cna",
    "vector": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "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.",
  "cwe": "CWE-22",
  "cvss_by_source": {
    "cna": 7.1
  },
  "repos": [
    {
      "repo": "chaitanyagarware/CVE-2026-50181",
      "url": "https://github.com/chaitanyagarware/CVE-2026-50181",
      "created_at": "2026-07-09T00:30:51Z",
      "first_seen_at": "2026-11-14T14:50:35.824Z",
      "stars": 1,
      "is_poc": "no",
      "kind": "writeup",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2022-01-12T05:28:02Z"
    }
  ],
  "remediation": {
    "affected": [
      {
        "vendor": "langroid",
        "product": "langroid",
        "ranges": [
          "\u003c 0.64.0"
        ],
        "fixed_in": [
          "0.64.0"
        ]
      }
    ],
    "upgrade": [
      "Upgrade langroid to 0.64.0 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/langroid/langroid/security/advisories/GHSA-fg23-3346-88f5"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/langroid/langroid/commit/56e2756ecab70a70a7e6edbee2f2187b8484683e"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
