CVE-2025-46725CWE-94

Langroid has a Code Injection vulnerability in LanceDocChatAgent through vector_store

High · published May 20, 2025

CVSS v4.0
8.1
EPSS
1%
Percentile
44.3
In the wild
Unconfirmed
What it is

⚡ A sneaky flaw in Langroid could let an attacker run malicious commands, turning your language model into a puppet on strings they control! 🔥 Think of it like a restaurant chef who never checks the menu before cooking; if a rogue diner slips in a dangerous recipe, the chef unwittingly serves it up. In this case, your `LanceDocChatAgent` could execute commands that were never on the original order! If exploited, an attacker could gain complete control over the host system, leading to data breaches, unauthorized changes, or even complete system compromise. Imagine your language model spouting commands from a malicious source, and all your hard work going up in smoke!

Put simply

Think of it like a restaurant chef who never checks the menu before cooking; if a rogue diner slips in a dangerous recipe, the chef unwittingly serves it up. In this case, your `LanceDocChatAgent` could execute commands that were never on the original order! This vulnerability arises because the `LanceDocChatAgent` uses pandas eval() through `compute_from_docs()`, allowing attackers to inject and run arbitrary commands via crafted input. Prior to version 0.53.15, this lack of input sanitization made exploitation a breeze.

What to do

If exploited, an attacker could gain complete control over the host system, leading to data breaches, unauthorized changes, or even complete system compromise. Imagine your language model spouting commands from a malicious source, and all your hard work going up in smoke! Upgrade Langroid to version 0.53.15 or later to ensure that input is sanitized. Additionally, review the project documentation for new warnings about risky behavior and implement best practices to safeguard your applications. You've got this! By taking these steps, you’ll fortify your Langroid applications and ensure smooth sailing ahead! 🛡️

The record
Technical detail
CVSS v4.0
8.1 · HIGH
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
EPSS
0.00534 · 44.3th percentile
Weakness
CWE-94 · Improper Control of Generation of Code ('Code Injection')
Published
2025-05-20T17:24Z
EPSS history
Timeline
  • 20 MAY 17:24Z
    Langroid has a Code Injection vulnerability in LanceDocChatAgent through vector_store
    cvelistv5