CVE-2025-61594 URI Credential Leakage Bypass over CVE-2025-27221

Low 2.1 Published Updated

Attackers can leak sensitive credentials from URIs when using the addition operator, exposing user passwords in Ruby applications.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2025-61594?

CVE-2025-61594 is a low-severity vulnerability in ruby uri, published on 30 Dec 2025. It can only be exploited from the same machine or local network, with no action from the victim.

Official 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.

Weakness: CWE-212, CWE-200

Which versions are affected by CVE-2025-61594?

6 open source packages ship an affected version, including uri. It affects 1 product.

PackageAffectedFixed in
uri RubyGemsAll versions0.12.5
uri RubyGemsAll versions0.12.5
uri RubyGemsFrom 0.13.00.13.3
uri RubyGemsFrom 0.13.00.13.3
uri RubyGemsFrom 1.0.01.0.4
uri RubyGemsFrom 1.0.01.0.4
Linux distribution packages (2)
ruby3.4 openSUSE:TumbleweedAll versions3.4.7-1.1
rubygem-uri openSUSE:TumbleweedAll versions1.1.1-1.1

Products include Ruby-Lang Uri.

How do I fix CVE-2025-61594?

Upgrade uri to a fixed version for your release line: 0.12.5, 0.13.3 or 1.0.4.

Is CVE-2025-61594 being exploited?

There is no known exploitation of CVE-2025-61594 in the wild and no public exploit code.

Sources

Also known as ALPINE-CVE-2025-61594, AZL-73356, AZL-73391, BELL-CVE-2025-61594, CLEANSTART-2026-JW72308, CLEANSTART-2026-TF01901 and 26 more.

Is CVE-2025-61594 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free