# CVE-2025-61594: URI Credential Leakage Bypass over CVE-2025-27221

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** LOW 2.1
- **CVSS:** 2.1 (v4.0, CNA) `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`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Attack requirements: Present; Privileges required: None; User interaction: None; Confidentiality impact: None; Integrity impact: None; Availability impact: None; Confidentiality impact on other systems: Low; Integrity impact on other systems: None; Availability impact on other systems: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.67% (percentile 47, 2026-11-26)
- **CWE:** CWE-200, CWE-212
- **Aliases:** GHSA-j4pr-3wm6-xx2r
- **Published:** 2025-12-30T21:03:08.990Z
- **Modified:** 2026-09-10T03:50:58.735Z

## Who should check

- Projects that depend on RubyGems package uri (\< 0.12.5)
- Anyone running ruby uri \< 0.12.5; \>= 0.13.0, \< 0.13.3; \>= 1.0.0, \< 1.0.4

## Description

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.

## Affected and fixed versions

- RubyGems `uri`: affected \< 0.12.5; fixed 0.12.5, 0.13.3, 1.0.4 (osv)
- ruby uri: \< 0.12.5; \>= 0.13.0, \< 0.13.3; \>= 1.0.0, \< 1.0.4 (cvelist)

## Mitigation

- Upgrade uri to one of 0.12.5, 0.13.3, 1.0.4 (or later in the same release line).

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-61594. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-61594.md
Affected: uri < 0.12.5
Fixed in: 0.12.5, 0.13.3, 1.0.4

Steps:
1. Search this machine and project for uri (RubyGems), ruby uri: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-61594 being exploited?

There is no confirmed exploitation: CVE-2025-61594 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.67% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-61594?

Low: CVSS 2.1 (v4.0, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2025-61594?

uri \< 0.12.5.

### Is there a fix for CVE-2025-61594?

Yes. Fixed in 0.12.5, 0.13.3, 1.0.4. Upgrade uri to one of 0.12.5, 0.13.3, 1.0.4 (or later in the same release line).

### How do I check if I'm affected by CVE-2025-61594?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/ruby/uri/security/advisories/GHSA-j4pr-3wm6-xx2r>
- vendor: <https://github.com/advisories/GHSA-22h5-pq3x-2gf2>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2025-61594>
- patch: <https://github.com/ruby/uri/commit/20157e3e29b125ff41f1d9662e2e3b1d066f5902>
- patch: <https://github.com/ruby/uri/commit/7e521b2da0833d964aab43019e735aea674e1c2c>
- patch: <https://github.com/ruby/uri/commit/d3116ca66a3b1c97dc7577f9d2d6e353f391cd6a>
- other: <https://hackerone.com/reports/2957667>
- other: <https://www.ruby-lang.org/en/news/2025/02/26/security-advisories>
- other: <https://github.com/ruby/uri>
- other: <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/uri/CVE-2025-61594.yml>
- other: <https://www.ruby-lang.org/en/news/2025/10/07/uri-cve-2025-61594>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-61594>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-j4pr-3wm6-xx2r> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2025-61594> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-61594>
