Skip to main content

RAGFlow CVE-2026-51895

| EUVDEUVD-2026-91115 MEDIUM
Improper Access Control (CWE-284)
2026-10-01 mitre GHSA-86mq-h2wm-8hx9
6.5
CVSS 3.1 · Vendor: mitre
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate as low-privilege RAGFlow user
  2. Delivery
    Craft update_metadata_setting request
  3. Exploit
    Reference another session's knowledge base
  4. Execution
    Bypass ownership check
  5. Impact
    Tamper cross-session metadata

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Access control enforcement
MITRE ATT&CK

1 technique across 1 tactic: Defense Evasion

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires an authenticated low-privilege account on a reachable RAGFlow instance (version 0.24.0 or earlier) and the ability to invoke the update_metadata_setting operation in api/apps/kb_app.py. The core condition is multi-session or multi-tenant usage where the endpoint is exposed to a user who does not own the targeted knowledge base/metadata entry; the flaw is the missing ownership/authorization check on that entry. Limiting factors: valid credentials are needed (PR:L, not unauthenticated), impact is confined to integrity (metadata tampering) with no confidentiality or availability loss per the CVSS vector, exploitability depends on the specific 'exposed entry' as noted in the description, and the operation is not automatable at scale (SSVC Automatable=no).

Impact

This is a moderate-severity, authenticated access-control flaw (CWE-284) in RAGFlow's update_metadata_setting endpoint. The provided CVSS 3.1 vector (AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N = 6.5) indicates a network-reachable, low-complexity bug requiring low-privilege authentication (PR:L) with high integrity impact but no confidentiality or availability impact - consistent with the description of unauthorized cross-session or privilege-crossing write operations. Multiple signals point AWAY from mass exploitation: EPSS is very low (0.14%, 3rd percentile), the CVE is NOT in CISA KEV, and SSVC rates Automatable=no with only Partial technical impact. However, a POC does exist (a public gist is referenced and SSVC Exploitation=poc), so the exploitation status is confirmed at the proof-of-concept level, not active exploitation. Net: this is a real but second-tier priority - a genuine authorization bug with available exploit code, but low real-world exploitation probability, requiring an existing authenticated account, and limited to integrity in a niche product. The signals are internally consistent (low EPSS + no KEV + no-automatable + PR:L all align), so there is no major conflict to flag beyond the generally poor NVD metadata (n/a vendor/product/version).

Exploit ScenarioDerived

An attacker who holds a valid low-privilege RAGFlow account authenticates and sends a crafted request to the update_metadata_setting endpoint referencing a knowledge base or metadata entry belonging to another tenant/session. Because the endpoint fails to enforce ownership/authorization, the attacker modifies metadata across session or privilege boundaries. A public proof-of-concept exists (referenced gist), lowering the barrier to reproduction.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Oct 02, 2026

Authenticated low-privilege users can alter metadata settings of knowledge bases they do not own in RAGFlow 0.24.0 and earlier due to missing authorization in the update_metadata_setting function (api/apps/kb_app.py). This remote integrity-only flaw requires network access and valid credentials (CVSS 6.5), with no confidentiality or availability impact, and publicly available exploit code exists per SSVC (Exploitation: poc) though it is not automatable. EPSS is 0.14% (3rd percentile), and no active exploitation (CISA KEV) is reported.

RemediationAI

No vendor-released patch has been identified at time of analysis. To mitigate, implement a custom authorization check in api/apps/kb_app.py that validates the authenticated user's ownership of the target knowledge base or metadata entry before allowing update_metadata_setting; this requires code changes and could break legitimate multi-user workflows if not carefully scoped. Additionally, restrict access to the endpoint at the network or reverse-proxy layer so only trusted administrative users can reach it, and enforce strict tenant isolation in multi-tenant deployments. Monitor the upstream GitHub issue (https://github.com/infiniflow/ragflow/issues/15268) for an official fix; side effects of network restriction include reduced functionality for normal users, while code-level fixes demand ongoing maintenance.

Affected VersionsENISA

