CVE-2025-46725
Python vulnerability analysis and mitigation

Overview

Langroid, a Python framework for building large language model (LLM)-powered applications, was found to contain a critical vulnerability (CVE-2025-46725) discovered on May 20, 2025. The vulnerability affects versions prior to 0.53.15, specifically in the LanceDocChatAgent component which uses pandas eval() through computefromdocs() function. This security flaw is classified as CWE-94 (Improper Control of Generation of Code - 'Code Injection') with a CVSS v4.0 Base Score of 8.1 (HIGH) (GitHub Advisory, NVD).

Technical details

The vulnerability stems from the use of pandas eval() in the computefromdocs() function within the vectorstore/base.py module. The security flaw allows arbitrary code execution through the QueryPlan.dataframe_calc parameter. The vulnerability is rated with a CVSS v4.0 Base Score of 8.1 (HIGH) with the vector string 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, indicating high severity across confidentiality, integrity, and availability impacts (NVD, Wiz).

Impact

When exploited, this vulnerability could allow an attacker to execute malicious commands through the QueryPlan.dataframe_calc parameter, potentially leading to system compromise. The high severity score indicates that successful exploitation could result in significant impact to the confidentiality, integrity, and availability of the affected system (GitHub Advisory, Wiz).

Mitigation and workarounds

The vulnerability has been patched in Langroid version 0.53.15. The fix includes input sanitization by default to prevent common attack vectors and adds warnings about risky behavior in the project documentation. The patch implements a CommandValidator class that enforces security policies and validates input expressions before execution. Users are strongly advised to upgrade to version 0.53.15 or later (GitHub Commit, GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related Python vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-67511CRITICAL9.6
  • PythonPython
  • cai-framework
NoNoDec 11, 2025
CVE-2025-13780CRITICAL9.1
  • PythonPython
  • pgadmin4
NoYesDec 11, 2025
CVE-2025-67644HIGH7.3
  • PythonPython
  • langgraph-checkpoint-sqlite
NoYesDec 11, 2025
CVE-2025-67720MEDIUM6.5
  • PythonPython
  • pyrofork
NoYesDec 11, 2025
CVE-2025-67485MEDIUM5.3
  • PythonPython
  • mad-proxy
NoNoDec 10, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management