Remote Code Execution in infiniflow/ragflow
Published Oct 19, 2024
8.8
HIGHCVSS 3.1
EPSS 1.14%
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.
Affected products
-
- Version unspecifiedStatusaffectedConstraints<=latest
- Version
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| Infiniflow | Infiniflow/ragflow | n/a |
|
- 0.11.0
-
- Version 0.11.0StatusaffectedConstraints-
- Version
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| Infiniflow | Ragflow | n/a |
|
No Red Hat product state for this CVE.
No package ranges for this CVE.
Remediation
No remediation recorded yet.
References (1)
- https://huntr.com/bounties/42ae0b27-e851-4b58-a991-f691a437fbaa ExploitThird Party Advisory
| Link | Providers | Tags |
|---|---|---|
| https://huntr.com/bounties/42ae0b27-e851-4b58-a991-f691a437fbaa | ExploitThird Party Advisory |
Change history (0)
No recorded changes yet.