n/a n/a

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

RAGFlow is an open-source retrieval-augmented generation (RAG) engine that manages knowledge bases. The vulnerability resides in the update_metadata_setting endpoint within api/apps/kb_app.py, which fails to verify that the authenticated user has ownership or authorization over the targeted metadata entry-a classic CWE-284 (Improper Access Control) issue. The CVSS 3.1 vector (AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N) indicates a network-accessible, low-complexity attack requiring low privileges but no user interaction, resulting in high integrity impact only. The CPE data is unassigned (n/a), and the SSVC decision framework rates exploitation as PoC-based, not automatable, with partial technical impact.

Know when Ragflow gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (mitre) PRIMARY 6.5 MEDIUM
AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
vuln.today AI 6.5 MEDIUM

Network endpoint reachable with low complexity; requires an authenticated low-privilege account (PR:L); impact is unauthorized metadata modification so I:H with C:N/A:N.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (mitre).

CVSS VectorVendor: mitre

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
High
Availability
None

Lifecycle Timeline

2
CVSS changed
Oct 02, 2026 - 19:22 NVD
6.5 (MEDIUM)
CVE Published
Oct 01, 2026 - 00:00 cve.org
UNKNOWN (no severity yet)

DescriptionCVE.org

Ragflow 0.24.0 and prior contains improper access control in update_metadata_setting (api/apps/kb_app.py). Depending on the exposed entry, an attacker can perform unauthorized cross-session or privilege-crossing operations.

Threat Intelligence Overview

EPSS Score
0.1%
Top 97% exploitable
Prevalence
Low
open-source RAG engine, popular on GitHub but limited production footprint
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.1%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

32
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +32
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

CVE-2024-12433 CRITICAL POC
9.8 Mar 20

A vulnerability in infiniflow/ragflow versions v0.12.0 allows for remote code execution. Rated critical severity (CVSS 9

CVE-2026-24770 CRITICAL POC
9.8 Jan 27

Path traversal vulnerability in RAGFlow RAG engine version 0.23.1 allows unauthenticated attackers to read arbitrary fil

CVE-2024-12450 CRITICAL POC
9.8 Mar 20

In infiniflow/ragflow versions 0.12.0, the `web_crawl` function in `document_app.py` contains multiple vulnerabilities.

CVE-2025-27135 HIGH POC
8.9 Feb 25

RAGFlow is an open-source RAG (Retrieval-Augmented Generation) engine. Rated high severity (CVSS 8.9), this vulnerabilit

CVE-2025-69286 HIGH POC
8.9 Dec 31

RAGFlow versions prior to 0.22.0 generate API keys and beta assistant/agent share tokens with a predictable scheme, lett

CVE-2024-10131 HIGH POC
8.8 Oct 19

The `add_llm` function in `llm_app.py` in infiniflow/ragflow version 0.11.0 contains a remote code execution (RCE) vulne

CVE-2025-68700 HIGH POC
8.6 Dec 31

Remote code execution in RAGFlow versions prior to 0.23.0 allows a low-privileged authenticated user (a normal login acc

CVE-2025-25282 HIGH POC
8.1 Feb 21

RAGFlow is an open-source RAG (Retrieval-Augmented Generation) engine based on deep document understanding. Rated high s

CVE-2024-12779 HIGH POC
7.5 Mar 20

A Server-Side Request Forgery (SSRF) vulnerability exists in infiniflow/ragflow version 0.12.0. Rated high severity (CVS

CVE-2024-53450 HIGH POC
7.5 Dec 09

RAGFlow 0.13.0 suffers from improper access control in document-hooks.ts, allowing unauthorized access to user documents

CVE-2024-12880 MEDIUM POC
6.5 Mar 20

A vulnerability in infiniflow/ragflow version RAGFlow-0.13.0 allows for partial account takeover via insecure data query

CVE-2026-45312 CRITICAL
9.9 May 29

Server-side template injection in RAGFlow 0.24.0 and earlier allows any authenticated user to execute arbitrary operatin

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy