cve.bz

CVE-2025-61594 ruby-lang uri

2.1 lowEPSS 0.6%Fix available

Low (2.1) in ruby-lang uri. EPSS 0.6% estimated probability of exploitation activity in the next 30 days. Fixed in uri 0.12.5, 0.13.3, 1.0.4.

On this page
URI is a module providing classes to handle Uniform Resource Identifiers. In versions 0.12.4 and earlier (bundled in Ruby 3.2 series) 0.13.2 and earlier (bundled in Ruby 3.3 series), 1.0.3 and earlier (bundled in Ruby 3.4 series), when using the + operator to combine URIs, sensitive information like passwords from the original URI can be leaked, violating RFC3986 and making applications vulnerable to credential exposure. This is a a bypass for the fix to CVE-2025-27221 that can expose user credentials. This issue has been fixed in versions 0.12.5, 0.13.3 and 1.0.4.

Severity

CVSS 4.0

2.1 low
CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:N/SC:L/SI:N/SA:N

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
EPSS
0.6% (unchanged from 0.6% a week ago; 0.6% 30 days ago) estimated probability of exploitation activity in the next 30 days; 47th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: partial, assessed 2025-12-30. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-200 Exposure of Sensitive Information to an Unauthorized Actor
CWE-212 Improper Removal of Sensitive Information Before Storage or Transfer
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

  • uri (RubyGems): fixed in 0.12.5, 0.13.3, 1.0.4
  • Debian, Ubuntu, Red Hat, SUSE, openSUSE, AlmaLinux, Rocky Linux, Alpine, Azure Linux, Alpaquita: fixed package versions per release

Ask an AI about this CVE

