Loading...
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

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](https://www.ruby-lang.org/en/news/2023/06/29/redos-in-uri-CVE-2023-36617/) 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 (1201 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.11.2 or later
gem install uri -v 0.11.2
Bundler
Update uri to 0.10.0.3 or later
gem install uri -v 0.10.0.3
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, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (4)

Affects 1 ecosystem: rubygems (1).

PackageEcosystemAffectedFixed In
uri
rubygems
0.11.0, 0.11.10.11.2
uri
rubygems
0.10.0, 0.10.0.1, 0.10.0.20.10.0.3
uri
rubygems
0.10.1, 0.10.20.10.3
uri
rubygems
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. 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 has limited impact. Remediate within weeks.

Also Known As

GHSA-hww2-5g85-429m

Related CVEs

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies