Skip to content
Noroxi
CVE-2025-27221· NVD / CVE Program· CNA mitre

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 cr

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.

MediumCVSS 5.3 · v3.1—No exploit Fix available

Noroxi analysis

No Noroxi analysis for this record yet

We don't hand-write analysis for the hundreds of thousands of vulnerabilities in the database; that wouldn't be honest. For notable, high-impact vulnerabilities our team writes the mechanism, detection and remediation steps.

We use this product, ask for help
Published
Mar 3, 2025
Updated
Jun 17, 2026
EPSS
0.5% · 41th percentile
Follow this CVE

Sign in to follow · You’ll be notified if a followed record enters KEV, gets an exploit or is updated.

Report tools

JSON

Action score

21

Monitor

Low priority for now.

CVSS
21 / 40 · 5.3 / 10
CISA KEV
0 / 30 · Not listed
EPSS
0 / 30 · 0.5%

CISA SSVC decision

Exploitation
none
Automatable
no
Technical impact
partial

Vulnrichment: CISA's decision-tree inputs.

CNA vs NVD score

NVD
5.3
CNA · mitre
3.2
2.1 point gap

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

The score given by the assigning authority versus NVD’s independent score. A gap means the severity is contested.

Affected systems

VendorProduct
ruby-languri

Affected versions

NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.

  • ruby-lang uribefore 0.11.3
  • ruby-lang uri0.12.0 and later · before 0.12.4
  • ruby-lang uri0.13.0 and later · before 0.13.2
  • ruby-lang uri1.0.0 and later · before 1.0.3

Versions reported by the vendor

Affected version ranges reported by the assigning authority (mitre). Independent of NVD's CPE analysis and usually ahead of it.

  • ruby-lang URI

    • before 0.11.3affected
    • 0.12.0 and later · before 0.12.4affected
    • 0.13.0 and later · before 0.13.2affected
    • 1.0.0 and later · before 1.0.3affected

Package-level exposure

OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.

EcosystemPackageAffected rangeFix
AlmaLinux:10ruby-default-gemsbefore 3.3.8-10.el10_03.3.8-10.el10_0
AlmaLinux:10ruby-docbefore 3.3.8-10.el10_03.3.8-10.el10_0
AlmaLinux:10rubygem-bundlerbefore 2.5.22-10.el10_02.5.22-10.el10_0
AlmaLinux:10rubygem-irbbefore 1.13.1-10.el10_01.13.1-10.el10_0
AlmaLinux:10rubygem-minitestbefore 5.20.0-10.el10_05.20.0-10.el10_0
AlmaLinux:10rubygem-power_assertbefore 2.0.3-10.el10_02.0.3-10.el10_0
AlmaLinux:10rubygem-rakebefore 13.1.0-10.el10_013.1.0-10.el10_0
AlmaLinux:10rubygem-rdocbefore 6.6.3.1-10.el10_06.6.3.1-10.el10_0
AlmaLinux:10rubygem-rexmlbefore 3.3.9-10.el10_03.3.9-10.el10_0
AlmaLinux:10rubygem-rssbefore 0.3.1-10.el10_00.3.1-10.el10_0
AlmaLinux:10rubygem-test-unitbefore 3.6.1-10.el10_03.6.1-10.el10_0
AlmaLinux:10rubygem-typeprofbefore 0.21.9-10.el10_00.21.9-10.el10_0
AlmaLinux:10rubygemsbefore 3.5.22-10.el10_03.5.22-10.el10_0
AlmaLinux:10rubygems-develbefore 3.5.22-10.el10_03.5.22-10.el10_0
AlmaLinux:8rubybefore 3.1.7-145.module_el8.10.0+3984+cf55e3df3.1.7-145.module_el8.10.0+3984+cf55e3df
AlmaLinux:8rubybefore 3.3.8-4.module_el8.10.0+4022+8b66723c3.3.8-4.module_el8.10.0+4022+8b66723c
AlmaLinux:8ruby-bundled-gemsbefore 3.3.8-4.module_el8.10.0+4022+8b66723c3.3.8-4.module_el8.10.0+4022+8b66723c
AlmaLinux:8ruby-bundled-gemsbefore 3.1.7-145.module_el8.10.0+3984+cf55e3df3.1.7-145.module_el8.10.0+3984+cf55e3df
AlmaLinux:8ruby-default-gemsbefore 3.3.8-4.module_el8.10.0+4022+8b66723c3.3.8-4.module_el8.10.0+4022+8b66723c
AlmaLinux:8ruby-default-gemsbefore 3.1.7-145.module_el8.10.0+3984+cf55e3df3.1.7-145.module_el8.10.0+3984+cf55e3df
AlmaLinux:8ruby-develbefore 3.3.8-4.module_el8.10.0+4022+8b66723c3.3.8-4.module_el8.10.0+4022+8b66723c
AlmaLinux:8ruby-develbefore 3.1.7-145.module_el8.10.0+3984+cf55e3df3.1.7-145.module_el8.10.0+3984+cf55e3df
AlmaLinux:8ruby-docbefore 3.3.8-4.module_el8.10.0+4022+8b66723c3.3.8-4.module_el8.10.0+4022+8b66723c
AlmaLinux:8ruby-docbefore 3.1.7-145.module_el8.10.0+3984+cf55e3df3.1.7-145.module_el8.10.0+3984+cf55e3df

+96

Other highest-scoring records for the same primary product.

  • CVE-2023-36617A ReDoS issue was discovered in the URI component before 0.12.2 for Ruby.
    22Monitor
  • CVE-2023-28755A ReDoS issue was discovered in the URI component through 0.12.0 in Ruby through 3.2.1.
    22Monitor
  • CVE-2025-61594URI Credential Leakage Bypass over CVE-2025-27221
    8Monitor

