CVE-2024-10131

Public Exploit
Remote Code Execution in infiniflow/ragflow

Description

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.

Category

8.8
CVSS
Severity: High
CVSS 3.1 •
CVSS 3.0 •
EPSS 0.68% Top 30%
Third-Party Advisory huntr.com
Affected: infiniflow infiniflow/ragflow
Published at:
Updated at:

References

Frequently Asked Questions

What is the severity of CVE-2024-10131?
CVE-2024-10131 has been scored as a high severity vulnerability.
How to fix CVE-2024-10131?
To fix CVE-2024-10131, make sure you are using an up-to-date version of the affected component(s) by checking the vendor release notes. As for now, there are no other specific guidelines available.
Is CVE-2024-10131 being actively exploited in the wild?
It is possible that CVE-2024-10131 is being exploited or will be exploited in a near future based on public information. According to its EPSS score, there is a ~1% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
What software or system is affected by CVE-2024-10131?
CVE-2024-10131 affects infiniflow infiniflow/ragflow.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.