RCE in Infiniflow Infiniflow/ragflow
CVE-2024-10131
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.
Vulnerability class: RCE (Remote Code Execution)
EPSS: 0.011 (65.1th percentile) — read the EPSS interpretation.
CVSS v3 metric
CVSS v3 base score 8.8 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.
Affected products
- Infiniflow Infiniflow/ragflow — versions unspecified
- Infiniflow Ragflow — versions 0.11.0
Weakness classification (CWE)
Public proof-of-concept exploits
References
- security@huntr.dev (Exploit, Third Party Advisory)
Frequently asked questions
- What is CVE-2024-10131?
- CVE-2024-10131 is a high-severity vulnerability in Infiniflow Infiniflow/ragflow, classified under Code Injection. CVSS score: 8.8/10. Published 2024-10-19.
- How severe is CVE-2024-10131?
- High severity. CVSS v3 base score is 8.8 out of 10.
- Is CVE-2024-10131 known to be exploited?
- 1 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.