| Name | CVE-2025-27221 |
| Description | In the URI gem before 1.0.3 for Ruby, the URI handling methods (URI.join, URI#merge, URI#+) have an inadvertent leakage of authentication credentials because userinfo is retained even after changing the host. |
| 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) |
| References | DLA-4082-1, DLA-4163-1 |
| Debian Bugs | 1103794 |
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 | fixed | |
| ruby3.1 (PTS) | bookworm, bookworm (security) | 3.1.2-7+deb12u1 | vulnerable |
| ruby3.3 (PTS) | forky, sid, trixie | 3.3.8-2 | fixed |
| rubygems (PTS) | bullseye | 3.2.5-2 | vulnerable |
| bullseye (security) | 3.2.5-2+deb11u1 | fixed | |
| bookworm | 3.3.15-2+deb12u1 | fixed | |
| forky, sid, trixie | 3.6.7-2 | fixed |
The information below is based on the following data on fixed versions.
| Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
|---|---|---|---|---|---|---|
| ruby2.7 | source | bullseye | 2.7.4-1+deb11u5 | DLA-4082-1 | ||
| ruby2.7 | source | (unstable) | (unfixed) | |||
| ruby3.1 | source | (unstable) | (unfixed) | 1103794 | ||
| ruby3.3 | source | (unstable) | 3.3.7-2 | |||
| rubygems | source | bullseye | 3.2.5-2+deb11u1 | DLA-4163-1 | ||
| rubygems | source | bookworm | 3.3.15-2+deb12u1 | |||
| rubygems | source | (unstable) | 3.6.6-1 |
[bookworm] - ruby3.1 <no-dsa> (Minor issue)
https://github.com/ruby/uri/commit/3675494839112b64d5f082a9068237b277ed1495 (v1.0.3)
https://github.com/ruby/uri/commit/2789182478f42ccbb62197f952eb730e4f02bfc5 (v1.0.3)
https://github.com/ruby/uri/pull/154
https://github.com/rubysec/ruby-advisory-db/blob/master/gems/uri/CVE-2025-27221.yml