Ubuntu CVE Tracker
UBUNTU-CVE-2025-27221
Details
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.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Ubuntu:Pro:14.04:LTS | jruby | All versions, no fix listed |
| Ubuntu:Pro:16.04:LTS | ruby2.3 | All versions before 2.3.1-2~ubuntu16.04.16+esm10 (fixed in 2.3.1-2~ubuntu16.04.16+esm10) |
| Ubuntu:16.04:LTS | jruby | All versions, no fix listed |
| Ubuntu:Pro:18.04:LTS | ruby2.5 | All versions before 2.5.1-1ubuntu1.16+esm4 (fixed in 2.5.1-1ubuntu1.16+esm4) |
| Ubuntu:18.04:LTS | jruby | All versions, no fix listed |
| Ubuntu:20.04:LTS | ruby2.7 | All versions before 2.7.0-5ubuntu1.18 (fixed in 2.7.0-5ubuntu1.18) |
| Ubuntu:20.04:LTS | jruby | All versions, no fix listed |
| Ubuntu:22.04:LTS | ruby3.0 | All versions before 3.0.2-7ubuntu2.10 (fixed in 3.0.2-7ubuntu2.10) |
| Ubuntu:24.04:LTS | jruby | All versions, no fix listed |
| Ubuntu:24.04:LTS | ruby3.2 | All versions before 3.2.3-1ubuntu0.24.04.5 (fixed in 3.2.3-1ubuntu0.24.04.5) |
| Ubuntu:25.10 | jruby | All versions, no fix listed |
| Ubuntu:25.10 | ruby3.3 | All versions before 3.3.7-1ubuntu2 (fixed in 3.3.7-1ubuntu2) |
| Ubuntu:26.10 | jruby | All versions, no fix listed |
| Ubuntu:26.04:LTS | jruby | All versions, no fix listed |
References
- https://ubuntu.com/security/CVE-2025-27221
- https://www.cve.org/CVERecord?id=CVE-2025-27221
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/uri/CVE-2025-27221.yml
- https://hackerone.com/reports/2957667
- https://ubuntu.com/security/notices/USN-7418-1
- https://ubuntu.com/security/notices/USN-7442-1