CVE-2025-27221: ruby-lang uri
CVSS: 5.3v3.1MediumModified
AliasesUBUNTU-CVE-2025-27221DEBIAN-CVE-2025-27221CGA-23q6-fj9g-4hf9CGA-3jfw-h369-4qwgCGA-4cq4-j446-cww4CGA-4pr8-f45j-53rrCGA-4x8v-x366-2hw8CGA-538j-2wp8-66ppCGA-54r3-49cm-4mjrCGA-5cm4-478j-v5rgCGA-5qx8-3vmh-74qfCGA-6q97-gxg3-cw9vCGA-79g9-jhg6-95x2CGA-7hx5-2x5h-3c53CGA-7mq3-mr96-cxwhCGA-824c-pwxw-58rqCGA-8fqj-j4rq-4p52CGA-8wqf-82h9-g39gCGA-9v2m-47p5-2rgmCGA-9xfx-x3x5-72wvCGA-c72q-vwf2-q22mCGA-cjc3-8qhj-9qf2CGA-f5fr-wc6h-pj8mCGA-fcwj-fg85-ggmjCGA-fmw6-xxrv-qcfwCGA-fv7q-w39g-qpwpCGA-fw9q-xh7q-c97gCGA-gm2j-4vhj-q76qCGA-gpxr-9rjv-r8j5CGA-gr3h-52x8-g496CGA-h3h2-j3mg-wvjhCGA-j3c6-w7jq-427cCGA-jjc5-277x-qjf5CGA-jw39-6r3p-w5m5CGA-p59q-3v22-6mwmCGA-p6c2-4cf8-rcvxCGA-pg5f-6948-4mjwCGA-q4wx-9x47-7fp3CGA-r75p-pjpx-gh59CGA-rv4v-4fr9-m6hqCGA-x58h-v5v9-rh3wCGA-xh77-hm78-5m58CGA-xqpp-xvvg-r66fCGA-xqwh-3rg5-884fCGA-2962-r59r-q46mCGA-2p8g-xxf3-cxc6CGA-3jc8-jf7v-6vxrCGA-3v46-286r-9pvvCGA-536h-wm62-jg3hCGA-5vv6-h63q-3qvwCGA-6773-w59v-4gxfCGA-6fqc-fhfj-vhx4CGA-6hqv-4554-c7cjCGA-6r99-w77x-phm3CGA-6v2f-vvq3-fqm4CGA-727q-pq2g-593jCGA-739j-82pv-f8fwCGA-77p7-f86v-3j94CGA-7fw6-88x7-6vqqCGA-825c-943g-7j89CGA-827h-v687-wv47CGA-82g8-8x8x-xqc7CGA-86vq-9883-fpqqCGA-8733-r26r-pxf5CGA-8734-9hgf-5vr4CGA-89w9-wm2p-7f78CGA-8h32-9676-55mhCGA-8mcq-vgmc-7qggCGA-8mv4-c7ph-v4vfCGA-93c2-752x-f36jCGA-959h-2qvg-42qmCGA-975f-4jcf-6gg3CGA-9f7m-66vm-h4v7CGA-cjrf-pm4r-cjmwCGA-cv5x-7r87-9j75CGA-g39p-pqhh-f3c8CGA-g6fc-2gcp-29ghCGA-gq7c-gm92-7wv3CGA-gq99-4frm-qx2vCGA-h3xf-rqfp-5227CGA-h7x3-7jqv-jc2qCGA-hj5f-69fh-vq74CGA-j7w8-mrm3-hqwjCGA-mpr7-4wwr-f4c8GHSA-22h5-pq3x-2gf2CGA-q7hv-fjg5-3f8hCGA-qmpw-vfg5-mm9wCGA-qq2v-w45x-43c5CGA-qrr2-r2qm-mjf5CGA-rjjp-9hv9-7ghfCGA-rrp3-59pj-m29wCGA-v6xx-88gq-rx73CGA-v895-63q7-j4gjCGA-vchr-w9r6-7x38CGA-vg85-28wx-6mjfCGA-vh48-j7p3-2p9wCGA-vpqg-cgr3-vc7pCGA-wf92-q85x-j2xpCGA-xc95-mggw-4hrgCGA-xfqx-mqvw-hhp9CGA-xw75-rxq4-qhqv
Published 03-03-2025Last modified 03-11-2025
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 42.4% of scored vulnerabilities.
CVSS score
5.3/10
010
Medium · v3.1 (NVD)EPSS score
0.51%
0%100%
Low · +0.01 pp in 30 daysKEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits0No public exploits recorded
Advisory lineage
Upstream 0 · Downstream 13 · Related 17DLA-4082-1DLA-4163-1MGASA-2025-0290RHSA-2025:10217RHSA-2025:4063RHSA-2025:4488RHSA-2025:4493RHSA-2025:8131SUSE-SU-2025:02739-1SUSE-SU-2025:02739-2SUSE-SU-2025:4264-1USN-7418-1USN-7442-1CGA-5W7V-PFGX-27J2CGA-6QHG-6MX5-8G9XCGA-79MJ-JX8G-53M5CGA-9PW5-QRX9-H723CGA-GMC6-8F4H-M7WQCGA-H2VX-8JCV-Q42JCGA-H569-4H67-4CXVCGA-HG25-58P6-CH23CGA-MW49-RQC5-HG65CGA-PQQP-M4PX-PRPQCGA-RJHG-F5VR-33F2CVE-2025-61594
Timeline
- 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 versionsLow 2.1Preferred score · OSV · Rubygems (Ecosystem advisory) · calculated from 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:NSourcesSingle source
Medium 5.3Preferred score · NVD (NIST)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:NSources7 sources · 3.2–5.3
- 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
42%
Versus all other CVEs
30-day change
+0.01 pp
From 0.50% on 19-09-2026
19-09-202619-10-2026
EPSS score0.51%
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
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.1All 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