CVE-2025-27221
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
02 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
03 Exploitation and scoring
- Exploitation
- Assessed, none found. CISA's assessment recorded neither public exploit code nor evidence of exploitation when it was made.
- SSVC decision
- ExploitationnoneCISA recorded no public exploit code and no evidence of exploitation.
- AutomatablenoAt least one step from reconnaissance to exploitation cannot be reliably automated.
- Technical ImpactpartialSuccessful exploitation gives limited control of the vulnerable component.
- EPSS probability
- 0.51% probability of exploitation activity in the next 30 days.
- EPSS percentile
- Equal to or higher than the score of 43.3% of scored records. A rank, not a probability.
- NVD base score
- 5.3 (CVSS v3.x), scored by the NVD independently of the CNA.
- NVD CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
- NVD analysis status
- Modified. NVD last modified this record on 2026-06-17.
- Red Hat severity
- Low. Red Hat's rating for its own products, not a CVSS rating.
Exploit-prediction scores from FIRST. Independent scoring and analysis status from the NVD. Vendor severity from Red Hat. Exploitation assessment and catalog membership from CISA.
04 Metadata
- Published
- 2025-03-03 00:00Z1 YR AGO
- Last updated
- 2025-11-03 21:13Z11 MO AGO
- Reserved
- 2025-02-20
- Assigning CNA
- mitre
- Record state
- PUBLISHED
- Severity
- Low (CVSS 3.2)
- CNA CVSS vector
- CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:L/I:N/A:N
- Weaknesses
- CWE-212Improper Removal of Sensitive Information Before Storage or TransferBase
- Data version
- 5.2
- Document digest
- 254787294f9032510491f73d2deacd33796f0ae4930bfa65e8882f183aba1acd
05 Affected products
06 References
- hackerone.comhttps://hackerone.com/reports/2957667
- github.comhttps://github.com/rubysec/ruby-advisory-db/blob/master/gems/uri/CVE-2025-27221.yml
- lists.debian.orghttps://lists.debian.org/debian-lts-announce/2025/05/msg00015.html
- lists.debian.orghttps://lists.debian.org/debian-lts-announce/2025/03/msg00008.html
07 Fixed in
AlmaLinux 8
- ruby Fixed
A version is affected if any line below covers it.
- Affected before 3.1.7-145.module_el8.10.0+3984+cf55e3df
- Affected before 3.3.8-4.module_el8.10.0+4022+8b66723c
- ruby-bundled-gems Fixed
A version is affected if any line below covers it.
- Affected before 3.1.7-145.module_el8.10.0+3984+cf55e3df
- Affected before 3.3.8-4.module_el8.10.0+4022+8b66723c
- ruby-default-gems Fixed
A version is affected if any line below covers it.
- Affected before 3.1.7-145.module_el8.10.0+3984+cf55e3df
- Affected before 3.3.8-4.module_el8.10.0+4022+8b66723c
- ruby-devel Fixed
A version is affected if any line below covers it.
- Affected before 3.1.7-145.module_el8.10.0+3984+cf55e3df
- Affected before 3.3.8-4.module_el8.10.0+4022+8b66723c
- ruby-doc Fixed
A version is affected if any line below covers it.
- Affected before 3.1.7-145.module_el8.10.0+3984+cf55e3df
- Affected before 3.3.8-4.module_el8.10.0+4022+8b66723c
- ruby-libs Fixed
A version is affected if any line below covers it.
- Affected before 3.1.7-145.module_el8.10.0+3984+cf55e3df
- Affected before 3.3.8-4.module_el8.10.0+4022+8b66723c
- rubygem-abrt Fixed
A version is affected if any line below covers it.
- Affected before 0.4.0-1.module_el8.10.0+3799+191214cc
- Affected before 0.4.0-1.module_el8.9.0+3746+91b8233a
- rubygem-abrt-doc Fixed
A version is affected if any line below covers it.
- Affected before 0.4.0-1.module_el8.10.0+3799+191214cc
- Affected before 0.4.0-1.module_el8.10.0+3854+02eaa59a
- rubygem-bigdecimal Fixed
A version is affected if any line below covers it.
- Affected before 3.1.1-145.module_el8.10.0+3984+cf55e3df
- Affected before 3.1.5-4.module_el8.10.0+4022+8b66723c
- rubygem-bundler Fixed
A version is affected if any line below covers it.
- Affected before 2.3.27-145.module_el8.10.0+3984+cf55e3df
- Affected before 2.5.22-4.module_el8.10.0+4022+8b66723c
- rubygem-io-console Fixed
A version is affected if any line below covers it.
- Affected before 0.5.11-145.module_el8.10.0+3984+cf55e3df
- Affected before 0.7.1-4.module_el8.10.0+4022+8b66723c
- rubygem-irb Fixed
A version is affected if any line below covers it.
- Affected before 1.13.1-4.module_el8.10.0+4022+8b66723c
- Affected before 1.4.1-145.module_el8.10.0+3984+cf55e3df
- rubygem-json Fixed
A version is affected if any line below covers it.
- Affected before 2.6.1-145.module_el8.10.0+3984+cf55e3df
- Affected before 2.7.2-4.module_el8.10.0+4022+8b66723c
- rubygem-minitest Fixed
A version is affected if any line below covers it.
- Affected before 5.15.0-145.module_el8.10.0+3984+cf55e3df
- Affected before 5.20.0-4.module_el8.10.0+4022+8b66723c
- rubygem-mysql2 Fixed
A version is affected if any line below covers it.
- Affected before 0.5.3-3.module_el8.10.0+3854+02eaa59a
- Affected before 0.5.3-3.module_el8.9.0+3746+91b8233a
- Affected before 0.5.5-1.module_el8.10.0+3799+191214cc
- rubygem-mysql2-doc Fixed
A version is affected if any line below covers it.
- Affected before 0.5.3-3.module_el8.10.0+3854+02eaa59a
- Affected before 0.5.5-1.module_el8.10.0+3799+191214cc
- rubygem-pg Fixed
A version is affected if any line below covers it.
- Affected before 1.3.2-1.module_el8.10.0+3854+02eaa59a
- Affected before 1.3.2-1.module_el8.9.0+3746+91b8233a
- Affected before 1.5.4-1.module_el8.10.0+3799+191214cc
- rubygem-pg-doc Fixed
A version is affected if any line below covers it.
- Affected before 1.3.2-1.module_el8.10.0+3854+02eaa59a
- Affected before 1.5.4-1.module_el8.10.0+3799+191214cc
- rubygem-power_assert Fixed
A version is affected if any line below covers it.
- Affected before 2.0.1-145.module_el8.10.0+3984+cf55e3df
- Affected before 2.0.3-4.module_el8.10.0+4022+8b66723c
- rubygem-psych Fixed
A version is affected if any line below covers it.
- Affected before 4.0.4-145.module_el8.10.0+3984+cf55e3df
- Affected before 5.1.2-4.module_el8.10.0+4022+8b66723c
- rubygem-racc Fixed in 1.7.3-4.module_el8.10.0+4022+8b66723c
- rubygem-rake Fixed
A version is affected if any line below covers it.
- Affected before 13.0.6-145.module_el8.10.0+3984+cf55e3df
- Affected before 13.1.0-4.module_el8.10.0+4022+8b66723c
- rubygem-rbs Fixed
A version is affected if any line below covers it.
- Affected before 2.7.0-145.module_el8.10.0+3984+cf55e3df
- Affected before 3.4.0-4.module_el8.10.0+4022+8b66723c
- rubygem-rdoc Fixed
A version is affected if any line below covers it.
- Affected before 6.4.1.1-145.module_el8.10.0+3984+cf55e3df
- Affected before 6.6.3.1-4.module_el8.10.0+4022+8b66723c
- rubygem-rexml Fixed
A version is affected if any line below covers it.
- Affected before 3.3.9-145.module_el8.10.0+3984+cf55e3df
- Affected before 3.3.9-4.module_el8.10.0+4022+8b66723c
- rubygem-rss Fixed
A version is affected if any line below covers it.
- Affected before 0.3.1-145.module_el8.10.0+3984+cf55e3df
- Affected before 0.3.1-4.module_el8.10.0+4022+8b66723c
- rubygem-test-unit Fixed
A version is affected if any line below covers it.
- Affected before 3.5.3-145.module_el8.10.0+3984+cf55e3df
- Affected before 3.6.1-4.module_el8.10.0+4022+8b66723c
- rubygem-typeprof Fixed
A version is affected if any line below covers it.
- Affected before 0.21.3-145.module_el8.10.0+3984+cf55e3df
- Affected before 0.21.9-4.module_el8.10.0+4022+8b66723c
- rubygems Fixed
A version is affected if any line below covers it.
- Affected before 3.3.27-145.module_el8.10.0+3984+cf55e3df
- Affected before 3.5.22-4.module_el8.10.0+4022+8b66723c
- rubygems-devel Fixed
A version is affected if any line below covers it.
- Affected before 3.3.27-145.module_el8.10.0+3984+cf55e3df
- Affected before 3.5.22-4.module_el8.10.0+4022+8b66723c
Source: AlmaLinux, AlmaLinux OS. Copyright (c) 2023 AlmaLinux OS. Licensed under MIT License. Received through OSV.dev. Reformatted by exploit.cc.
AlmaLinux 9
- rubygem-mysql2 Fixed in 0.5.4-1.module_el9.1.0+8+503f6fbd
- rubygem-mysql2-doc Fixed in 0.5.4-1.module_el9.1.0+8+503f6fbd
- rubygem-pg Fixed in 1.3.5-1.module_el9.1.0+8+503f6fbd
- rubygem-pg-doc Fixed in 1.3.5-1.module_el9.1.0+8+503f6fbd
Source: AlmaLinux, AlmaLinux OS. Copyright (c) 2023 AlmaLinux OS. Licensed under MIT License. Received through OSV.dev. Reformatted by exploit.cc.
AlmaLinux 10
- ruby-default-gems Fixed in 3.3.8-10.el10_0
- ruby-doc Fixed in 3.3.8-10.el10_0
- rubygem-bundler Fixed in 2.5.22-10.el10_0
- rubygem-irb Fixed in 1.13.1-10.el10_0
- rubygem-minitest Fixed in 5.20.0-10.el10_0
- rubygem-power_assert Fixed in 2.0.3-10.el10_0
- rubygem-rake Fixed in 13.1.0-10.el10_0
- rubygem-rdoc Fixed in 6.6.3.1-10.el10_0
- rubygem-rexml Fixed in 3.3.9-10.el10_0
- rubygem-rss Fixed in 0.3.1-10.el10_0
- rubygem-test-unit Fixed in 3.6.1-10.el10_0
- rubygem-typeprof Fixed in 0.21.9-10.el10_0
- rubygems Fixed in 3.5.22-10.el10_0
- rubygems-devel Fixed in 3.5.22-10.el10_0
Source: AlmaLinux, AlmaLinux OS. Copyright (c) 2023 AlmaLinux OS. Licensed under MIT License. Received through OSV.dev. Reformatted by exploit.cc.
CloudLinux 8
- ruby Fixed
A version is affected if any line below covers it.
- Affected before 3.1.7-145.module_el8.10.0+3984+cf55e3df
- Affected before 3.3.8-4.module_el8.10.0+4022+8b66723c
- ruby-bundled-gems Fixed
A version is affected if any line below covers it.
- Affected before 3.1.7-145.module_el8.10.0+3984+cf55e3df
- Affected before 3.3.8-4.module_el8.10.0+4022+8b66723c
- ruby-default-gems Fixed
A version is affected if any line below covers it.
- Affected before 3.1.7-145.module_el8.10.0+3984+cf55e3df
- Affected before 3.3.8-4.module_el8.10.0+4022+8b66723c
- ruby-devel Fixed
A version is affected if any line below covers it.
- Affected before 3.1.7-145.module_el8.10.0+3984+cf55e3df
- Affected before 3.3.8-4.module_el8.10.0+4022+8b66723c
- ruby-doc Fixed
A version is affected if any line below covers it.
- Affected before 3.1.7-145.module_el8.10.0+3984+cf55e3df
- Affected before 3.3.8-4.module_el8.10.0+4022+8b66723c
- ruby-libs Fixed
A version is affected if any line below covers it.
- Affected before 3.1.7-145.module_el8.10.0+3984+cf55e3df
- Affected before 3.3.8-4.module_el8.10.0+4022+8b66723c
- rubygem-abrt Fixed
A version is affected if any line below covers it.
- Affected before 0.4.0-1.module_el8.10.0+3799+191214cc
- Affected before 0.4.0-1.module_el8.9.0+3746+91b8233a
- rubygem-abrt-doc Fixed
A version is affected if any line below covers it.
- Affected before 0.4.0-1.module_el8.10.0+3799+191214cc
- Affected before 0.4.0-1.module_el8.10.0+3854+02eaa59a
- rubygem-bigdecimal Fixed
A version is affected if any line below covers it.
- Affected before 3.1.1-145.module_el8.10.0+3984+cf55e3df
- Affected before 3.1.5-4.module_el8.10.0+4022+8b66723c
- rubygem-bundler Fixed
A version is affected if any line below covers it.
- Affected before 2.3.27-145.module_el8.10.0+3984+cf55e3df
- Affected before 2.5.22-4.module_el8.10.0+4022+8b66723c
- rubygem-io-console Fixed
A version is affected if any line below covers it.
- Affected before 0.5.11-145.module_el8.10.0+3984+cf55e3df
- Affected before 0.7.1-4.module_el8.10.0+4022+8b66723c
- rubygem-irb Fixed
A version is affected if any line below covers it.
- Affected before 1.13.1-4.module_el8.10.0+4022+8b66723c
- Affected before 1.4.1-145.module_el8.10.0+3984+cf55e3df
- rubygem-json Fixed
A version is affected if any line below covers it.
- Affected before 2.6.1-145.module_el8.10.0+3984+cf55e3df
- Affected before 2.7.2-4.module_el8.10.0+4022+8b66723c
- rubygem-minitest Fixed
A version is affected if any line below covers it.
- Affected before 5.15.0-145.module_el8.10.0+3984+cf55e3df
- Affected before 5.20.0-4.module_el8.10.0+4022+8b66723c
- rubygem-mysql2 Fixed
A version is affected if any line below covers it.
- Affected before 0.5.3-3.module_el8.10.0+3854+02eaa59a
- Affected before 0.5.3-3.module_el8.9.0+3746+91b8233a
- Affected before 0.5.5-1.module_el8.10.0+3799+191214cc
- rubygem-mysql2-doc Fixed
A version is affected if any line below covers it.
- Affected before 0.5.3-3.module_el8.10.0+3854+02eaa59a
- Affected before 0.5.5-1.module_el8.10.0+3799+191214cc
- rubygem-pg Fixed
A version is affected if any line below covers it.
- Affected before 1.3.2-1.module_el8.10.0+3854+02eaa59a
- Affected before 1.3.2-1.module_el8.9.0+3746+91b8233a
- Affected before 1.5.4-1.module_el8.10.0+3799+191214cc
- rubygem-pg-doc Fixed
A version is affected if any line below covers it.
- Affected before 1.3.2-1.module_el8.10.0+3854+02eaa59a
- Affected before 1.5.4-1.module_el8.10.0+3799+191214cc
- rubygem-power_assert Fixed
A version is affected if any line below covers it.
- Affected before 2.0.1-145.module_el8.10.0+3984+cf55e3df
- Affected before 2.0.3-4.module_el8.10.0+4022+8b66723c
- rubygem-psych Fixed
A version is affected if any line below covers it.
- Affected before 4.0.4-145.module_el8.10.0+3984+cf55e3df
- Affected before 5.1.2-4.module_el8.10.0+4022+8b66723c
- rubygem-racc Fixed in 1.7.3-4.module_el8.10.0+4022+8b66723c
- rubygem-rake Fixed
A version is affected if any line below covers it.
- Affected before 13.0.6-145.module_el8.10.0+3984+cf55e3df
- Affected before 13.1.0-4.module_el8.10.0+4022+8b66723c
- rubygem-rbs Fixed
A version is affected if any line below covers it.
- Affected before 2.7.0-145.module_el8.10.0+3984+cf55e3df
- Affected before 3.4.0-4.module_el8.10.0+4022+8b66723c
- rubygem-rdoc Fixed
A version is affected if any line below covers it.
- Affected before 6.4.1.1-145.module_el8.10.0+3984+cf55e3df
- Affected before 6.6.3.1-4.module_el8.10.0+4022+8b66723c
- rubygem-rexml Fixed
A version is affected if any line below covers it.
- Affected before 3.3.9-145.module_el8.10.0+3984+cf55e3df
- Affected before 3.3.9-4.module_el8.10.0+4022+8b66723c
- rubygem-rss Fixed
A version is affected if any line below covers it.
- Affected before 0.3.1-145.module_el8.10.0+3984+cf55e3df
- Affected before 0.3.1-4.module_el8.10.0+4022+8b66723c
- rubygem-test-unit Fixed
A version is affected if any line below covers it.
- Affected before 3.5.3-145.module_el8.10.0+3984+cf55e3df
- Affected before 3.6.1-4.module_el8.10.0+4022+8b66723c
- rubygem-typeprof Fixed
A version is affected if any line below covers it.
- Affected before 0.21.3-145.module_el8.10.0+3984+cf55e3df
- Affected before 0.21.9-4.module_el8.10.0+4022+8b66723c
- rubygems Fixed
A version is affected if any line below covers it.
- Affected before 3.3.27-145.module_el8.10.0+3984+cf55e3df
- Affected before 3.5.22-4.module_el8.10.0+4022+8b66723c
- rubygems-devel Fixed
A version is affected if any line below covers it.
- Affected before 3.3.27-145.module_el8.10.0+3984+cf55e3df
- Affected before 3.5.22-4.module_el8.10.0+4022+8b66723c
Derived from AlmaLinux 8. Partial coverage: only packages taken from AlmaLinux 8 are listed.
Source: CloudLinux errata, CloudLinux Inc. Derived from: AlmaLinux, AlmaLinux OS. Copyright (c) 2023 AlmaLinux OS. Licensed under MIT License. Received through OSV.dev. Reformatted by exploit.cc.
CloudLinux 9
- rubygem-mysql2 Fixed in 0.5.4-1.module_el9.1.0+8+503f6fbd
- rubygem-mysql2-doc Fixed in 0.5.4-1.module_el9.1.0+8+503f6fbd
- rubygem-pg Fixed in 1.3.5-1.module_el9.1.0+8+503f6fbd
- rubygem-pg-doc Fixed in 1.3.5-1.module_el9.1.0+8+503f6fbd
Derived from AlmaLinux 9. Partial coverage: only packages taken from AlmaLinux 9 are listed.
Source: CloudLinux errata, CloudLinux Inc. Derived from: AlmaLinux, AlmaLinux OS. Copyright (c) 2023 AlmaLinux OS. Licensed under MIT License. Received through OSV.dev. Reformatted by exploit.cc.
CloudLinux 10
- ruby-default-gems Fixed in 3.3.8-10.el10_0
- ruby-doc Fixed in 3.3.8-10.el10_0
- rubygem-bundler Fixed in 2.5.22-10.el10_0
- rubygem-irb Fixed in 1.13.1-10.el10_0
- rubygem-minitest Fixed in 5.20.0-10.el10_0
- rubygem-power_assert Fixed in 2.0.3-10.el10_0
- rubygem-rake Fixed in 13.1.0-10.el10_0
- rubygem-rdoc Fixed in 6.6.3.1-10.el10_0
- rubygem-rexml Fixed in 3.3.9-10.el10_0
- rubygem-rss Fixed in 0.3.1-10.el10_0
- rubygem-test-unit Fixed in 3.6.1-10.el10_0
- rubygem-typeprof Fixed in 0.21.9-10.el10_0
- rubygems Fixed in 3.5.22-10.el10_0
- rubygems-devel Fixed in 3.5.22-10.el10_0
Derived from AlmaLinux 10. Partial coverage: only packages taken from AlmaLinux 10 are listed.
Source: CloudLinux errata, CloudLinux Inc. Derived from: AlmaLinux, AlmaLinux OS. Copyright (c) 2023 AlmaLinux OS. Licensed under MIT License. Received through OSV.dev. Reformatted by exploit.cc.
Debian 12
- ruby3.1 No fix yet
- rubygems Fixed in 3.3.15-2+deb12u1
Source: Debian Security Tracker, the Debian security team. Received through OSV.dev. Reformatted by exploit.cc.
Debian 13
- ruby3.3 Fixed in 3.3.7-2
- rubygems Fixed in 3.6.6-1
Source: Debian Security Tracker, the Debian security team. Received through OSV.dev. Reformatted by exploit.cc.
Debian 14
- ruby3.3 Fixed in 3.3.7-2
- rubygems Fixed in 3.6.6-1
Source: Debian Security Tracker, the Debian security team. Received through OSV.dev. Reformatted by exploit.cc.
Ubuntu 16.04 LTS
- jruby No fix yet
Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.
Ubuntu 18.04 LTS
- jruby No fix yet
Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.
Ubuntu 20.04 LTS
- jruby No fix yet
- ruby2.7 Fixed in 2.7.0-5ubuntu1.18
Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.
Ubuntu 22.04 LTS
- ruby3.0 Fixed in 3.0.2-7ubuntu2.10
Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.
Ubuntu 24.04 LTS
- jruby No fix yet
- ruby3.2 Fixed in 3.2.3-1ubuntu0.24.04.5
Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.
Ubuntu 25.10
- jruby No fix yet
- ruby3.3 Fixed in 3.3.7-1ubuntu2
Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.
Ubuntu 26.04 LTS
- jruby No fix yet
Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.
Ubuntu 26.10
- jruby No fix yet
Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.
Ubuntu Pro 14.04 LTS
- jruby No fix yet
Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.
Ubuntu Pro 16.04 LTS
- ruby2.3 Fixed in 2.3.1-2~ubuntu16.04.16+esm10Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro
Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.
Ubuntu Pro 18.04 LTS
- ruby2.5 Fixed in 2.5.1-1ubuntu1.16+esm4Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro
Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.
A release or ecosystem missing from this list has no record here. It may be unaffected or not covered by the source. Source notices and licences.