Skip to main content

R2R EUVDEUVD-2026-70653

| CVE-2026-82526 CRITICAL
SQL Injection (CWE-89)
2026-09-03 VulnCheck GHSA-cwgr-jpvr-x8r5
9.3
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

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

  1. Access
    Locate exposed R2R API
  2. Delivery
    Send index-creation request with malicious index name
  3. Exploit
    Break out of CREATE INDEX via semicolon-stacked SQL
  4. Execution
    Execute arbitrary DDL/DML as PostgreSQL superuser
  5. Impact
    Exfiltrate or destroy database contents

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Parameterized queries, prepared statements
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Persistence

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

Exploitation Conditions

Exploitation requires the R2R vector index creation endpoint to be network-reachable by the attacker; no authentication, user interaction, or non-default feature toggle is required per the CVSS vector (PR:N/UI:N/AT:N) and description. The concrete prerequisite is that R2R (version ≤3.6.6) is deployed with its API accessible to the attacker and backed by PostgreSQL, where the database connection uses a superuser account - the superuser context is what elevates the injection from limited SQL to arbitrary DDL/DML. The primary limiting factor is exposure: instances bound to localhost or behind authenticated network controls are not reachable unauthenticated, and running PostgreSQL under a non-superuser role would constrain (though not eliminate) impact.

Impact

