CVE & CISA-KEV Catalog

CVE-2025-27221

LOW
3.2
CVSS v3
NVD

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.

How to fix

Remediation Available
ruby3.2Amazon
Fixed in:0:3.2.7-183.amzn2023.0.2
Fixed in:0:3.2.7-183.amzn2023.0.2
ruby3.2-bundled-gemsAmazon
Fixed in:0:3.2.7-183.amzn2023.0.2
Fixed in:0:3.2.7-183.amzn2023.0.2
ruby3.2-bundled-gems-debuginfoAmazon
Fixed in:0:3.2.7-183.amzn2023.0.2
Fixed in:0:3.2.7-183.amzn2023.0.2
ruby3.2-debuginfoAmazon
Fixed in:0:3.2.7-183.amzn2023.0.2
Fixed in:0:3.2.7-183.amzn2023.0.2
ruby3.2-debugsourceAmazon
Fixed in:0:3.2.7-183.amzn2023.0.2
Fixed in:0:3.2.7-183.amzn2023.0.2
ruby3.2-default-gemsAmazon
Fixed in:0:3.2.7-183.amzn2023.0.2
ruby3.2-develAmazon
Fixed in:0:3.2.7-183.amzn2023.0.2
Fixed in:0:3.2.7-183.amzn2023.0.2
ruby3.2-docAmazon
Fixed in:0:3.2.7-183.amzn2023.0.2
ruby3.2-libsAmazon
Fixed in:0:3.2.7-183.amzn2023.0.2
Fixed in:0:3.2.7-183.amzn2023.0.2
ruby3.2-libs-debuginfoAmazon
Fixed in:0:3.2.7-183.amzn2023.0.2
Fixed in:0:3.2.7-183.amzn2023.0.2
ruby3.2-rubygem-bigdecimalAmazon
Fixed in:0:3.1.3-183.amzn2023.0.2
Fixed in:0:3.1.3-183.amzn2023.0.2
ruby3.2-rubygem-bigdecimal-debuginfoAmazon
Fixed in:0:3.1.3-183.amzn2023.0.2
Fixed in:0:3.1.3-183.amzn2023.0.2
ruby3.2-rubygem-bundlerAmazon
Fixed in:0:2.4.19-183.amzn2023.0.2
ruby3.2-rubygem-io-consoleAmazon
Fixed in:0:0.6.0-183.amzn2023.0.2
Fixed in:0:0.6.0-183.amzn2023.0.2
ruby3.2-rubygem-io-console-debuginfoAmazon
Fixed in:0:0.6.0-183.amzn2023.0.2
Fixed in:0:0.6.0-183.amzn2023.0.2
ruby3.2-rubygem-irbAmazon
Fixed in:0:1.6.2-183.amzn2023.0.2
ruby3.2-rubygem-jsonAmazon
Fixed in:0:2.6.3-183.amzn2023.0.2
Fixed in:0:2.6.3-183.amzn2023.0.2
ruby3.2-rubygem-json-debuginfoAmazon
Fixed in:0:2.6.3-183.amzn2023.0.2
Fixed in:0:2.6.3-183.amzn2023.0.2
ruby3.2-rubygem-minitestAmazon
Fixed in:0:5.25.1-183.amzn2023.0.2
ruby3.2-rubygem-power_assertAmazon
Fixed in:0:2.0.3-183.amzn2023.0.2
ruby3.2-rubygem-psychAmazon
Fixed in:0:5.0.1-183.amzn2023.0.2
Fixed in:0:5.0.1-183.amzn2023.0.2
ruby3.2-rubygem-psych-debuginfoAmazon
Fixed in:0:5.0.1-183.amzn2023.0.2
Fixed in:0:5.0.1-183.amzn2023.0.2
ruby3.2-rubygem-rakeAmazon
Fixed in:0:13.0.6-183.amzn2023.0.2
ruby3.2-rubygem-rbsAmazon
Fixed in:0:2.8.2-183.amzn2023.0.2
Fixed in:0:2.8.2-183.amzn2023.0.2
ruby3.2-rubygem-rbs-debuginfoAmazon
Fixed in:0:2.8.2-183.amzn2023.0.2
Fixed in:0:2.8.2-183.amzn2023.0.2
ruby3.2-rubygem-rdocAmazon
Fixed in:0:6.5.1.1-183.amzn2023.0.2
ruby3.2-rubygem-rexmlAmazon
Fixed in:0:3.3.9-183.amzn2023.0.2
ruby3.2-rubygem-rssAmazon
Fixed in:0:0.3.1-183.amzn2023.0.2
ruby3.2-rubygem-test-unitAmazon
Fixed in:0:3.5.7-183.amzn2023.0.2
ruby3.2-rubygem-typeprofAmazon
Fixed in:0:0.21.3-183.amzn2023.0.2

