CVE-2025-46725

Langroid has a Code Injection vulnerability in LanceDocChatAgent through vector_store

Published May 20, 2025 CVSS 4.0 · 8.1 High EPSS < 1% KEV · Not listed
Description
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2025-15951 Langroid has a Code Injection vulnerability in LanceDocChatAgent through vector_store
Github GHSA Github GHSA GHSA-22c2-9gwg-mj59 Langroid has a Code Injection vulnerability in LanceDocChatAgent through vector_store
History
Type Values Removed Values Added
CPEs cpe:2.3:a:langroid:langroid:*:*:*:*:*:*:*:*
Metrics cvssV3_1

{'score': 9.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description 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.
Title Langroid has a Code Injection vulnerability in LanceDocChatAgent through vector_store
Weaknesses CWE-94
References
Metrics cvssV4_0

{'score': 8.1, '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'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
May 20, 2025, 5:53 PM
Reserved
Apr 28, 2025, 8:56 PM
Status
Analyzed
Published
May 20, 2025, 6:15 PM
Modified
Jun 17, 2026, 9:26 AM