Skip to content
Noroxi
CVE-2025-61594· NVD / CVE Program· CNA GitHub_M

URI Credential Leakage Bypass over CVE-2025-27221

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.

LowCVSS 2.1 · v4.0—No exploit Fix available
Published
Dec 30, 2025
Updated
Jun 17, 2026
EPSS
0.6% · 44th 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

8

Monitor

Low priority for now.

CVSS
8 / 40 · 2.1 / 10
CISA KEV
0 / 30 · Not listed
EPSS
0 / 30 · 0.6%

CISA SSVC decision

Exploitation
none
Automatable
yes
Technical impact
partial

Vulnrichment: CISA's decision-tree inputs.

CNA vs NVD score

NVD
—
CNA · GitHub_M
2.1
NVD has not scored this yet; the score shown is the CNA’s.

CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:N/SC:L/SI:N/SA: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.12.5
  • ruby-lang uri0.13.0 and later · before 0.13.3
  • ruby-lang uri1.0.0 and later · before 1.0.4

Versions reported by the vendor

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

  • ruby uri

    • < 0.12.5, >= 0.13.0, < 0.13.3, >= 1.0.0, < 1.0.4affected

Package-level exposure

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

EcosystemPackageAffected rangeFix
Alpine:v3.20rubybefore 3.3.10-r03.3.10-r0
Alpine:v3.23rubybefore 3.4.7-r03.4.7-r0
Debian:12ruby3.1all versions—
Debian:12rubygemsall versions—
Debian:13ruby3.3all versions—
openSUSE:Leap 16.0ruby3.4before 3.4.10-160000.1.13.4.10-160000.1.1
openSUSE:Tumbleweedruby3.4before 3.4.7-1.13.4.7-1.1
openSUSE:Tumbleweedrubygem-uribefore 1.1.1-1.11.1.1-1.1
Red Hat:enterprise_linux:10.1rubybefore 0:3.3.10-11.el10_10:3.3.10-11.el10_1
Red Hat:enterprise_linux:10.1ruby-bundled-gemsbefore 0:3.3.10-11.el10_10:3.3.10-11.el10_1
Red Hat:enterprise_linux:10.1ruby-bundled-gems-debuginfobefore 0:3.3.10-11.el10_10:3.3.10-11.el10_1
Red Hat:enterprise_linux:10.1ruby-debuginfobefore 0:3.3.10-11.el10_10:3.3.10-11.el10_1
Red Hat:enterprise_linux:10.1ruby-debugsourcebefore 0:3.3.10-11.el10_10:3.3.10-11.el10_1
Red Hat:enterprise_linux:10.1ruby-default-gemsbefore 0:3.3.10-11.el10_10:3.3.10-11.el10_1
Red Hat:enterprise_linux:10.1ruby-develbefore 0:3.3.10-11.el10_10:3.3.10-11.el10_1
Red Hat:enterprise_linux:10.1ruby-docbefore 0:3.3.10-11.el10_10:3.3.10-11.el10_1
Red Hat:enterprise_linux:10.1ruby-libsbefore 0:3.3.10-11.el10_10:3.3.10-11.el10_1
Red Hat:enterprise_linux:10.1ruby-libs-debuginfobefore 0:3.3.10-11.el10_10:3.3.10-11.el10_1
Red Hat:enterprise_linux:10.1rubygem-bigdecimalbefore 0:3.1.5-11.el10_10:3.1.5-11.el10_1
Red Hat:enterprise_linux:10.1rubygem-bigdecimal-debuginfobefore 0:3.1.5-11.el10_10:3.1.5-11.el10_1
Red Hat:enterprise_linux:10.1rubygem-bundlerbefore 0:2.5.22-11.el10_10:2.5.22-11.el10_1
Red Hat:enterprise_linux:10.1rubygem-io-consolebefore 0:0.7.1-11.el10_10:0.7.1-11.el10_1
Red Hat:enterprise_linux:10.1rubygem-io-console-debuginfobefore 0:0.7.1-11.el10_10:0.7.1-11.el10_1
Red Hat:enterprise_linux:10.1rubygem-irbbefore 0:1.13.1-11.el10_10:1.13.1-11.el10_1

