{"id":"CVE-2025-46725","published":"2025-05-20T17:24:31Z","modified":"2025-05-20T17:53:02Z","title":"Langroid has a Code Injection vulnerability in LanceDocChatAgent through vector_store","vendor":"langroid","product":"langroid","tier":"tail","description":{"text":"Langroid is a Python framework to build large language model (LLM)-powered applications. Prior to version 0.53.15, `LanceDocChatAgent` uses pandas eval() through `compute_from_docs()`. As a result, an attacker may be able to make the agent run malicious commands through `QueryPlan.dataframe_calc]`) compromising the host system. Langroid 0.53.15 sanitizes input to the affected function by default to tackle the most common attack vectors, and added several warnings about the risky behavior in the project documentation.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.1,"severity":"HIGH","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00543,"percentile":0.46538,"provenance":"source"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"references":[{"url":"https://github.com/langroid/langroid/security/advisories/GHSA-22c2-9gwg-mj59","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/langroid/langroid/commit/0d9e4a7bb3ae2eef8d38f2e970ff916599a2b2a6","tags":["x_refsource_MISC"]}],"priority":{"score":15.0,"factors":[{"name":"EPSS percentile","points":9.31},{"name":"CVSS severity","points":5.67}]},"vendorSlug":"langroid","affectedVersions":[{"vendor":"langroid","product":"langroid","versions":["< 0.53.15"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"total","timestamp":"2025-05-20T17:52:58.111561Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"langroid","vulnerableRanges":["<0.53.15"],"patched":["0.53.15"],"from":["GHSA-22c2-9gwg-mj59","PYSEC-2026-1531"],"provenance":"source"}],"summary":{"text":"Langroid, a Python framework for building LLM-powered applications, contains a code injection flaw in the LanceDocChatAgent component, where the vector_store query path passes input to pandas eval() via compute_from_docs(). An attacker with network access and no authentication or user interaction could cause the agent to execute arbitrary commands on the host through the QueryPlan dataframe_calc field, with the default input sanitization being the only barrier.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:31:06Z"},"euvd":{"id":"EUVD-2025-15951","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-langroid-cve-2025-46726","parents":[{"from":"CVE-2025-46726","to":"CVE-2025-46725","relation":"successor","confidence":"high","kind":"lineage","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:langroid","fromFixed":"0.53.4","toFixed":"0.53.15","daysApart":15},{"kind":"same-code","provenance":"machine","files":["langroid/agent/special/table_chat_agent.py"],"commits":["https://github.com/langroid/langroid/commit/0d9e4a7bb3ae2eef8d38f2e970ff916599a2b2a6","https://github.com/langroid/langroid/commit/36e7e7db4dd1636de225c2c66c84052b1e9ac3c3"],"basis":"shared function","functions":["pandas_eval"]}]}],"children":[{"from":"CVE-2025-46725","to":"CVE-2026-25481","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["langroid/utils/pandas_utils.py"],"commits":["https://github.com/langroid/langroid/commit/0d9e4a7bb3ae2eef8d38f2e970ff916599a2b2a6","https://github.com/langroid/langroid/commit/30abbc1a854dee22fbd2f8b2f575dfdabdb603ea"],"basis":"rarely changed file"}]}],"packageHistory":[{"cve":"CVE-2025-46726","published":"2025-05-05","fixed":"0.53.4","kev":false},{"cve":"CVE-2025-46724","published":"2025-05-20","fixed":"0.53.15","kev":false},{"cve":"CVE-2025-46725","published":"2025-05-20","fixed":"0.53.15","kev":false},{"cve":"CVE-2026-25481","published":"2026-02-04","fixed":"0.59.32","kev":false},{"cve":"CVE-2026-25879","published":"2026-06-01","fixed":"0.63.0","kev":false},{"cve":"CVE-2026-50180","published":"2026-07-09","fixed":"0.64.0","kev":false}],"package":"PyPI:langroid"}}