Show the promptExplain CVE-2025-61594 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-61594?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-61594?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2025-61594 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
ruby-lang:uribefore 0.12.5
ruby-lang:urifrom 0.13.0 before 0.13.3
ruby-lang:urifrom 1.0.0 before 1.0.4

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-j4pr-3wm6-xx2rRubyGemsuri<0.12.50.12.5
GHSA-j4pr-3wm6-xx2rRubyGemsuri>=0.13.0 <0.13.30.13.3
GHSA-j4pr-3wm6-xx2rRubyGemsuri>=1.0.0 <1.0.41.0.4

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11ruby2.72.7.4-1+deb11u6DLA-4716-1
Debian12ruby3.1, rubygemsno fix listedDEBIAN-CVE-2025-61594
Debian13ruby3.33.3.13-0+deb13u1DEBIAN-CVE-2025-61594 DSA-6614-1
Debian13rubygemsno fix listedDEBIAN-CVE-2025-61594
Debian14ruby3.3, rubygemsno fix listedDEBIAN-CVE-2025-61594
Ubuntu22.04:LTSruby3.03.0.2-7ubuntu2.12UBUNTU-CVE-2025-61594 USN-8137-1
Ubuntu24.04:LTSruby3.23.2.3-1ubuntu0.24.04.7UBUNTU-CVE-2025-61594 USN-8137-1
Ubuntu25.10ruby3.33.3.8-2ubuntu2.1UBUNTU-CVE-2025-61594 USN-8137-1
Ubuntu26.04:LTS, 26.10ruby3.3no fix listedUBUNTU-CVE-2025-61594
UbuntuPro:16.04:LTSruby2.32.3.1-2~ubuntu16.04.16+esm12UBUNTU-CVE-2025-61594 USN-8137-1
UbuntuPro:18.04:LTSruby2.52.5.1-1ubuntu1.16+esm7UBUNTU-CVE-2025-61594 USN-8137-1
UbuntuPro:20.04:LTSruby2.72.7.0-5ubuntu1.18+esm4UBUNTU-CVE-2025-61594 USN-8137-1
Red Hatenterprise_linux:8::appstreamruby, ruby-doc, ruby-libs and 7 more0:3.3.10-5.module+el8.10.0+23696+c42b0f57RHSA-2025:23062
Red Hatenterprise_linux:8::appstreamrubygem-abrt, rubygem-abrt-doc0:0.4.0-1.module+el8.10.0+21226+b78a28c4RHSA-2025:23062
Red Hatenterprise_linux:8::appstreamrubygem-bigdecimal, rubygem-bigdecimal-debuginfo0:3.1.5-5.module+el8.10.0+23696+c42b0f57RHSA-2025:23062
Red Hatenterprise_linux:8::appstreamrubygem-bundler0:2.5.22-5.module+el8.10.0+23696+c42b0f57RHSA-2025:23062
Red Hatenterprise_linux:8::appstreamrubygem-io-console, rubygem-io-console-debuginfo0:0.7.1-5.module+el8.10.0+23696+c42b0f57RHSA-2025:23062
Red Hatenterprise_linux:8::appstreamrubygem-irb0:1.13.1-5.module+el8.10.0+23696+c42b0f57RHSA-2025:23062
Red Hatenterprise_linux:8::appstreamrubygem-json, rubygem-json-debuginfo0:2.7.2-5.module+el8.10.0+23696+c42b0f57RHSA-2025:23062
Red Hatenterprise_linux:8::appstreamrubygem-minitest0:5.20.0-5.module+el8.10.0+23696+c42b0f57RHSA-2025:23062
Red Hatenterprise_linux:8::appstreamrubygem-mysql2, rubygem-mysql2-doc, rubygem-mysql2-debuginfo and 1 more0:0.5.5-1.module+el8.10.0+21226+b78a28c4RHSA-2025:23062
Red Hatenterprise_linux:8::appstreamrubygem-pg, rubygem-pg-doc, rubygem-pg-debuginfo and 1 more0:1.5.4-1.module+el8.10.0+21226+b78a28c4RHSA-2025:23062
Red Hatenterprise_linux:8::appstreamrubygem-power_assert0:2.0.3-5.module+el8.10.0+23696+c42b0f57RHSA-2025:23062
Red Hatenterprise_linux:8::appstreamrubygem-psych, rubygem-psych-debuginfo0:5.1.2-5.module+el8.10.0+23696+c42b0f57RHSA-2025:23062
47 more for Red Hat in the JSON and on Red Hat's page.
SUSELinux Enterprise Module for Basesystem 15 SP7, Linux Enterprise Module for Development Tools 15 SP7ruby3.43.4.10-150700.3.4.1SUSE-SU-2026:3090-1
openSUSELeap 16.0ruby3.43.4.10-160000.1.1openSUSE-SU-2026:21878-1
openSUSETumbleweedruby3.43.4.7-1.1openSUSE-SU-2025:15614-1
openSUSETumbleweedrubygem-uri1.1.1-1.1openSUSE-SU-2026:11204-1
AlmaLinux8ruby, ruby-doc, ruby-libs and 3 more3.3.10-5.module_el8.10.0+4075+e5f6dad1ALSA-2025:23062
AlmaLinux8rubygem-abrt, rubygem-abrt-doc0.4.0-1.module_el8.10.0+3799+191214ccALSA-2025:23062
AlmaLinux8rubygem-bigdecimal3.1.5-5.module_el8.10.0+4075+e5f6dad1ALSA-2025:23062
AlmaLinux8rubygem-bundler2.5.22-5.module_el8.10.0+4075+e5f6dad1ALSA-2025:23062
AlmaLinux8rubygem-io-console0.7.1-5.module_el8.10.0+4075+e5f6dad1ALSA-2025:23062
AlmaLinux8rubygem-irb1.13.1-5.module_el8.10.0+4075+e5f6dad1ALSA-2025:23062
AlmaLinux8rubygem-json2.7.2-5.module_el8.10.0+4075+e5f6dad1ALSA-2025:23062
AlmaLinux8rubygem-minitest5.20.0-5.module_el8.10.0+4075+e5f6dad1ALSA-2025:23062
AlmaLinux8rubygem-mysql2, rubygem-mysql2-doc0.5.5-1.module_el8.10.0+3799+191214ccALSA-2025:23062
AlmaLinux8rubygem-pg, rubygem-pg-doc1.5.4-1.module_el8.10.0+3799+191214ccALSA-2025:23062
AlmaLinux8rubygem-power_assert2.0.3-5.module_el8.10.0+4075+e5f6dad1ALSA-2025:23062
AlmaLinux8rubygem-psych5.1.2-5.module_el8.10.0+4075+e5f6dad1ALSA-2025:23062
41 more for AlmaLinux in the JSON.
Rocky Linux8ruby0:3.3.10-5.module+el8.10.0+40038+e29e4152RLSA-2025:23062
Rocky Linux8rubygem-abrt0:0.4.0-1.module+el8.10.0+1679+61871737RLSA-2025:23062
Rocky Linux8rubygem-abrt0:0.4.0-1.module+el8.10.0+1741+bdb5b6caRLSA-2025:23062
Rocky Linux8rubygem-abrt0:0.4.0-1.module+el8.10.0+1820+f3fffb92RLSA-2025:23062
Rocky Linux8rubygem-abrt0:0.4.0-1.module+el8.10.0+1826+b62220b4RLSA-2025:23062
Rocky Linux8rubygem-abrt0:0.4.0-1.module+el8.10.0+1827+16ecb9d2RLSA-2025:23062
Rocky Linux8rubygem-abrt0:0.4.0-1.module+el8.5.0+668+665814faRLSA-2025:23062
Rocky Linux8rubygem-abrt0:0.4.0-1.module+el8.9.0+1537+0b2034bdRLSA-2025:23062
Rocky Linux8rubygem-mysql20:0.5.5-1.module+el8.10.0+1679+61871737RLSA-2025:23062
Rocky Linux8rubygem-mysql20:0.5.5-1.module+el8.10.0+1827+16ecb9d2RLSA-2025:23062
Rocky Linux8rubygem-pg0:1.5.4-1.module+el8.10.0+1679+61871737RLSA-2025:23062
Rocky Linux8rubygem-pg0:1.5.4-1.module+el8.10.0+1827+16ecb9d2RLSA-2025:23062
4 more for Rocky Linux in the JSON.
Alpinev3.20, v3.21ruby3.3.10-r0ALPINE-CVE-2025-61594
Alpinev3.22, v3.23, v3.24ruby3.4.7-r0ALPINE-CVE-2025-61594
Azure Linux2ruby3.1.7-4AZL-73391
Azure Linux3ruby3.3.5-7AZL-73356
Alpaquita23ruby3.1.5-r2BELL-CVE-2025-61594
Alpaquita25, streamruby3.4.7-r0BELL-CVE-2025-61594

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine · Alpaquita.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

This vulnerability is rated Moderate as it allows for credential exposure when the URI module's `+` operator is used to combine URIs. This flaw bypasses a previous fix, potentially leading to sensitive information leakage from the original URI in affected applications across Red Hat Enterprise Linux, OpenShift Container Platform, and other products utilizing the vulnerable URI module.

ProductPackageStateAdvisory
Logging Subsystem for Red Hat OpenShiftopenshift-logging/fluentd-rhel9Fix deferred
Red Hat Enterprise Linux 10rubyFix deferred
Red Hat Enterprise Linux 10ubi10/ruby-33Fix deferred
Red Hat Enterprise Linux 8ruby:3.3/rubyFix deferred
Red Hat Enterprise Linux 8ubi8/ruby-33Fix deferred
Red Hat Enterprise Linux 9ruby:3.3/rubyFix deferred
Red Hat Enterprise Linux 9ubi9/ruby-30Fix deferred
Red Hat Enterprise Linux 9ubi9/ruby-33Fix deferred

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2025-61594.

Attack patterns (CAPEC)

  • CAPEC-168 Windows ::DATA Alternate Data Stream Severity: Medium

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-200 (59).

References

Check your stackJSON