+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-27221In 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
    21Monitor

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
alpine:ruby3.3.10-r0 · Alpine:v3.20Package registry (OSV)
opensuse:ruby3.43.4.7-1.1 · openSUSE:TumbleweedPackage registry (OSV)
opensuse:rubygem-uri1.1.1-1.1 · openSUSE:TumbleweedPackage registry (OSV)
red hat:ruby0:3.3.10-5.module+el8.10.0+23696+c42b0f57 · Red Hat:enterprise_linux:8::appstreamPackage registry (OSV)
red hat:ruby-bundled-gems0:3.3.10-5.module+el8.10.0+23696+c42b0f57 · Red Hat:enterprise_linux:8::appstreamPackage registry (OSV)
red hat:ruby-bundled-gems-debuginfo0:3.3.10-5.module+el8.10.0+23696+c42b0f57 · Red Hat:enterprise_linux:8::appstreamPackage registry (OSV)
red hat:ruby-debuginfo0:3.3.10-5.module+el8.10.0+23696+c42b0f57 · Red Hat:enterprise_linux:8::appstreamPackage registry (OSV)
red hat:ruby-debugsource0:3.3.10-5.module+el8.10.0+23696+c42b0f57 · Red Hat:enterprise_linux:8::appstreamPackage registry (OSV)
red hat:ruby-default-gems0:3.3.10-5.module+el8.10.0+23696+c42b0f57 · Red Hat:enterprise_linux:8::appstreamPackage registry (OSV)
red hat:ruby-devel0:3.3.10-5.module+el8.10.0+23696+c42b0f57 · Red Hat:enterprise_linux:8::appstreamPackage registry (OSV)
red hat:ruby-doc0:3.3.10-5.module+el8.10.0+23696+c42b0f57 · Red Hat:enterprise_linux:8::appstreamPackage registry (OSV)
red hat:ruby-libs0:3.3.10-5.module+el8.10.0+23696+c42b0f57 · Red Hat:enterprise_linux:8::appstreamPackage registry (OSV)
red hat:ruby-libs-debuginfo0:3.3.10-5.module+el8.10.0+23696+c42b0f57 · 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.10-5.module+el8.10.0+40038+e29e4152 · Rocky Linux:8Package registry (OSV)
rocky linux:rubygem-abrt0:0.4.0-1.module+el8.10.0+1827+16ecb9d2 · Rocky Linux:8Package registry (OSV)
rocky linux:rubygem-mysql20:0.5.5-1.module+el8.10.0+1679+61871737 · Rocky Linux:8Package registry (OSV)
rocky linux:rubygem-pg0:1.5.4-1.module+el8.10.0+1679+61871737 · Rocky Linux:8Package registry (OSV)
RubyGems:uri0.11.3Package registry (OSV)
RubyGems:uri0.12.4Package registry (OSV)
RubyGems:uri0.12.5Package registry (OSV)
RubyGems:uri0.13.2Package registry (OSV)
RubyGems:uri0.13.3Package registry (OSV)
RubyGems:uri1.0.3Package registry (OSV)
RubyGems:uri1.0.4Package registry (OSV)
suse:ruby3.43.4.10-150700.3.4.1 · SUSE:Linux Enterprise Module for Basesystem 15 SP7Package registry (OSV)

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

  • Someone with local access to the system 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
Integrity
Availability
Attack vector
Local
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
X

CVSS vector

CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:N/SC:L/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

nvd-secondary

Root cause

The extension requests broader permissions than its function needs and sends the data it collects out for purposes beyond its stated function.

A representative example of this vulnerability class. Not the vendor's source code; it shows the faulty pattern and its fix.

Vulnerable

json
{  "permissions": ["tabs", "<all_urls>"],  "background": { "service_worker": "analytics.js" }}

Fixed

json
{  "permissions": ["activeTab"],  "host_permissions": ["https://yildiz.example/*"]}

Noroxi analysis

No Noroxi analysis for this record yet

We don't hand-write analysis for all 385,000+ vulnerabilities; 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

Change log

  1. Fix✗ → ✓

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

References

All records