CVE-2024-10131

8.8 HIGH

📋 TL;DR

This CVE describes a remote code execution vulnerability in the add_llm function of infiniflow/ragflow version 0.11.0. Attackers can exploit user-controlled input parameters to execute arbitrary code on affected systems. Organizations using ragflow version 0.11.0 for AI/ML workflows are at risk.

💻 Affected Systems

Products:
  • infiniflow/ragflow
Versions: version 0.11.0
Operating Systems: All platforms running ragflow
Default Config Vulnerable: ⚠️ Yes
Notes: Any deployment using the vulnerable add_llm function with user-supplied input is affected.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Full system compromise allowing attackers to execute arbitrary commands, steal data, install malware, or pivot to other systems.

🟠

Likely Case

Unauthorized code execution leading to data exfiltration, system manipulation, or service disruption.

🟢

If Mitigated

Limited impact with proper input validation and restricted execution environments.

🌐 Internet-Facing: HIGH - The vulnerability can be exploited remotely without authentication.
🏢 Internal Only: HIGH - Even internal systems are vulnerable if accessible to attackers.

🎯 Exploit Status

Public PoC: ⚠️ Yes
Weaponized: LIKELY
Unauthenticated Exploit: ⚠️ Yes
Complexity: LOW

The vulnerability is publicly documented with proof-of-concept details available.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Check latest version > 0.11.0

Vendor Advisory: https://huntr.com/bounties/42ae0b27-e851-4b58-a991-f691a437fbaa

Restart Required: Yes

Instructions:

1. Update ragflow to the latest patched version. 2. Restart the ragflow service. 3. Verify the fix is applied.

🔧 Temporary Workarounds

Input Validation Filter

all

Implement strict input validation for llm_factory and llm_name parameters

# Add validation in llm_app.py to restrict allowed values

Network Restriction

all

Restrict network access to ragflow service

# Use firewall rules to limit access to trusted IPs only

🧯 If You Can't Patch

  • Implement strict input validation and sanitization for all user-supplied parameters
  • Run ragflow in a sandboxed/containerized environment with minimal privileges

🔍 How to Verify

Check if Vulnerable:

Check if running ragflow version 0.11.0 and review code for vulnerable add_llm function implementation

Check Version:

Check ragflow version in configuration or via package manager

Verify Fix Applied:

Verify ragflow version is updated beyond 0.11.0 and test with safe input values

📡 Detection & Monitoring

Log Indicators:

  • Unusual llm_factory or llm_name parameter values
  • Unexpected process execution from ragflow

Network Indicators:

  • Suspicious requests to ragflow API endpoints with unusual parameters

SIEM Query:

source="ragflow" AND (llm_factory="*" OR llm_name="*")

🔗 References

📤 Share & Export