CVE-2023-36617 — Vulnerability in uri — CVE Details
URI gem has ReDoS vulnerability
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.
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.
gem install uri -v 0.10.0.3
gem install uri -v 0.11.2
gem install uri -v 0.10.3
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).
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-1333
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 5.3 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
References
- https://nvd.nist.gov/vuln/detail/CVE-2023-36617ADVISORY
- https://github.com/ruby/uri/commit/05b1e7d026b886e65a60ee35625229da9ec220bbWEB
- https://github.com/ruby/uri/commit/38bf797c488bcb4a37fb322bfa84977981863ec6WEB
- https://github.com/ruby/uri/commit/3cd938df20db26c9439e9f681aadfb9bbeb6d1c0WEB
- https://github.com/ruby/uri/commit/4d02315181d8a485496f1bb107a6ab51d6f3a35fWEB
- https://github.com/ruby/uri/commit/70794abc162bb15bb934713b5669713d6700d35cWEB
- https://github.com/ruby/uri/commit/7e33934c91b7f8f3ea7b7a4258b468e19f636bc3WEB
- https://github.com/ruby/uri/commit/9a8e0cc03da964054c2a4ea26b59c53c3bae4921WEB
- https://github.com/ruby/uri/commit/ba36c8a3ecad8c16dd3e60a6da9abd768206c8faWEB
- https://www.ruby-lang.org/en/news/2023/06/29/redos-in-uri-CVE-2023-36617WEB
- https://security.netapp.com/advisory/ntap-20230725-0002WEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/27LUWREIFTP3MQAW7QE4PJM4DPAQJWXFWEB
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/QA6XUKUY7B5OLNQBLHOT43UW7C5NIOQQWEB
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/27LUWREIFTP3MQAW7QE4PJM4DPAQJWXFWEB
- https://lists.debian.org/debian-lts-announce/2024/09/msg00000.htmlWEB
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/uri/CVE-2023-36617.ymlWEB
- https://github.com/ruby/uriPACKAGE
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
Exploitation requires specific conditions, or the impact is limited.
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
Related CVEs
- CVE-2023-28755HIGH
Ruby URI component ReDoS issue
- CVE-2026-128084MEDIUM
sqlite3-ruby: Possible SQL query truncation when a string is 4 GiB or larger
- CVE-2026-115472MEDIUM
Doorkeeper: When using public clients, any client can revoke any access token
- CVE-2025-61594LOW
URI Credential Leakage Bypass over CVE-2025-27221