Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessLocate exposed R2R API
-
DeliverySend index-creation request with malicious index name
-
ExploitBreak out of CREATE INDEX via semicolon-stacked SQL
-
ExecutionExecute arbitrary DDL/DML as PostgreSQL superuser
-
ImpactExfiltrate 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
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
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.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
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.
Articles & Coverage 1
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
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.
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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.
Unauthenticated SQL injection in SciPhi-AI R2R through version 3.6.6 exposes the application database to blind data exfi
Unauthenticated remote attackers can exploit a server-side request forgery (SSRF) in SciPhi-AI R2R 3.6.6 and earlier by
Hard-coded JWT signing secrets in SciPhi-AI R2R through 3.6.6 can let remote unauthenticated attackers forge valid JSON
Insecure Direct Object Reference in R2R's conversation API through version 3.6.5 enables any authenticated user to modif
EUVD-2026-70653
GHSA-cwgr-jpvr-x8r5
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB