CVE-2025-27221: ruby-lang uri
Vulnerability summary
CVE-2025-27221 is a medium (CVSS 5.3) vulnerability in ruby-lang uri. EPSS estimates a 0.51% chance of exploitation in the next 30 days, higher than 45.1% of scored vulnerabilities.
Not severe (CVSS 3.2, local access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 14 · Related 17Timeline
- 03-03-2025PublishedVulnerability first disclosed.
- 03-11-2025Last modifiedVulnerability information updated.
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.
CVSS metrics
8 scores · 7 sources · 2 versions- CVE.orgCNA3.2LowCVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:L/I:N/A:NDiffers
- OSV · UbuntuEcosystem advisory · calculated5.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
- OSV · DebianEcosystem advisory · calculated5.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
- OSV · WolfiEcosystem advisory · calculated3.2LowCVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:L/I:N/A:NDiffers
- OSV · ChainguardEcosystem advisory · calculated3.2LowCVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:L/I:N/A:NDiffers
- OSV · RubygemsEcosystem advisory · calculated3.2LowCVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:L/I:N/A:NDiffers
EPSS trend
Probability
0.51%
Chance of exploitation in the next 30 days
Percentile
45%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.51% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: local access, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Chainguard47 products
- elasticsearch-8.17< 8.17.10-r13
- jruby-9.4< 9.4.14.0-r0
- jruby-9.4-default-ruby< 9.4.14.0-r0
- kube-fluentd-operator< 1.18.2-r33
- kube-fluentd-operator-compat< 1.18.2-r33
Wolfi20 products
- jruby-9.4< 9.4.14.0-r0
- jruby-9.4-default-ruby< 9.4.14.0-r0
- kube-fluentd-operator< 1.18.2-r33
- kube-fluentd-operator-compat< 1.18.2-r33
- kube-fluentd-operator-default-config< 1.18.2-r33
Ubuntu7 products
- jrubyAll versions (No fix recorded)
- ruby2.3< 2.3.1-2~ubuntu16.04.16+esm10
- ruby2.5< 2.5.1-1ubuntu1.16+esm4
- ruby2.7< 2.7.0-5ubuntu1.18
- ruby3.0< 3.0.2-7ubuntu2.10
Debian3 products
- ruby3.1< 3.1.7-1~deb12u2 | All versions (No fix recorded)
- ruby3.3< 3.3.7-2
- rubygems< 3.3.15-2+deb12u1 | < 3.6.6-1
Ruby-lang1 product
- uri< 0.11.3 | ≥ 0.12.0, < 0.12.4 | ≥ 0.13.0, < 0.13.2 | ≥ 1.0.0, < 1.0.3
RubyGems1 product
- uri< 0.11.3 | ≥ 0.12.0, < 0.12.4 | ≥ 0.13.0, < 0.13.2 | ≥ 1.0.0, < 1.0.3
6 vendors · 79 products
References
17 links- github.com/rubysec/ruby-advisory-db/blob/master/gems/uri/CVE-2025-27221.ymlREPORTAdvisoryWEBThird Party Advisory