URI is a module providing classes to handle Uniform Resource Identifiers. In versions 0.12.4 and earlier (bundled in Ruby 3.2 series) 0.13.2 and earlier (bundled in Ruby 3.3 series), 1.0.3 and earlier (bundled in Ruby 3.4 series), when using the + operator to combine URIs, sensitive information like passwords from the original URI can be leaked, violating RFC3986 and making applications vulnerable to credential exposure. This is a a bypass for the fix to CVE-2025-27221 that can expose user credentials. This issue has been fixed in versions 0.12.5, 0.13.3 and 1.0.4.
The product exposes sensitive information to an actor that is not explicitly authorized to have access to that information.
| Name | Vendor | Start Version | End Version |
|---|---|---|---|
| Uri | Ruby-lang | * | 0.12.5 (excluding) |
| Uri | Ruby-lang | 0.13.0 (including) | 0.13.3 (excluding) |
| Uri | Ruby-lang | 1.0.0 (including) | 1.0.4 (excluding) |
| Red Hat Enterprise Linux 10 | RedHat | ruby-0:3.3.10-11.el10_1 | * |
| Red Hat Enterprise Linux 8 | RedHat | ruby:3.3-8100020251124151715.489197e6 | * |
| Red Hat Enterprise Linux 9 | RedHat | ruby:3.3-9070020251113101221.9 | * |
| Jruby | Ubuntu | plucky | * |
| Ruby2.3 | Ubuntu | esm-infra-legacy/xenial | * |
| Ruby2.3 | Ubuntu | esm-infra/xenial | * |
| Ruby2.5 | Ubuntu | esm-infra/bionic | * |
| Ruby2.7 | Ubuntu | esm-infra/focal | * |
| Ruby3.0 | Ubuntu | jammy | * |
| Ruby3.2 | Ubuntu | noble | * |
| Ruby3.3 | Ubuntu | devel | * |
| Ruby3.3 | Ubuntu | plucky | * |
| Ruby3.3 | Ubuntu | questing | * |
| Ruby3.3 | Ubuntu | resolute | * |
There are many different kinds of mistakes that introduce information exposures. The severity of the error can range widely, depending on the context in which the product operates, the type of sensitive information that is revealed, and the benefits it may provide to an attacker. Some kinds of sensitive information include:
Information might be sensitive to different parties, each of which may have their own expectations for whether the information should be protected. These parties include:
Information exposures can occur in different ways:
It is common practice to describe any loss of confidentiality as an “information exposure,” but this can lead to overuse of CWE-200 in CWE mapping. From the CWE perspective, loss of confidentiality is a technical impact that can arise from dozens of different weaknesses, such as insecure file permissions or out-of-bounds read. CWE-200 and its lower-level descendants are intended to cover the mistakes that occur in behaviors that explicitly manage, store, transfer, or cleanse sensitive information.