CVE-2025-27221
ADVISORY - githubSummary
There is a possibility for userinfo leakage by in the uri gem. This vulnerability has been assigned the CVE identifier CVE-2025-27221. We recommend upgrading the uri gem.
Details
The methods URI#join, URI#merge, and URI#+ retained userinfo, such as user:password, even after the host is replaced. When generating a URL to a malicious host from a URL containing secret userinfo using these methods, and having someone access that URL, an unintended userinfo leak could occur.
Please update URI gem to version 0.11.3, 0.12.4, 0.13.2, 1.0.3 or later.
Affected versions
uri gem versions < 0.11.3, 0.12.0 to 0.12.3, 0.13.0, 0.13.1 and 1.0.0 to 1.0.2.
Credits
Thanks to Tsubasa Irisawa (lambdasawa) for discovering this issue. Also thanks to nobu for additional fixes of this vulnerability.
Common Weakness Enumeration (CWE)
Improper Removal of Sensitive Information Before Storage or Transfer
OWASP Top Ten 2017 Category A9 - Using Components with Known Vulnerabilities
Exposure of Sensitive Information to an Unauthorized Actor
Improper Removal of Sensitive Information Before Storage or Transfer
OWASP Top Ten 2013 Category A9 - Using Components with Known Vulnerabilities
Improper Removal of Sensitive Information Before Storage or Transfer
NIST
1.4
CVSS SCORE
3.2lowGitHub
CVSS SCORE
2.1lowDebian
-
Ubuntu
3.9
CVSS SCORE
5.3mediumAlma
-
CVSS SCORE
N/AmediumAlma
-
CVSS SCORE
N/AmediumAmazon
-
CVSS SCORE
N/AmediumRed Hat
1.4
CVSS SCORE
3.2lowRocky
-
CVSS SCORE
N/AlowRocky
-
CVSS SCORE
N/AlowRocky
-
CVSS SCORE
N/AlowRocky
-
CVSS SCORE
N/AlowRocky
-
CVSS SCORE
N/AlowOracle
-
CVSS SCORE
N/AmediumOracle
-
CVSS SCORE
N/AmediumOracle
-
CVSS SCORE
N/AmediumOracle
-
CVSS SCORE
N/AmediumOracle
-
CVSS SCORE
N/AmediumChainguard
CGA-6628-mjw3-h54f
-
Chainguard
CGA-6qhg-6mx5-8g9x
-
Chainguard
CGA-79mj-jx8g-53m5
-
Chainguard
CGA-8mwg-56v4-76vr
-
Chainguard
CGA-9pw5-qrx9-h723
-
Chainguard
CGA-gmc6-8f4h-m7wq
-
Chainguard
CGA-h2vx-8jcv-q42j
-
Chainguard
CGA-h569-4h67-4cxv
-
Chainguard
CGA-hg25-58p6-ch23
-
Chainguard
CGA-mw49-rqc5-hg65
-
Chainguard
CGA-pqqp-m4px-prpq
-
Chainguard
CGA-rjhg-f5vr-33f2
-
Chainguard
CGA-wmmg-78p2-q8cf
-
Photon
CVE-2025-27221
-
CVSS SCORE
5.3mediumminimos
MINI-6c4r-w2x8-j455
-
minimos
MINI-6h56-9hp5-pv35
-
minimos
MINI-99gx-v4vj-qrx8
-
minimos
MINI-9x5x-9qgw-wrhq
-
minimos
MINI-fm47-8mvq-9f46
-
minimos
MINI-g2r5-q7w6-mmf2
-
minimos
MINI-g36m-x3vr-xg5w
-
minimos
MINI-gfcv-pr58-vg2w
-
minimos
MINI-h375-x4hx-vg53
-
minimos
MINI-q6qw-jj6h-f3h9
-
minimos
MINI-wp63-cqhf-vf9g
-
minimos
MINI-wv4q-r7rh-gwrf
-
minimos
MINI-x3ch-cgwc-f4m9
-
minimos
MINI-xqqg-375w-hwcg
-