CVEvulnerability
CVE-2025-27221
5.3 MEDIUM
Official page ↗
- Status
- Modified
- Published
- 2025-03-04
- Last modified
- 2026-06-17
- Assigner
- [email protected]
- CVSS 3.1 ([email protected])
- 3.2 LOW — CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:L/I:N/A:N
- CVSS 3.1 ([email protected])
- 5.3 MEDIUM — CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
- Weaknesses
- CWE-212
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.
Affected configurations
• ruby-lang uri (< 0.11.3)
• ruby-lang uri (>= 0.12.0 < 0.12.4)
• ruby-lang uri (>= 0.13.0 < 0.13.2)
• ruby-lang uri (>= 1.0.0 < 1.0.3)
Related
Weakness · CWE (1)
- CWE-212 Improper Removal of Sensitive Information Before Storage or Transfer weakness
References
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/uri/CVE-2025-27221.yml Third Party Advisory
- https://hackerone.com/reports/2957667 Permissions Required
- https://lists.debian.org/debian-lts-announce/2025/03/msg00008.html lists.debian.org
- https://lists.debian.org/debian-lts-announce/2025/05/msg00015.html lists.debian.org