Remediation

Which version to upgrade to

Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.

Product / packageFixed versionSource
almalinux:ruby3.3.8-4.module_el8.10.0+4022+8b66723c · AlmaLinux:8Package registry (OSV)
almalinux:ruby-bundled-gems3.3.8-4.module_el8.10.0+4022+8b66723c · AlmaLinux:8Package registry (OSV)
almalinux:ruby-default-gems3.3.8-4.module_el8.10.0+4022+8b66723c · AlmaLinux:8Package registry (OSV)
almalinux:ruby-devel3.3.8-4.module_el8.10.0+4022+8b66723c · AlmaLinux:8Package registry (OSV)
almalinux:ruby-doc3.3.8-4.module_el8.10.0+4022+8b66723c · AlmaLinux:8Package registry (OSV)
almalinux:ruby-libs3.3.8-4.module_el8.10.0+4022+8b66723c · AlmaLinux:8Package registry (OSV)
almalinux:rubygem-abrt0.4.0-1.module_el8.10.0+3799+191214cc · AlmaLinux:8Package registry (OSV)
almalinux:rubygem-abrt-doc0.4.0-1.module_el8.10.0+3799+191214cc · AlmaLinux:8Package registry (OSV)
almalinux:rubygem-bigdecimal3.1.5-4.module_el8.10.0+4022+8b66723c · AlmaLinux:8Package registry (OSV)
almalinux:rubygem-bundler2.5.22-4.module_el8.10.0+4022+8b66723c · AlmaLinux:8Package registry (OSV)
almalinux:rubygem-io-console0.7.1-4.module_el8.10.0+4022+8b66723c · AlmaLinux:8Package registry (OSV)
almalinux:rubygem-irb1.13.1-4.module_el8.10.0+4022+8b66723c · AlmaLinux:8Package registry (OSV)
debian:ruby2.72.7.4-1+deb11u5 · Debian:11Package registry (OSV)
debian:ruby3.33.3.7-2 · Debian:13Package registry (OSV)
debian:rubygems3.3.15-2+deb12u1 · Debian:12Package registry (OSV)
opensuse:ruby2.52.5.9-150000.4.46.1 · openSUSE:Leap 15.6Package registry (OSV)
red hat:ruby0:3.3.8-4.module+el8.10.0+23024+a87ba659 · Red Hat:enterprise_linux:8::appstreamPackage registry (OSV)
red hat:ruby-bundled-gems0:3.3.8-4.module+el8.10.0+23024+a87ba659 · Red Hat:enterprise_linux:8::appstreamPackage registry (OSV)
red hat:ruby-bundled-gems-debuginfo0:3.3.8-4.module+el8.10.0+23024+a87ba659 · Red Hat:enterprise_linux:8::appstreamPackage registry (OSV)
red hat:ruby-debuginfo0:3.3.8-4.module+el8.10.0+23024+a87ba659 · Red Hat:enterprise_linux:8::appstreamPackage registry (OSV)
red hat:ruby-debugsource0:3.3.8-4.module+el8.10.0+23024+a87ba659 · Red Hat:enterprise_linux:8::appstreamPackage registry (OSV)
red hat:ruby-default-gems0:3.3.8-4.module+el8.10.0+23024+a87ba659 · Red Hat:enterprise_linux:8::appstreamPackage registry (OSV)
red hat:ruby-devel0:3.3.8-4.module+el8.10.0+23024+a87ba659 · Red Hat:enterprise_linux:8::appstreamPackage registry (OSV)
red hat:ruby-doc0:3.3.8-4.module+el8.10.0+23024+a87ba659 · Red Hat:enterprise_linux:8::appstreamPackage registry (OSV)
red hat:ruby-libs0:3.3.8-4.module+el8.10.0+23024+a87ba659 · Red Hat:enterprise_linux:8::appstreamPackage registry (OSV)
red hat:ruby-libs-debuginfo0:3.3.8-4.module+el8.10.0+23024+a87ba659 · Red Hat:enterprise_linux:8::appstreamPackage registry (OSV)
red hat:rubygem-abrt0:0.4.0-1.module+el8.10.0+21226+b78a28c4 · Red Hat:enterprise_linux:8::appstreamPackage registry (OSV)
red hat:rubygem-abrt-doc0:0.4.0-1.module+el8.10.0+21226+b78a28c4 · Red Hat:enterprise_linux:8::appstreamPackage registry (OSV)
rocky linux:ruby0:3.3.8-4.module+el8.10.0+2004+fd6e8d72 · Rocky Linux:8Package registry (OSV)
rocky linux:rubygem-abrt0:0.4.0-1.module+el8.10.0+1827+16ecb9d2 · Rocky Linux:8Package registry (OSV)

+7

Exploit status

No known public exploit

No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.

Research context

For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.

Timeline

From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.

No dated events beyond publication.

EPSS, last 120 days

FIRST EPSS daily score; only changes of 0.01 or more are recorded (step chart).

Patch and commit links

Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.

No commit or PR link among the references.

Finders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.

No credits in the CNA record.

Variant candidates

Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.

No nightly-computed relations.

Chain candidates

An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.

—

Bug bounty scope

The product’s vendor appears in a public program. Matched by name; verify the scope text in the program.

Technical details

Attack conditions

  • Anyone who can reach it over the internet can trigger it.
  • No account or password is required.
  • No user action is required.
  • No special conditions are required; it is repeatable.

If successful

Confidentiality
low · data can be read
Integrity
none
Availability
none
Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality impact
Low
Integrity impact
None
Availability impact
None

CVSS vector

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

nvd-primary

Attack context

MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.

ATT&CK techniques

—

Change log

  1. Fix✗ → ✓

For records you follow, these changes also arrive as notifications. →

References

All records