CVE-2024-10131CWE-94

Remote Code Execution in infiniflow/ragflow

High · published October 19, 2024

CVSS v3.0
8.8
EPSS
1%
Percentile
66.5
In the wild
Unconfirmed
What it is

The `add_llm` function in `llm_app.py` in infiniflow/ragflow version 0.11.0 contains a remote code execution (RCE) vulnerability. The function uses user-supplied input `req['llm_factory']` and `req['llm_name']` to dynamically instantiate classes from various model dictionaries. This approach allows an attacker to potentially execute arbitrary code due to the lack of comprehensive input validation or sanitization. An attacker could provide a malicious value for 'llm_factory' that, when used as an index to these model dictionaries, results in the execution of arbitrary code.

The record
Technical detail
CVSS v3.0
8.8 · HIGH
Vector
CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.01144 · 66.5th percentile
Weakness
CWE-94 · Improper Control of Generation of Code ('Code Injection')
Published
2024-10-19T03:50Z
EPSS history
Timeline
  • 19 OCT 03:50Z
    Remote Code Execution in infiniflow/ragflow
    cvelistv5