ZeroHour

CVE-2026-82527

niche

Unauthenticated SQL Injection in R2R Retrieval Search Endpoint (through 3.6.6)

CVSS 4.0
8.7 high
EPSS
<1%p19
Published
()
Modified
AI analysis

R2R through version 3.6.6 contains a SQL injection flaw (CWE-89) in the retrieval search endpoint, where the filter key parameter is directly interpolated into the SQL WHERE clause of the chunks search query without parameterization or escaping. An unauthenticated remote attacker can manipulate this parameter to inject arbitrary SQL predicates into the query. Because the injection supports time-based and boolean-based techniques, an attacker can blindly exfiltrate confidential data from the application database even without seeing query output directly. Any deployment running R2R at version 3.6.6 or earlier with the retrieval search endpoint reachable is affected. Exploitation has not yet been observed: there is no known public proof-of-concept, the flaw is not in CISA KEV, and EPSS estimates only a 0.3% probability of exploitation in the next 30 days.

What to do: Upgrade R2R to a release newer than 3.6.6 that addresses the unparameterized filter key interpolation; no specific fixed version number is provided in the disclosure data, so verify the patched release with the vendor. Until patching, restrict network access to the retrieval search endpoint (ideally requiring authentication or placing it behind a WAF/reverse proxy that filters the filter key parameter). Check access logs for unusual repeated search requests with manipulated filter keys or abnormal response timing, which would indicate attempted time-based or boolean-based exfiltration.

Affected
R2R (open-source project) R2Rall versions through 3.6.6 (<= 3.6.6)
Estimated exposure
nichelikely at most on the order of low thousands of self-hosted deployments (no public install counts available) — R2R is a niche open-source RAG/retrieval engine typically self-hosted by developers and small teams rather than shipped at mass scale, and the data provides no active-install or internet-exposure counts, so the estimate relies on typical…

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 SQL injection vulnerability that allows unauthenticated attackers to inject SQL predicates into the chunks search query by manipulating the filter key parameter in the retrieval search endpoint. Attackers can exploit the direct interpolation of filter keys into the SQL WHERE clause without parameterization or escaping to perform time-based and boolean-based data exfiltration from the application database.

Weakness
CWE-89
Vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/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.