CVE-2025-61594
URI Credential Leakage Bypass over CVE-2025-27221
Reported by github_m · Published December 30, 2025
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| ruby | Alpine | 3.4.7-r0, 3.3.10-r0 |
| jruby-9.4 | Wolfi | 9.4.15.0-r4 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| ruby | uri | < 0.12.5, >= 0.13.0, < 0.13.3, >= 1.0.0, < 1.0.4 |
| alpine | ruby | 0, 0 |
| wolfi | jruby-9.4 | 0 |
| ruby | uri | 0.13.0, 1.0.0, 0 |
| chainguard | jruby-9.4 | 0 |
| chainguard | truffleruby | 0 |
| ruby | uri | 1.0.0, 0, 0.13.0 |
| wolfi | logstash-9.1 | 0 |
| chainguard | logstash-9.1 | 0 |
| wolfi | ruby-3.2 | 0 |
| RubyGems | uri | 0.13.0, 1.0.0, 0 |
| chainguard | logstash-8.19 | 0 |
| ruby-lang | uri | |
| chainguard | ruby-3.2 | 0 |
Timeline
- Oct 6, 2025 CVE Published
- Dec 31, 2025 EPSS Score (30 in total, the first dated here)
- Mar 17, 2026 Security Advisory (5 in total, the first dated here)
- Mar 26, 2026 Coalition ESS Score (2 in total, the first dated here)
- Apr 16, 2026 CVE Updated
- Oct 1, 2026 Distribution Patch (2 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2025-61594
vulnetix vdb fixes CVE-2025-61594
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-61594/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://github.com/ruby/uri/security/advisories/GHSA-j4pr-3wm6-xx2r x_refsource_CONFIRM
- https://hackerone.com/reports/2957667 x_refsource_MISC
- https://github.com/advisories/GHSA-22h5-pq3x-2gf2 x_refsource_MISC
- https://www.ruby-lang.org/en/news/2025/02/26/security-advisories x_refsource_MISC
- https://nvd.nist.gov/vuln/detail/CVE-2025-61594 advisory
- https://github.com/advisories/GHSA-j4pr-3wm6-xx2r advisory
- https://github.com/ruby/uri/commit/20157e3e29b125ff41f1d9662e2e3b1d066f5902 patch
- https://github.com/ruby/uri/commit/7e521b2da0833d964aab43019e735aea674e1c2c patch
- https://github.com/ruby/uri/commit/d3116ca66a3b1c97dc7577f9d2d6e353f391cd6a patch
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/uri/CVE-2025-61594.yml advisory
- https://www.ruby-lang.org/en/news/2025/10/07/uri-cve-2025-61594 url
- https://www.ruby-lang.org/en/news/2025/10/07/uri-cve-2025-61594/ url
- https://github.com/ruby/uri url