The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2025-45691

CVE-2025-45691: RAGAS File Read Vulnerability

CVE-2025-45691 is an arbitrary file read flaw in Exploding Gradients RAGAS v0.2.3 to v0.2.14 caused by improper URL validation. This post covers the technical details, affected versions, impact, and mitigation strategies.

Published: March 6, 2026

CVE-2025-45691 Overview

An Arbitrary File Read vulnerability exists in the ImageTextPromptValue class in Exploding Gradients RAGAS versions v0.2.3 through v0.2.14. The vulnerability stems from improper validation and sanitization of URLs supplied in the retrieved_contexts parameter when handling multimodal inputs. This flaw allows attackers to read arbitrary files from the server's filesystem by manipulating URL inputs that bypass expected validation controls.

Critical Impact

Attackers can exploit this vulnerability to read sensitive files from the server, potentially exposing configuration files, credentials, source code, and other confidential data stored on vulnerable RAGAS deployments.

Affected Products

  • Exploding Gradients RAGAS v0.2.3
  • Exploding Gradients RAGAS versions through v0.2.14
  • Applications using the ImageTextPromptValue class with multimodal inputs

Discovery Timeline

  • 2026-03-05 - CVE CVE-2025-45691 published to NVD
  • 2026-03-05 - Last updated in NVD database

Technical Details for CVE-2025-45691

Vulnerability Analysis

This vulnerability is categorized as an Arbitrary File Read (a form of Path Traversal/Local File Inclusion) affecting the RAGAS library's multimodal prompt handling functionality. The ImageTextPromptValue class processes user-supplied URLs through the retrieved_contexts parameter without adequate validation or sanitization.

When multimodal inputs are processed, the application fails to properly restrict the types of URLs or file paths that can be specified. This allows an attacker to craft malicious input that references local file system paths instead of legitimate remote URLs. The vulnerable code path exists in the multi_modal_prompt.py module, specifically around the context retrieval logic.

The impact of successful exploitation includes unauthorized access to sensitive files on the server, which could lead to exposure of application secrets, database credentials, API keys, or other sensitive configuration data. In environments where RAGAS is deployed as part of larger AI/ML pipelines, this could compromise the entire infrastructure.

Root Cause

The root cause of this vulnerability lies in insufficient input validation within the ImageTextPromptValue class. When processing the retrieved_contexts parameter for multimodal inputs, the code does not adequately verify that supplied URLs conform to expected remote resource patterns. The absence of proper URL scheme validation and path canonicalization allows file:// protocol handlers or relative path traversal sequences to be processed, ultimately enabling local file system access.

Attack Vector

The attack vector involves supplying crafted input to the retrieved_contexts parameter that contains file system paths or file:// URLs instead of legitimate HTTP/HTTPS resources. When the ImageTextPromptValue class processes this input as part of multimodal prompt handling, it reads the contents of the specified local file and potentially exposes that data in the application response or subsequent processing stages.

An attacker could exploit this vulnerability by:

  1. Identifying an application endpoint that accepts multimodal inputs processed by RAGAS
  2. Crafting a request with malicious file paths in the retrieved_contexts parameter
  3. Submitting the request to trigger the vulnerable code path
  4. Extracting sensitive file contents from the response or processing output

For technical details on the vulnerable code path, refer to the GitHub source code reference.

Detection Methods for CVE-2025-45691

Indicators of Compromise

  • Unusual file access patterns in application logs, particularly attempts to read system files like /etc/passwd, /etc/shadow, or application configuration files
  • Log entries showing file:// protocol usage in contexts where only HTTP/HTTPS URLs are expected
  • Path traversal sequences (e.g., ../) appearing in retrieved_contexts parameter values
  • Unexpected errors related to file permissions or non-existent paths in multimodal processing logs

Detection Strategies

  • Implement web application firewall (WAF) rules to detect and block file:// protocol usage and path traversal patterns in request parameters
  • Monitor application logs for anomalous file read operations originating from the RAGAS multimodal processing components
  • Deploy runtime application self-protection (RASP) solutions to detect and block arbitrary file read attempts
  • Create custom detection rules for SIEM platforms that alert on patterns consistent with local file inclusion attempts

Monitoring Recommendations

  • Enable verbose logging for the RAGAS library to capture all multimodal input processing activities
  • Monitor file system access patterns from the application process to detect reads of sensitive files
  • Implement alerting for any file access outside expected data directories by the RAGAS processing components
  • Regularly audit application logs for suspicious URL patterns in the retrieved_contexts parameter

How to Mitigate CVE-2025-45691

Immediate Actions Required

  • Upgrade RAGAS to a patched version that addresses this vulnerability (versions after v0.2.14)
  • Review and restrict network access to systems running vulnerable RAGAS deployments
  • Implement input validation at the application layer to reject file:// URLs and path traversal sequences before they reach RAGAS
  • Conduct an audit of logs to identify any potential exploitation attempts

Patch Information

Security patches addressing this vulnerability have been developed and are available through the official RAGAS repository. The GitHub Pull Request #1559 and GitHub Pull Request #1991 contain fixes for this vulnerability. Organizations should review these patches and upgrade to the latest patched version of RAGAS.

For detailed vulnerability information, see the Adithya Nak Vulnerability Report.

Workarounds

  • Implement strict URL validation at the application layer to only allow HTTP/HTTPS schemes in the retrieved_contexts parameter
  • Deploy the RAGAS application in a sandboxed environment with restricted file system access
  • Use containerization to limit the files accessible to the RAGAS process
  • Apply network segmentation to minimize the impact of potential data exfiltration
bash
# Example: Restrict file system access using container security context
# When deploying RAGAS in Kubernetes, apply read-only root filesystem
# and limit volume mounts to only required directories
# securityContext:
#   readOnlyRootFilesystem: true
#   allowPrivilegeEscalation: false

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

  • Vulnerability Details
  • TypeInformation Disclosure

  • Vendor/TechExploding Gradients

  • SeverityNONE

  • CVSS ScoreN/A

  • Known ExploitedNo
  • Impact Assessment
  • ConfidentialityNone
  • IntegrityNone
  • AvailabilityNone
  • Technical References
  • Adithya Nak Vulnerability Report

  • GitHub PoC Script

  • GitHub Pull Request #1559

  • GitHub Pull Request #1991
  • Latest CVEs
  • CVE-2025-70797: LimeSurvey XSS Vulnerability

  • CVE-2025-30650: Juniper Junos OS Auth Bypass Vulnerability

  • CVE-2026-35471: Goshs Path Traversal Vulnerability

  • CVE-2026-35393: Goshs Path Traversal Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English