CVE-2025-61594: URI Credential Leakage Bypass over CVE-2025-27221
Vulnerability summary
CVE-2025-61594 is a high (CVSS 7.5) vulnerability in ruby-lang uri. EPSS estimates a 0.60% chance of exploitation in the next 30 days, higher than 50.1% of scored vulnerabilities.
Not severe (CVSS 2.1, local access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 9 · Related 5Timeline
- 30-12-2025PublishedVulnerability first disclosed.
- 16-04-2026Last modifiedVulnerability information updated.
Description
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.
CVSS metrics
11 scores · 8 sources · 2 versions- OSV · UbuntuEcosystem advisory · calculated2.1LowCVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:N/SC:L/SI:N/SA:N
- OSV · WolfiEcosystem advisory · calculated2.1LowCVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:N/SC:L/SI:N/SA:N
- OSV · ChainguardEcosystem advisory · calculated2.1LowCVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:N/SC:L/SI:N/SA:N
- OSV · RubygemsEcosystem advisory · calculated6.9MediumCVSS: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:UDiffers
- NVDNIST2.1LowCVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:N/SC:L/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
- OSV · AlpineEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- OSV · UbuntuEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- OSV · DebianEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- OSV · RubygemsEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
EPSS trend
Probability
0.60%
Chance of exploitation in the next 30 days
Percentile
50%
Versus all other CVEs
30-day change
Increase +0.04 pp
From 0.56% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root cause- CWE-200Exposure of Sensitive Information to an Unauthorized ActorThe product exposes sensitive information to an actor that is not explicitly authorized to have access to that information.
- CWE-212Improper Removal of Sensitive Information Before Storage or TransferThe product stores, transfers, or shares a resource that contains sensitive information, but it does not properly remove that information before the product makes the resource available to unauthorized actors.
Affected systems
Known conditions: local access, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Chainguard35 products
- gitlab-rails-ce-18.1All versions (No fix recorded)
- gitlab-rails-ce-18.2All versions (No fix recorded)
- gitlab-rails-ce-18.3All versions (No fix recorded)
- gitlab-rails-ce-18.4All versions (No fix recorded)
- gitlab-rails-ce-18.5All versions (No fix recorded)
Ubuntu6 products
- ruby2.3< 2.3.1-2~ubuntu16.04.16+esm12
- ruby2.5< 2.5.1-1ubuntu1.16+esm7
- ruby2.7< 2.7.0-5ubuntu1.18+esm4
- ruby3.0< 3.0.2-7ubuntu2.12
- ruby3.2< 3.2.3-1ubuntu0.24.04.7
Wolfi4 products
- jruby-9.4< 9.4.15.0-r4
- ruby-3.2< 3.2.9-r3
- ruby-3.2-dev< 3.2.9-r3
- ruby-3.2-doc< 3.2.9-r3
Debian3 products
- ruby3.1All versions (No fix recorded)
- ruby3.3All versions (No fix recorded) | < 3.3.13-0+deb13u1 | < 3.3.14-0.1
- rubygemsAll versions (No fix recorded) | < 4.0.15-2
Opensuse2 products
- ruby3.4&distro=openSUSE Tumbleweed< 3.4.7-1.1
- rubygem-uri&distro=openSUSE Tumbleweed< 1.1.1-1.1
Alpine1 product
- ruby< 3.3.10-r0 | < 3.4.7-r0
Ruby1 product
- uri< 0.12.5 | ≥ 0.13.0, < 0.13.3 | ≥ 1.0.0, < 1.0.4
Ruby-lang1 product
- uri< 0.12.5 | ≥ 0.13.0, < 0.13.3 | ≥ 1.0.0, < 1.0.4
RubyGems1 product
- uri< 0.12.5 | ≥ 0.13.0, < 0.13.3 | ≥ 1.0.0, < 1.0.4
9 vendors · 54 products
References
19 linksShow all 19 references
- github.com/ruby/uriPACKAGE