# CVE-2025-27221

- Priority: **Routine**
- Reason: Not severe (CVSS 3.2, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2025-03-03 · Modified: 2025-11-03
- Aliases: UBUNTU-CVE-2025-27221, DEBIAN-CVE-2025-27221, CGA-23q6-fj9g-4hf9, CGA-3jfw-h369-4qwg, CGA-4cq4-j446-cww4, CGA-4pr8-f45j-53rr, CGA-4x8v-x366-2hw8, CGA-538j-2wp8-66pp, CGA-54r3-49cm-4mjr, CGA-5cm4-478j-v5rg, CGA-5qx8-3vmh-74qf, CGA-6q97-gxg3-cw9v, CGA-79g9-jhg6-95x2, CGA-7hx5-2x5h-3c53, CGA-7mq3-mr96-cxwh, CGA-824c-pwxw-58rq, CGA-8fqj-j4rq-4p52, CGA-8wqf-82h9-g39g, CGA-9v2m-47p5-2rgm, CGA-9xfx-x3x5-72wv, CGA-c72q-vwf2-q22m, CGA-cjc3-8qhj-9qf2, CGA-f5fr-wc6h-pj8m, CGA-fcwj-fg85-ggmj, CGA-fmw6-xxrv-qcfw, CGA-fv7q-w39g-qpwp, CGA-fw9q-xh7q-c97g, CGA-gm2j-4vhj-q76q, CGA-gpxr-9rjv-r8j5, CGA-gr3h-52x8-g496, CGA-h3h2-j3mg-wvjh, CGA-j3c6-w7jq-427c, CGA-jjc5-277x-qjf5, CGA-jw39-6r3p-w5m5, CGA-p59q-3v22-6mwm, CGA-p6c2-4cf8-rcvx, CGA-pg5f-6948-4mjw, CGA-q4wx-9x47-7fp3, CGA-r75p-pjpx-gh59, CGA-rv4v-4fr9-m6hq, CGA-x58h-v5v9-rh3w, CGA-xh77-hm78-5m58, CGA-xqpp-xvvg-r66f, CGA-xqwh-3rg5-884f, CGA-2962-r59r-q46m, CGA-2p8g-xxf3-cxc6, CGA-3jc8-jf7v-6vxr, CGA-3v46-286r-9pvv, CGA-536h-wm62-jg3h, CGA-5vv6-h63q-3qvw, CGA-6773-w59v-4gxf, CGA-6fqc-fhfj-vhx4, CGA-6hqv-4554-c7cj, CGA-6r99-w77x-phm3, CGA-6v2f-vvq3-fqm4, CGA-727q-pq2g-593j, CGA-739j-82pv-f8fw, CGA-77p7-f86v-3j94, CGA-7fw6-88x7-6vqq, CGA-825c-943g-7j89, CGA-827h-v687-wv47, CGA-82g8-8x8x-xqc7, CGA-86vq-9883-fpqq, CGA-8733-r26r-pxf5, CGA-8734-9hgf-5vr4, CGA-89w9-wm2p-7f78, CGA-8h32-9676-55mh, CGA-8mcq-vgmc-7qgg, CGA-8mv4-c7ph-v4vf, CGA-93c2-752x-f36j, CGA-959h-2qvg-42qm, CGA-975f-4jcf-6gg3, CGA-9f7m-66vm-h4v7, CGA-cjrf-pm4r-cjmw, CGA-cv5x-7r87-9j75, CGA-g39p-pqhh-f3c8, CGA-g6fc-2gcp-29gh, CGA-gq7c-gm92-7wv3, CGA-gq99-4frm-qx2v, CGA-h3xf-rqfp-5227, CGA-h7x3-7jqv-jc2q, CGA-hj5f-69fh-vq74, CGA-j7w8-mrm3-hqwj, CGA-mpr7-4wwr-f4c8, GHSA-22h5-pq3x-2gf2, CGA-q7hv-fjg5-3f8h, CGA-qmpw-vfg5-mm9w, CGA-qq2v-w45x-43c5, CGA-qrr2-r2qm-mjf5, CGA-rjjp-9hv9-7ghf, CGA-rrp3-59pj-m29w, CGA-v6xx-88gq-rx73, CGA-v895-63q7-j4gj, CGA-vchr-w9r6-7x38, CGA-vg85-28wx-6mjf, CGA-vh48-j7p3-2p9w, CGA-vpqg-cgr3-vc7p, CGA-wf92-q85x-j2xp, CGA-xc95-mggw-4hrg, CGA-xfqx-mqvw-hhp9, CGA-xw75-rxq4-qhqv
- Record: https://cvemate.com/vulnerability/CVE-2025-27221 · JSON: https://cvemate.com/vulnerability/CVE-2025-27221/json

## Description

```text
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.
```

## Signals

- CVSS: 5.3 medium (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
- EPSS: 0.511%, percentile 45.138%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 79)

- chainguard elasticsearch-8.17 (Chainguard): \< 8.17.10-r13
- chainguard jruby-9.4 (Chainguard): \< 9.4.14.0-r0
- chainguard jruby-9.4-default-ruby (Chainguard): \< 9.4.14.0-r0
- chainguard kube-fluentd-operator (Chainguard): \< 1.18.2-r33
- chainguard kube-fluentd-operator-compat (Chainguard): \< 1.18.2-r33
- chainguard kube-fluentd-operator-default-config (Chainguard): \< 1.18.2-r33
- chainguard kube-fluentd-operator-oci-entrypoint (Chainguard): \< 1.18.2-r33
- chainguard logstash-8-with-output-opensearch (Chainguard): All versions (No fix recorded)
- chainguard logstash-8.17 (Chainguard): All versions (No fix recorded)
- chainguard logstash-8.17-iamguarded-compat (Chainguard): All versions (No fix recorded)
- chainguard logstash-8.17-with-output-opensearch (Chainguard): All versions (No fix recorded)
- chainguard logstash-8.18 (Chainguard): All versions (No fix recorded)
- chainguard logstash-8.18-iamguarded-compat (Chainguard): All versions (No fix recorded)
- chainguard logstash-8.18-with-output-opensearch (Chainguard): All versions (No fix recorded)
- chainguard logstash-8.19 (Chainguard): \< 8.19.19-r0
- chainguard logstash-8.19-iamguarded-compat (Chainguard): \< 8.19.19-r0
- chainguard logstash-8.19-with-output-opensearch (Chainguard): \< 8.19.19-r0
- chainguard logstash-9.0 (Chainguard): All versions (No fix recorded)
- chainguard logstash-9.0-iamguarded-compat (Chainguard): All versions (No fix recorded)
- chainguard logstash-9.0-with-output-opensearch (Chainguard): All versions (No fix recorded)

## References

- <https://hackerone.com/reports/2957667>
- <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/uri/CVE-2025-27221.yml>
- <https://lists.debian.org/debian-lts-announce/2025/05/msg00015.html>
- <https://lists.debian.org/debian-lts-announce/2025/03/msg00008.html>
- <https://ubuntu.com/security/CVE-2025-27221>
- <https://www.cve.org/CVERecord?id=CVE-2025-27221>
- <https://ubuntu.com/security/notices/USN-7418-1>
- <https://ubuntu.com/security/notices/USN-7442-1>
- <https://security-tracker.debian.org/tracker/CVE-2025-27221>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/27xxx/CVE-2025-27221.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2025-27221>
- <https://github.com/ruby/uri/pull/154>
- <https://github.com/ruby/uri/pull/155>
- <https://github.com/ruby/uri/pull/156>
- <https://github.com/ruby/uri/pull/157>
- <https://github.com/ruby/uri>
- <https://www.ruby-lang.org/en/news/2025/02/26/security-advisories>

---

Data as of 2026-12-05T04:44:10.855Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
