CVE-2025-61594

NameCVE-2025-61594
DescriptionURI is a module providing classes to handle Uniform Resource Identifiers. In versions prior to 0.12.5, 0.13.3, and 1.0.4, a bypass exists for the fix to CVE-2025-27221 that can expose user credentials. 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. Versions 0.12.5, 0.13.3, and 1.0.4 fix the issue.
SourceCVE (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 Bugs1124379

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
ruby2.7 (PTS)bullseye2.7.4-1+deb11u1vulnerable
bullseye (security)2.7.4-1+deb11u5vulnerable
ruby3.1 (PTS)bookworm, bookworm (security)3.1.2-7+deb12u1vulnerable
ruby3.3 (PTS)forky, sid, trixie3.3.8-2vulnerable
rubygems (PTS)bullseye3.2.5-2vulnerable
bullseye (security)3.2.5-2+deb11u1vulnerable
bookworm3.3.15-2+deb12u1vulnerable
forky, sid, trixie3.6.7-2vulnerable

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
ruby2.7source(unstable)(unfixed)
ruby3.1source(unstable)(unfixed)
ruby3.3source(unstable)(unfixed)1124379
rubygemssource(unstable)(unfixed)

Notes

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.

Search for package or bug name: Reporting problems