High severity7.5NVD Advisory· Published Dec 30, 2025· Updated Apr 16, 2026
CVE-2025-61594
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
uriRubyGems | < 0.12.5 | 0.12.5 |
uriRubyGems | >= 0.13.0, < 0.13.3 | 0.13.3 |
uriRubyGems | >= 1.0.0, < 1.0.4 | 1.0.4 |
Affected products
22- osv-coords21 versionspkg:apk/chainguard/logstash-9.1pkg:apk/chainguard/logstash-9.1-bitnami-compatpkg:apk/chainguard/logstash-9.1-iamguarded-compatpkg:apk/chainguard/logstash-9.1-with-output-opensearchpkg:apk/chainguard/ruby-3.2pkg:apk/chainguard/ruby-3.2-basepkg:apk/chainguard/ruby-3.2-base-devpkg:apk/chainguard/ruby-3.2-devpkg:apk/chainguard/ruby-3.2-docpkg:apk/chainguard/trufflerubypkg:apk/wolfi/logstash-9.1pkg:apk/wolfi/logstash-9.1-bitnami-compatpkg:apk/wolfi/logstash-9.1-iamguarded-compatpkg:apk/wolfi/logstash-9.1-with-output-opensearchpkg:apk/wolfi/ruby-3.2pkg:apk/wolfi/ruby-3.2-basepkg:apk/wolfi/ruby-3.2-base-devpkg:apk/wolfi/ruby-3.2-devpkg:apk/wolfi/ruby-3.2-docpkg:gem/uripkg:rpm/opensuse/ruby3.4&distro=openSUSE%20Tumbleweed
< 9.1.10-r3+ 20 more
- (no CPE)range: < 9.1.10-r3
- (no CPE)range: < 9.1.10-r3
- (no CPE)range: < 9.1.10-r3
- (no CPE)range: < 9.1.10-r3
- (no CPE)range: < 3.2.9-r3
- (no CPE)range: < 3.2.9-r3
- (no CPE)range: < 3.2.9-r3
- (no CPE)range: < 3.2.9-r3
- (no CPE)range: < 3.2.9-r3
- (no CPE)range: < 34.0.1-r0
- (no CPE)range: < 9.1.10-r3
- (no CPE)range: < 9.1.10-r3
- (no CPE)range: < 9.1.10-r3
- (no CPE)range: < 9.1.10-r3
- (no CPE)range: < 3.2.9-r3
- (no CPE)range: < 3.2.9-r3
- (no CPE)range: < 3.2.9-r3
- (no CPE)range: < 3.2.9-r3
- (no CPE)range: < 3.2.9-r3
- (no CPE)range: < 0.12.5
- (no CPE)range: < 3.4.7-1.1
Patches
Vulnerability mechanics
References
11- github.com/advisories/GHSA-22h5-pq3x-2gf2nvdADVISORY
- github.com/advisories/GHSA-j4pr-3wm6-xx2rghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2025-61594ghsaADVISORY
- github.com/ruby/uri/commit/20157e3e29b125ff41f1d9662e2e3b1d066f5902ghsaWEB
- github.com/ruby/uri/commit/7e521b2da0833d964aab43019e735aea674e1c2cghsaWEB
- github.com/ruby/uri/commit/d3116ca66a3b1c97dc7577f9d2d6e353f391cd6aghsaWEB
- github.com/ruby/uri/security/advisories/GHSA-j4pr-3wm6-xx2rnvdWEB
- github.com/rubysec/ruby-advisory-db/blob/master/gems/uri/CVE-2025-61594.ymlghsaWEB
- hackerone.com/reports/2957667nvdWEB
- www.ruby-lang.org/en/news/2025/02/26/security-advisoriesnvdWEB
- www.ruby-lang.org/en/news/2025/10/07/uri-cve-2025-61594ghsaWEB
News mentions
0No linked articles in our index yet.