Skip to main content
Vulnerability Database/CVE-2026-105148

CVE-2026-105148: SciPhi-AI R2R SSRF Vulnerability

CVE-2026-105148 is a server-side request forgery flaw in SciPhi-AI R2R that allows remote attackers to manipulate server requests. This post explains its technical details, affected versions, impact, and mitigation steps.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-105148 Overview

CVE-2026-105148 is a server-side request forgery (SSRF) vulnerability affecting SciPhi-AI R2R versions up to 3.6.6. The flaw resides in the Retrieval Completion API Endpoint, specifically in py/shared/abstractions/llm.py, where the generation_config.api_base argument is processed without sufficient validation. Remote attackers can manipulate this parameter to coerce the server into issuing arbitrary HTTP requests to internal or external systems. A public proof-of-concept is available, increasing exposure risk. The vendor was contacted prior to disclosure but did not respond.

Critical Impact

Unauthenticated remote attackers can abuse the R2R completion endpoint to reach internal services, cloud metadata endpoints, or arbitrary external hosts via SSRF [CWE-918].

Affected Products

  • SciPhi-AI R2R versions up to and including 3.6.6
  • Component: Retrieval Completion API Endpoint
  • Affected file: py/shared/abstractions/llm.py

Discovery Timeline

  • 2026-10-04 - CVE-2026-105148 published to NVD
  • 2026-10-05 - Last updated in NVD database

Technical Details for CVE-2026-105148

Vulnerability Analysis

The vulnerability exists in the LLM abstraction layer of SciPhi-AI R2R, a retrieval-augmented generation framework. The Retrieval Completion API accepts a generation_config object from clients, including an api_base field intended to specify the backend LLM provider endpoint. R2R forwards outbound HTTP requests to this attacker-controlled URL without allowlist validation or network segmentation checks. This behavior allows an unauthenticated remote actor to pivot the R2R server into an unintended HTTP client, directing requests to internal network ranges, loopback services, or cloud instance metadata services such as 169.254.169.254.

Root Cause

The root cause is improper validation of a user-supplied URL used as a request destination [CWE-918]. The api_base parameter in py/shared/abstractions/llm.py is consumed directly when constructing outbound completion requests. No scheme restrictions, hostname allowlists, or DNS pinning controls are enforced, so attackers can substitute arbitrary hosts in place of the expected LLM provider.

Attack Vector

The attack is network-based and requires no authentication or user interaction. An attacker submits a crafted request to the Retrieval Completion API with generation_config.api_base pointing to an internal or sensitive target. The R2R server then issues a request to that destination and may return response data back to the attacker. Public exploit code demonstrating this flow is hosted on GitHub Gist. See the GitHub Gist PoC Script and VulDB CVE-2026-105148 Details for the published technical reference.

Detection Methods for CVE-2026-105148

Indicators of Compromise

  • Outbound HTTP connections from R2R hosts to RFC1918 ranges, loopback addresses, or cloud metadata endpoints such as 169.254.169.254
  • Requests to /v2/completion or /v3/retrieval/completion containing non-standard values in generation_config.api_base
  • Unexpected DNS resolutions originating from the R2R application process
  • Application logs showing LLM provider URLs that do not match the configured provider domain

Detection Strategies

  • Inspect R2R access logs for completion requests containing an api_base field and compare the value against an approved provider allowlist
  • Capture egress NetFlow or VPC flow logs from R2R workloads to identify requests directed at internal subnets or metadata services
  • Alert on any R2R-originated HTTP request where the destination hostname resolves to a private IP address

Monitoring Recommendations

  • Instrument the Retrieval Completion endpoint with request-level telemetry including source IP, authenticated principal, and generation_config contents
  • Forward application and proxy logs to a centralized analytics platform for correlation with egress traffic
  • Baseline normal outbound destinations for R2R and alert on deviations

How to Mitigate CVE-2026-105148

Immediate Actions Required

  • Restrict network egress from R2R servers to a strict allowlist of approved LLM provider endpoints
  • Block R2R access to internal subnets, loopback, and cloud instance metadata services at the host or VPC firewall layer
  • Place the Retrieval Completion API behind authentication and rate limiting until a patched release is available
  • Audit historical request logs for suspicious api_base values

Patch Information

At the time of publication, no vendor patch has been released. The vendor was contacted prior to disclosure but did not respond. Monitor the SciPhi-AI R2R project for updates beyond version 3.6.6 and consult VulDB Vulnerability #413373 for ongoing status.

Workarounds

  • Deploy an outbound proxy that enforces a hostname allowlist for all R2R-originated HTTP traffic
  • Patch py/shared/abstractions/llm.py locally to validate generation_config.api_base against a hardcoded set of approved provider URLs and reject any value resolving to private, reserved, or metadata IP ranges
  • Enable IMDSv2 on AWS workloads to mitigate credential theft via metadata service abuse
  • Isolate R2R deployments in a network segment with no routing to sensitive internal services
bash
# Example egress restriction using iptables to block metadata and RFC1918 access
iptables -A OUTPUT -m owner --uid-owner r2r -d 169.254.169.254 -j REJECT
iptables -A OUTPUT -m owner --uid-owner r2r -d 10.0.0.0/8 -j REJECT
iptables -A OUTPUT -m owner --uid-owner r2r -d 172.16.0.0/12 -j REJECT
iptables -A OUTPUT -m owner --uid-owner r2r -d 192.168.0.0/16 -j REJECT
iptables -A OUTPUT -m owner --uid-owner r2r -d 127.0.0.0/8 -j REJECT

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.