ZeroHour

CVE-2026-82526

niche

Unauthenticated Stacked SQL Injection in R2R Vector Index Endpoint

CVSS 4.0
9.3 critical
EPSS
<1%p34
Published
()
Modified
AI analysis

R2R through version 3.6.6 contains a stacked SQL injection flaw (CWE-89) in its vector index creation endpoint. The endpoint takes an index name parameter and interpolates it directly into a PostgreSQL CREATE INDEX statement via string formatting, without identifier quoting or allowlist validation, so an unauthenticated attacker can inject semicolon-separated statements that execute as additional SQL. Successful exploitation grants arbitrary DDL and DML execution under the PostgreSQL superuser account, allowing the attacker to read, modify, or delete data and create or drop database objects (CVSS 4.0 score 9.3, critical, network-exploitable with no privileges or user interaction required and high impact to confidentiality, integrity, and availability). Any deployment running an affected version with the index creation endpoint reachable by untrusted network clients is exposed. As of now there are no known exploits in the wild, no public proof-of-concept, and no CISA KEV listing, with EPSS estimating only a 0.4% probability of exploitation in the next 30 days.

What to do: Upgrade R2R to the latest release above 3.6.6 once a patched version is published (the source data does not specify a fixed version). Until then, restrict network access to the vector index creation endpoint, run the application's PostgreSQL connection under a least-privilege role instead of superuser, and consider WAF rules constraining the index name parameter. Check database logs for unexpected CREATE INDEX statements or semicolon-separated queries that would indicate exploitation attempts.

Affected
R2Rthrough 3.6.6 (all versions up to and including 3.6.6)
Estimated exposure
nicheunknown precisely; likely at most on the order of thousands of self-hosted deployments — R2R appears to be a niche self-hosted application framework offering a PostgreSQL-backed vector search API, typically deployed per-application by development teams rather than at internet scale, and no public active-install, market-share,…

Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.

Description

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.

Weakness
CWE-89
Vector
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

In the news

No ingested article mentions this CVE yet.