Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 950296 (CVE-2025-27221) - <dev-ruby/uri-1.0.3: userinfo leakage
Summary: <dev-ruby/uri-1.0.3: userinfo leakage
Status: RESOLVED FIXED
Alias: CVE-2025-27221
Product: Gentoo Security
Classification: Unclassified
Component: Vulnerabilities (show other bugs)
Hardware: All Linux
: Normal trivial
Assignee: Gentoo Security
URL: https://www.ruby-lang.org/en/news/202...
Whiteboard: ~3 [noglsa]
Keywords:
Depends on:
Blocks:
 
Reported: 2025-02-26 10:45 UTC by Hans de Graaff
Modified: 2025-03-23 14:06 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Hans de Graaff gentoo-dev Security 2025-02-26 10:45:29 UTC
CVE-2025-27221: userinfo leakage in URI#join, URI#merge and URI#+.

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.
Comment 1 Larry the Git Cow gentoo-dev 2025-02-27 07:23:28 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=87f29a3d1ca1dba2bb7c0f50d02b304bcdfd4f16

commit 87f29a3d1ca1dba2bb7c0f50d02b304bcdfd4f16
Author:     Hans de Graaff <graaff@gentoo.org>
AuthorDate: 2025-02-27 07:22:33 +0000
Commit:     Hans de Graaff <graaff@gentoo.org>
CommitDate: 2025-02-27 07:23:00 +0000

    dev-ruby/uri: add 1.0.3
    
    Bug: https://bugs.gentoo.org/950296
    Signed-off-by: Hans de Graaff <graaff@gentoo.org>

 dev-ruby/uri/Manifest         |  1 +
 dev-ruby/uri/uri-1.0.3.ebuild | 28 ++++++++++++++++++++++++++++
 2 files changed, 29 insertions(+)
Comment 2 Larry the Git Cow gentoo-dev 2025-03-23 14:05:10 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a58ae91be6f80627b5dfcd74c92a782217d1912e

commit a58ae91be6f80627b5dfcd74c92a782217d1912e
Author:     Hans de Graaff <graaff@gentoo.org>
AuthorDate: 2025-03-23 14:01:54 +0000
Commit:     Hans de Graaff <graaff@gentoo.org>
CommitDate: 2025-03-23 14:04:57 +0000

    dev-ruby/uri: drop 1.0.1, 1.0.2
    
    Bug: https://bugs.gentoo.org/950296
    Signed-off-by: Hans de Graaff <graaff@gentoo.org>

 dev-ruby/uri/Manifest         |  2 --
 dev-ruby/uri/uri-1.0.1.ebuild | 26 --------------------------
 dev-ruby/uri/uri-1.0.2.ebuild | 28 ----------------------------
 3 files changed, 56 deletions(-)