CVE-2024-10131

Source
https://cve.org/CVERecord?id=CVE-2024-10131
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-10131.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2024-10131
Published
2024-10-19T03:50:09.553Z
Modified
2026-07-15T01:48:56.356599781Z
Severity
  • 8.8 (High) CVSS_V3 - CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
Remote Code Execution in infiniflow/ragflow
Details

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.

Database specific
{
    "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"
}
References

Affected packages

Git / github.com/infiniflow/ragflow

Affected ranges

Type
GIT
Repo
https://github.com/infiniflow/ragflow
Events
Database specific
{
    "extracted_events": [
        {
            "introduced": "0.11.0"
        },
        {
            "last_affected": "0.11.0"
        }
    ],
    "cpe": "cpe:2.3:a:infiniflow:ragflow:0.11.0:*:*:*:*:*:*:*",
    "source": "CPE_STRING"
}

Affected versions

0.*
0.11.0
v0.*
v0.11.0

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-10131.json"