This vulnerability affects an unusually large number of packages. The highest-confidence fixes are shown above; the full list is longer. Check the referenced advisories for complete coverage.

TridentStack Control can deploy fixes like this automatically across your Windows, macOS, and Linux fleet. See how it works

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3 Vector

Exploitability

Attack VectorLocal
Attack ComplexityHigh
Privileges RequiredNone
User InteractionNone
ScopeChanged

Impact

ConfidentialityLow
IntegrityNone
AvailabilityNone

CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:L/I:N/A:N

Exploit Intelligence

0.50%probability of exploitation in 30 days
41stpercentile

Moderate risk: more likely to be exploited than 41% of all known CVEs.

References

Third-Party Advisory1

Related Vulnerabilities

Other CWE-212 vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2020-1940High7.54.5%--
CVE-2022-29900Medium6.53.8%-Fix
CVE-2002-0704High7.53.2%--
CVE-2020-15094High8.03.0%-Fix
CVE-2022-23633High7.42.2%-Fix
CVE-2019-19362Medium6.52.1%--

Common questions

How do I fix CVE-2025-27221?

Published advisories record a fix for 130 affected products. The "How to fix" section on this page lists the fixed version and source advisory for each one, so apply the entry matching what you actually run.

Is CVE-2025-27221 being actively exploited?

Not that we know of. CVE-2025-27221 is not in the CISA Known Exploited Vulnerabilities catalog. Its EPSS score of 0.50% is the estimated probability that it will be exploited in the next 30 days. That is higher than 41% of all scored CVEs.

How severe is CVE-2025-27221?

CVE-2025-27221 has a CVSS v3 base score of 3.2, rated low. CVSS rates the technical impact if the vulnerability is exploited, not how likely that is, so weigh it alongside the exploit-prediction score when you decide what to patch first.

What does CVE-2025-27221 affect?

Published advisories record a fix for ruby3.2 (Amazon), ruby3.2-bundled-gems (Amazon), ruby3.2-bundled-gems-debuginfo (Amazon), ruby3.2-debuginfo (Amazon), and 126 more. Only products with a sourced advisory are listed, so treat this as what we can cite rather than a complete inventory.

Embed a live status badge for CVE-2025-27221
CVE-2025-27221 severity badge

Markdown

[![CVE-2025-27221](https://tridentstack.com/cve/badge/CVE-2025-27221.svg)](https://tridentstack.com/cve/CVE-2025-27221)

HTML

<a href="https://tridentstack.com/cve/CVE-2025-27221"><img src="https://tridentstack.com/cve/badge/CVE-2025-27221.svg" alt="CVE-2025-27221"></a>

Check your Linux endpoints for this class of vulnerability

TridentStack Control continuously scans Linux endpoints for known vulnerabilities and deploys the fixes from the same console. 200 endpoints free forever, no credit card.

Patch your fleet freeStart freeThis CVE lookup is free and always will be.

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2026-06-17.