{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2024-10131","assignerOrgId":"c09c270a-b464-47c1-9133-acb35b22c19a","state":"PUBLISHED","assignerShortName":"@huntr_ai","dateReserved":"2024-10-18T14:55:10.088Z","datePublished":"2024-10-19T03:50:09.553Z","dateUpdated":"2025-10-15T12:49:21.875Z"},"containers":{"cna":{"title":"Remote Code Execution in infiniflow/ragflow","providerMetadata":{"orgId":"c09c270a-b464-47c1-9133-acb35b22c19a","shortName":"@huntr_ai","dateUpdated":"2025-10-15T12:49:21.875Z"},"descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"infiniflow","product":"infiniflow/ragflow","versions":[{"version":"unspecified","status":"affected","versionType":"custom","lessThanOrEqual":"latest"}]}],"references":[{"url":"https://huntr.com/bounties/42ae0b27-e851-4b58-a991-f691a437fbaa"}],"metrics":[{"cvssV3_0":{"version":"3.0","attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"LOW","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":8.8,"baseSeverity":"HIGH"}}],"problemTypes":[{"descriptions":[{"type":"CWE","lang":"en","description":"CWE-94 Improper Control of Generation of Code","cweId":"CWE-94"}]}],"source":{"advisory":"42ae0b27-e851-4b58-a991-f691a437fbaa","discovery":"EXTERNAL"}},"adp":[{"affected":[{"vendor":"infiniflow","product":"ragflow","cpes":["cpe:2.3:a:infiniflow:ragflow:*:*:*:*:*:*:*:*"],"defaultStatus":"unknown","versions":[{"version":"0.11.0","status":"affected"}]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2024-10-22T19:10:44.499664Z","id":"CVE-2024-10131","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"title":"CISA ADP Vulnrichment","providerMetadata":{"orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","shortName":"CISA-ADP","dateUpdated":"2024-10-22T19:11:02.208Z"}}]}}