# CVE-2024-10131: Remote Code Execution in infiniflow/ragflow

- Severity: High 8.8 (CVSS:3.0, scored by @huntr_ai) `CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.98%, higher than 63% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-10-19T03:50:09.553Z
- Modified: 2026-06-17T06:54:58.727Z
- Weaknesses: CWE-94
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: @huntr_ai

## 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.

(As written by CVE List.)

## Affected

- infiniflow infiniflow/ragflow: from unspecified up to latest
- infiniflow ragflow: 0.11.0

## Every score

- @huntr_ai: CVSS:3.0 8.8 High `CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://huntr.com/bounties/42ae0b27-e851-4b58-a991-f691a437fbaa> (exploit, third-party-advisory)

## Sources

- CVE List: [CVE-2024-10131](https://www.cve.org/CVERecord?id=CVE-2024-10131), CVE Terms of Use, modified 2025-10-15
- NVD: [CVE-2024-10131](https://nvd.nist.gov/vuln/detail/CVE-2024-10131), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-10131 · Whole record: https://cve.day/CVE-2024-10131.json · Rebuilt by cve.day 2026-11-25T22:58:46.924Z
