Skip to main content

CVE-2023-36617 — Vulnerability in uri — CVE Details

MEDIUM

URI gem has ReDoS vulnerability

Published June 29, 2023Updated September 10, 2026Source: OSV

What Should I Do?

Address in Next Maintenance Window

Low exploitation probability (1.84%). Schedule for your next planned update.

Does your project use an affected uri version?

Paste your Gemfile.lock to check it for CVE-2023-36617 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.

Check my Gemfile.lock

Summary

A ReDoS issue was discovered in the URI component before 0.12.2 for Ruby. The URI parser mishandles invalid URLs that have specific characters. There is an increase in execution time for parsing strings to URI objects with rfc2396_parser.rb and rfc3986_parser.rb.

NOTE: this issue exists becuse of an incomplete fix for CVE-2023-28755. Version 0.10.3 is also a fixed version.

The Ruby advisory recommends updating the uri gem to 0.12.2. In order to ensure compatibility with the bundled version in older Ruby series, you may update as follows instead:

  • For Ruby 3.0: Update to uri 0.10.3
  • For Ruby 3.1 and 3.2: Update to uri 0.12.2.

You can use gem update uri to update it. If you are using bundler, please add gem uri, >= 0.12.2 (or other version mentioned above) to your Gemfile.

Advisory Timeline

  • First published June 29, 2023 (1246 days ago).
  • Last revised September 10, 2026 — 1169 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Bundler
Update uri to 0.10.0.3 or later
gem install uri -v 0.10.0.3
Bundler
Update uri to 0.11.2 or later
gem install uri -v 0.11.2
Bundler
Update uri to 0.10.3 or later
gem install uri -v 0.10.3
Bundler
Update uri to 0.12.2 or later
gem install uri -v 0.12.2

After upgrading, scan your dependencies again to confirm the vulnerability is resolved.

Affected Packages (4)

Affects 1 ecosystem: RubyGems (1).

PackageFixed In
uri RubyGems · Affected: 0.10.0, 0.10.0.1, 0.10.0.20.10.0.3
uri RubyGems · Affected: 0.11.0, 0.11.10.11.2
uri RubyGems · Affected: 0.10.1, 0.10.20.10.3
uri RubyGems · Affected: 0.12.0, 0.12.10.12.2

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 5.3 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
Low

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Frequently Asked Questions

What is CVE-2023-36617?
URI gem has ReDoS vulnerability. This vulnerability has been assigned a severity rating of MEDIUM (CVSS score: 5.3/10).
How do I check if my project is affected by CVE-2023-36617?
CVE-2023-36617 affects uri. It has a 1.8% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2023-36617 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
5.3

Exploitation requires specific conditions, or the impact is limited.

EPSS Score (30-day exploit probability)
1.84%
EPSS percentile: 79.5

This places it in the top quartile of EPSS-scored vulnerabilities — 79.5% of tracked vulnerabilities score at or below it, so it is more likely to be exploited than most of the tracked corpus.

Also Known As

GHSA-hww2-5g85-429m

Related CVEs

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my Gemfile.lock