CVE-2025-27221
3.2
CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:L/I:N/A:N
Summary
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 Software
| Vendor | Product | Version Range | Status |
|---|---|---|---|
| ruby-lang | URI | 0 < 0.11.3 | affected |
| ruby-lang | URI | 0.12.0 < 0.12.4 | affected |
| ruby-lang | URI | 0.13.0 < 0.13.2 | affected |
| ruby-lang | URI | 1.0.0 < 1.0.3 | affected |
Weaknesses
- CWE-212: CWE-212 Improper Removal of Sensitive Information Before Storage or Transfer
ADP Enrichment
CISA ADP Vulnrichment
- SSVC:
- Exploitation: none
- Automatable: no
- Technical Impact: partial
CVE Program Container
Additional References
- https://lists.debian.org/debian-lts-announce/2025/05/msg00015.html
- https://lists.debian.org/debian-lts-announce/2025/03/msg00008.html
References
- https://hackerone.com/reports/2957667
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/uri/CVE-2025-27221.yml
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.