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-61594

CVE-2025-61594: Ruby-lang Uri Information Disclosure Bug

CVE-2025-61594 is an information disclosure flaw in Ruby-lang Uri that leaks user credentials when combining URIs with the + operator. This article covers the technical details, affected versions, and mitigation.

Published: April 1, 2026

CVE-2025-61594 Overview

CVE-2025-61594 is an information disclosure vulnerability in the Ruby URI module that can expose user credentials. This vulnerability represents a bypass of the fix for CVE-2025-27221, allowing sensitive information such as passwords from the original URI to leak when using the + operator to combine URIs. The flaw violates RFC3986 specifications and makes applications vulnerable to credential exposure.

Critical Impact

Applications using vulnerable versions of the Ruby URI module may inadvertently expose user credentials when combining URIs using the + operator, potentially leading to unauthorized access.

Affected Products

  • ruby-lang uri versions prior to 0.12.5
  • ruby-lang uri versions prior to 0.13.3
  • ruby-lang uri versions prior to 1.0.4

Discovery Timeline

  • December 30, 2025 - CVE-2025-61594 published to NVD
  • February 24, 2026 - Last updated in NVD database

Technical Details for CVE-2025-61594

Vulnerability Analysis

This vulnerability stems from improper data removal before storage or transfer (CWE-212). When the Ruby URI module's + operator is used to combine two URI objects, sensitive credential information from the original URI can leak into the resulting combined URI. This represents a bypass of a previous security fix implemented for CVE-2025-27221.

The issue specifically impacts how the URI module handles the userinfo component of URIs during concatenation operations. According to RFC3986, the userinfo subcomponent may contain sensitive authentication data that should be properly sanitized during URI manipulation operations to prevent unintended credential disclosure.

Root Cause

The root cause lies in the incomplete handling of userinfo components during URI concatenation operations. When the + operator combines URIs, the implementation fails to properly strip or sanitize password information from the source URI before creating the resulting combined URI. This allows credentials embedded in the original URI's userinfo section to persist and potentially be exposed in logs, error messages, or transmitted to unintended destinations.

Attack Vector

An attacker could exploit this vulnerability in scenarios where applications:

  1. Process URIs containing embedded credentials (e.g., scheme://user:password@host/path)
  2. Use the + operator to combine or modify these URIs
  3. Log, transmit, or otherwise expose the resulting combined URI

The vulnerability requires that an application already handles URIs with embedded credentials and uses the + operator for URI manipulation. The leaked credentials could then be harvested from application logs, network traffic, or error responses where the combined URI is exposed.

Detection Methods for CVE-2025-61594

Indicators of Compromise

  • Review application logs for URIs containing unexpected userinfo components (credentials) after URI concatenation operations
  • Monitor for unusual authentication attempts using credentials that may have been exposed through URI handling
  • Check for the presence of vulnerable URI gem versions (< 0.12.5, < 0.13.3, < 1.0.4) in Ruby application dependencies

Detection Strategies

  • Implement static code analysis to identify usage of the URI + operator with URIs that may contain credentials
  • Use dependency scanning tools (e.g., Bundler Audit, Dependabot) to detect vulnerable versions of the URI gem
  • Review code paths that handle URI construction and manipulation for potential credential exposure

Monitoring Recommendations

  • Enable detailed logging for authentication-related events to detect potential credential misuse
  • Monitor for anomalous access patterns that could indicate compromised credentials
  • Implement alerting on dependency vulnerability scans that flag outdated URI gem versions

How to Mitigate CVE-2025-61594

Immediate Actions Required

  • Upgrade the Ruby URI gem to a patched version: 0.12.5, 0.13.3, or 1.0.4 depending on your version branch
  • Audit application code for usage of the URI + operator with URIs containing credentials
  • Review application logs for potential credential exposure incidents
  • Consider rotating any credentials that may have been exposed through vulnerable URI operations

Patch Information

The Ruby-lang team has released patched versions that address this vulnerability. The following commits contain the security fixes:

  • Commit 20157e3 - Fix for version 0.12.x branch
  • Commit 7e521b2 - Fix for version 0.13.x branch
  • Commit d3116ca - Fix for version 1.0.x branch

For detailed information, refer to the Ruby-lang Security Announcement and the RubySec Advisory Database.

Workarounds

  • Avoid using the + operator with URI objects that contain embedded credentials until the patch is applied
  • Strip credentials from URIs before performing concatenation operations
  • Use alternative URI manipulation methods that do not trigger the vulnerable code path
bash
# Update URI gem to patched version
gem update uri

# Or specify minimum version in Gemfile
# gem 'uri', '>= 1.0.4'
bundle update uri

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

  • Vulnerability Details
  • TypeInformation Disclosure

  • Vendor/TechRuby

  • SeverityLOW

  • CVSS Score2.7

  • EPSS Probability0.01%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:U/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
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-212
  • Vendor Resources
  • GitHub Commit Update

  • GitHub Commit Update

  • GitHub Commit Update

  • RubySec CVE-2025-61594 Advisory

  • Ruby-lang Security Announcement
  • Related CVEs
  • CVE-2024-27282: Ruby Regex Information Disclosure Flaw

  • CVE-2025-27221: Ruby URI Gem Credential Leak Vulnerability

  • CVE-2025-0306: Ruby Marvin Attack Vulnerability

  • CVE-2024-27280: Ruby StringIO Buffer Overflow Vulnerability
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