This is a genuine high-priority issue rather than an inflated high-CVSS score. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H) describes network-reachable, low-complexity, unauthenticated exploitation with high impact to confidentiality, integrity and availability of the vulnerable system, and all of these align with the description: no auth is required and the injection runs as PostgreSQL superuser. The presence of public exploit code (GitHub issue #2308) and a VulnCheck advisory raises exploitability materially, and any operator running R2R with its API exposed - even a small or mid-sized team - should treat patching or restricting access as urgent. EPSS was not provided and the CVE is not listed in CISA KEV, so there is no confirmation of active exploitation; the realistic risk is driven by public PoC availability plus trivial exploitation, not by observed in-the-wild attacks. The main factor limiting blast radius is exposure: R2R deployments that keep the API bound to localhost or behind authenticated network controls are far less reachable than internet-exposed instances.

Exploit ScenarioDerived

An attacker locates an internet-exposed R2R instance and sends an unauthenticated request to the vector index creation endpoint with an index name containing a stacked payload such as a valid name followed by a semicolon and additional SQL. The injected statements execute as the PostgreSQL superuser, letting the attacker read or destroy all stored documents and embeddings, create rogue database objects, or pivot toward wider system compromise. Public PoC in GitHub issue #2308 makes this low-effort to reproduce.

Act Now Prioritize within 24-48h. Why: CRITICAL severity + public POC available.
1 PoC candidate (unverified) No patch listed yet 0.4% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Sep 03, 2026

Unauthenticated stacked SQL injection in SciPhi-AI R2R through version 3.6.6 lets remote attackers execute arbitrary SQL by manipulating the index name parameter of the vector index creation endpoint. Because the index name is interpolated directly into a CREATE INDEX statement and executed under the PostgreSQL superuser account, an attacker can run arbitrary DDL and DML via semicolon-separated statements, fully compromising the backing database. Publicly available exploit code exists (reported by VulnCheck), though there is no public exploit identified as being used in active attacks.

RemediationAI

No vendor-released patched version is identified in the available data, so the exact fix version cannot be cited; monitor the upstream GitHub issue (https://github.com/SciPhi-AI/R2R/issues/2308) and the VulnCheck advisory (https://www.vulncheck.com/advisories/r2r-sql-injection-via-vector-index-creation-endpoint) for a tagged release and upgrade to it as soon as it ships. As compensating controls until a patch is applied: restrict network access to the R2R API so the vector index creation endpoint is not reachable by untrusted clients (e.g. bind to localhost or place behind an authenticated reverse proxy/allowlist), which prevents unauthenticated abuse but may break legitimate remote clients; run R2R's PostgreSQL connection under a least-privilege role rather than a superuser so injected DDL/DML is constrained, accepting that index creation may need a narrowly scoped grant to keep working; and if feasible, disable or gate the index creation functionality until the identifier is properly validated. These reduce impact and reachability but do not fully close the injection itself.

Affected VersionsENISA

R2R 0 ≤9c5a94d151f90876bd7eb860f300a8fd662dc481
R2R 0 ≤3.6.6

Affected Packages

euvd r2r no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

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

Technical ContextAI · show details

R2R (Reason-to-Retrieve) is an open-source Retrieval-Augmented Generation (RAG) engine from SciPhi-AI that uses PostgreSQL with the pgvector extension to store and index document embeddings. The vulnerability is a classic CWE-89 SQL injection rooted in unsafe identifier handling: the vector index creation endpoint builds a CREATE INDEX Data Definition Language statement using Python string formatting, inserting the user-supplied index name directly into the SQL text without identifier quoting (e.g. safe double-quoting/escaping) or an allowlist of permitted characters. Since DDL statements cannot be safely parameterized the way values can, the correct mitigation is strict identifier validation - which is absent here. The database connection runs as the PostgreSQL superuser, so injected statements execute with the highest database privileges, and PostgreSQL's support for multiple semicolon-separated statements in a single query (stacked queries) turns the injection into arbitrary DDL/DML execution rather than a read-only leak. Affected CPE is cpe:2.3:a:sciphi-ai:r2r covering all versions up to and including 3.6.6.

Know when R2R 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 (VulnCheck) PRIMARY 9.3 CRITICAL
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
vuln.today AI 9.8 CRITICAL

Unauthenticated network-reachable endpoint with trivial injection and superuser DB execution yields full C/I/A impact; scope unchanged as impact stays within the database system.

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

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

R2R through 3.6.6 contains a stacked SQL injection vulnerability that allows unauthenticated attackers to execute arbitrary SQL statements by manipulating the index name parameter in the vector index creation endpoint. The index name is interpolated directly into a CREATE INDEX statement via string formatting without identifier quoting or allowlist validation, enabling arbitrary DDL and DML execution through semicolon-separated statements under the PostgreSQL superuser account.

Technical POC Analysis

The supplied evidence is GitHub issue #2308, "SQL Injection via Unparameterized Filter Keys in Search Endpoint." It does not mention CVE-2026-82526, a vector index creation endpoint, CREATE INDEX, or…

Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.

Latest POC

1 PoC candidate from github (unverified)

Sign in to open the public PoC links collected for this CVE.

Executive ViewAI

Why It Matters

SciPhi-AI R2R through version 3.6.6 contains a critical remote vulnerability allowing unauthenticated attackers to gain complete control of the organization's database through the vector index creation endpoint. Organizations running this product are exposed to immediate and total compromise of all data stored within R2R, including theft, unauthorized modification, or destruction.

Business Impact: Severe
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: (1) Implement strict network access controls limiting R2R connectivity to authorized internal networks only; (2) Deploy WAF rules blocking access to the vulnerable vector index creation endpoint; (3) Enable and monitor PostgreSQL superuser query logs with automated alerts for CREATE INDEX statements and semicolon-separated SQL patterns; (4) Disable vector index creation functionality if not operationally critical; (5) Maintain encrypted, offline database backups with tested recovery procedures.

Threat Intelligence Overview

EPSS Score
0.4%
Top 67% exploitable
Prevalence
Low
niche open-source RAG engine, limited production footprint
Data Quality
7 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 CRITICAL
CISA KEV No
Public POC Yes
EPSS 0.4%
Patch available No
Active threat No
Deciding rule
CRITICAL severity + public POC available
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
Out-of-Cycle
Exploitation
Poc
System Exposure· derived
Open
Automatable
Yes
Human Impact
Very High
Technical Impact
Total

Priority Score

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

Attack Technique

SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.

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