CVE-2025-27221
LOW3.2EPSS 0.16%URI allows for userinfo Leakage in URI#join, URI#merge, and URI#+
發布日:2025/3/3修改日:2026/4/28
描述
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.
受影響套件(5)
- Debian/ruby2.7from 0, < 2.7.4-1+deb11u5
- Debian/ruby3.1from 0
- Debian/ruby3.3from 0, < 3.3.7-2
- Debian/rubygemsfrom 0, < 3.2.5-2+deb11u1
- RubyGems/urifrom 0, < 0.11.3
CVSS 分數
| 來源 | 版本 | 嚴重程度 | 向量 |
|---|---|---|---|
| osv | CVSS 4.0 | — | CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:N/SC:L/SI:N/SA:N |
| osv | CVSS 3.1 | LOW3.2 | CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:L/I:N/A:N |
參考連結(13)
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2025-27221
- ADVISORYhttps://security-tracker.debian.org/tracker/CVE-2025-27221
- PATCHhttps://github.com/ruby/uri
- WEBhttps://github.com/rubysec/ruby-advisory-db/blob/master/gems/uri/CVE-2025-27221.yml
- WEBhttps://github.com/ruby/uri/pull/154
- WEBhttps://github.com/ruby/uri/pull/155
- WEBhttps://github.com/ruby/uri/pull/156
- WEBhttps://github.com/ruby/uri/pull/157
- WEBhttps://hackerone.com/reports/2957667
- WEBhttps://lists.debian.org/debian-lts-announce/2025/03/msg00008.html
- WEBhttps://lists.debian.org/debian-lts-announce/2025/05/msg00015.html
- WEBhttps://www.cve.org/CVERecord?id=CVE-2025-27221
- WEBhttps://www.ruby-lang.org/en/news/2025/02/26/security-advisories