# CVE-2025-46725: Langroid has a Code Injection vulnerability in LanceDocChatAgent through vector_store

- Severity: High 8.1 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.54%, higher than 47% of CVEs (2026-12-01)
- Published: 2025-05-20T17:24:31.618Z
- Modified: 2026-07-07T17:56:12.736Z
- Also known as: GHSA-22c2-9gwg-mj59, PYSEC-2026-1531
- Weaknesses: CWE-94
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- langroid langroid: < 0.53.15; before 0.53.15
- langroid (PyPI): before 0.53.15

## Every score

- GitHub_M: CVSS:4.0 8.1 High `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`
- GitHub: CVSS:4.0 High `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`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- PyPA Advisory Database: CVSS:4.0 `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`

## References

- <https://github.com/langroid/langroid/security/advisories/GHSA-22c2-9gwg-mj59> (vendor-advisory, web)
- <https://github.com/langroid/langroid/commit/0d9e4a7bb3ae2eef8d38f2e970ff916599a2b2a6> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-46725> (advisory)
- <https://github.com/langroid/langroid> (package)
- <https://pypi.org/project/langroid> (package)
- <https://github.com/advisories/GHSA-22c2-9gwg-mj59> (advisory)

## Sources

- CVE List: [CVE-2025-46725](https://www.cve.org/CVERecord?id=CVE-2025-46725), CVE Terms of Use, modified 2025-05-20
- GitHub Advisory Database: [GHSA-22c2-9gwg-mj59](https://github.com/advisories/GHSA-22c2-9gwg-mj59), CC-BY-4.0, modified 2026-07-07
- NVD: [CVE-2025-46725](https://nvd.nist.gov/vuln/detail/CVE-2025-46725), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-1531](https://osv.dev/vulnerability/PYSEC-2026-1531), CC-BY-4.0, modified 2026-07-07

---

Page: https://cve.day/CVE-2025-46725 · Whole record: https://cve.day/CVE-2025-46725.json · Rebuilt by cve.day 2026-11-25T22:58:58.325Z
