Remote Code Execution in infiniflow/ragflow
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2024-10131
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 3 Nov 2026, 18:10 UTC · Revision 1
Source evidence
Remote Code Execution in infiniflow/ragflow
core-osv · Original sourcePublished 19 Oct 2024, 03:50 UTC
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.
osv:CVE-2024-10131
Complete source record
{
"id": "f8513099a21c3cb811591e709c8f91c5c186332f2ddfb2c025ed2b5bbcb45ef6",
"url": "https://osv.dev/vulnerability/CVE-2024-10131",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "Remote Code Execution in infiniflow/ragflow",
"summary": "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.",
"evidence": "osv:CVE-2024-10131",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2024-10131",
"aliases": [
"CVE-2024-10131"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/infiniflow/ragflow",
"type": "GIT",
"events": [
{
"introduced": "2f33ec7ad07db037482ef5cfa58df1b3dd0727a5"
},
{
"last_affected": "2f33ec7ad07db037482ef5cfa58df1b3dd0727a5"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:infiniflow:ragflow:0.11.0:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0.11.0"
},
{
"last_affected": "0.11.0"
}
],
"source": "CPE_STRING"
}
]
}
}
],
"versions": [
"0.11.0",
"v0.11.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-10131.json"
}
}
],
"modified": "2026-10-28T02:30:31.207286891Z",
"provider": "osv",
"references": [
"https://huntr.com/bounties/42ae0b27-e851-4b58-a991-f691a437fbaa",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/10xxx/CVE-2024-10131.json",
"https://nvd.nist.gov/vuln/detail/CVE-2024-10131"
],
"provider_metadata": {
"cwe_ids": [
"CWE-94"
],
"cna_assigner": "@huntr_ai",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/10xxx/CVE-2024-10131.json"
}
},
"related_cves": [
{
"value": "CVE-2024-10131",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 498264,
"published_at": "2024-10-19T03:50:09.553+00:00"
}