| Name | CVE-2025-61594 |
| 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. |
| Source | CVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
| Debian Bugs | 1124379 |
The table below lists information on source packages.
| Source Package | Release | Version | Status |
|---|---|---|---|
| ruby2.7 (PTS) | bullseye | 2.7.4-1+deb11u1 | vulnerable |
| bullseye (security) | 2.7.4-1+deb11u5 | vulnerable | |
| ruby3.1 (PTS) | bookworm, bookworm (security) | 3.1.2-7+deb12u1 | vulnerable |
| ruby3.3 (PTS) | forky, sid, trixie | 3.3.8-2 | vulnerable |
| rubygems (PTS) | bullseye | 3.2.5-2 | vulnerable |
| bullseye (security) | 3.2.5-2+deb11u1 | vulnerable | |
| bookworm | 3.3.15-2+deb12u1 | vulnerable | |
| forky, sid, trixie | 3.6.7-2 | vulnerable |
The information below is based on the following data on fixed versions.
| Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
|---|---|---|---|---|---|---|
| ruby2.7 | source | (unstable) | (unfixed) | |||
| ruby3.1 | source | (unstable) | (unfixed) | |||
| ruby3.3 | source | (unstable) | (unfixed) | 1124379 | ||
| rubygems | source | (unstable) | (unfixed) |
[trixie] - ruby3.3 <no-dsa> (Minor issue)
[bookworm] - ruby3.1 <no-dsa> (Minor issue)
[bullseye] - ruby2.7 <postponed> (Minor issue, infoleak in specific scenario)
[trixie] - rubygems <no-dsa> (Minor issue)
[bookworm] - rubygems <no-dsa> (Minor issue)
[bullseye] - rubygems <postponed> (Minor issue, infoleak in specific scenario)
https://www.ruby-lang.org/en/news/2025/10/07/uri-cve-2025-61594/
Fixed by: https://github.com/ruby/uri/commit/5cec76b9e8777764344fd4aee140e309ad207b68 (v1.0.4)
Fixed by: https://github.com/ruby/uri/commit/6c6449e15ffae7027bfe83134f0419f682e0b1ad (v1.0.4)
Fixed by: https://github.com/ruby/uri/commit/d58589cae1b3c5fa2432b95fa28ed12793077935 (v0.13.3)
Fixed by: https://github.com/ruby/uri/commit/4be7781187707ffe8217a968b97b0f956462b4bb (v0.13.3)
Fixed by: https://github.com/ruby/uri/commit/23a9ade9b7a7445615d6850b6af5efd33fa169fd (v0.12.5)
Fixed by: https://github.com/ruby/uri/commit/2f916039a2b20b6d6e704a3921bd43a79b81ac2d (v0.12.5)
Relates to bypass/incomplete fix for CVE-2025-27221.