CVE-2023-36617: Medium severity ruby-lang Uri Ruby vulnerability

Published Jun 29, 2023
·
Updated

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 rfc2396parser.rb and rfc3986parser.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.

Other sources

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 rfc2396parser.rb and rfc3986parser.rb. NOTE: this issue exists becuse of an incomplete fix for CVE-2023-28755. Version 0.10.3 is also a fixed version.

— Launchpad

Affected Software

26 affected componentsFixes available
rubygems/uri<0.10.0.3
0.10.0.3
rubygems/uri>=0.11.0<0.11.2
0.11.2
rubygems/uri>=0.12.0<0.12.2
0.12.2
rubygems/uri>=0.10.1<0.10.3
0.10.3
ruby-lang Uri Ruby<0.10.3
ruby-lang Uri Ruby>=0.11.0<0.12.2
redhat/rubygem-uri<0.12.2
0.12.2
redhat/rubygem-uri<0.10.3
0.10.3
debian/ruby2.7<2.7.4-1+deb11u2
2.7.4-1+deb11u2
debian/jruby
debian/ruby3.1
debian/rubygems
debian/ruby2.7
2.7.4-1+deb11u2
ubuntu/jruby*
ubuntu/ruby2.3<2.3.1-2~ubuntu16.04.16+esm8
2.3.1-2~ubuntu16.04.16+esm8
ubuntu/jruby*
ubuntu/ruby2.5<2.5.1-1ubuntu1.16+esm1
2.5.1-1ubuntu1.16+esm1
ubuntu/jruby*
ubuntu/ruby2.7<2.7.0-5ubuntu1.12
2.7.0-5ubuntu1.12
ubuntu/jruby*
ubuntu/ruby3.0<3.0.2-7ubuntu2.4
3.0.2-7ubuntu2.4
ubuntu/rubygems<3.3.5-2ubuntu1.2
3.3.5-2ubuntu1.2
ubuntu/jruby*
ubuntu/jruby*
ubuntu/jruby*
ubuntu/jruby*

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade rubygems/uri to a version that resolves this vulnerability.

    Fixed in 0.10.0.3
  2. Upgrade

    Upgrade rubygems/uri to a version that resolves this vulnerability.

    Fixed in 0.11.2
  3. Upgrade

    Upgrade rubygems/uri to a version that resolves this vulnerability.

    Fixed in 0.12.2
  4. Upgrade

    Upgrade rubygems/uri to a version that resolves this vulnerability.

    Fixed in 0.10.3
  5. Upgrade

    Upgrade redhat/rubygem-uri to a version that resolves this vulnerability.

    Fixed in 0.12.2
  6. Upgrade

    Upgrade redhat/rubygem-uri to a version that resolves this vulnerability.

    Fixed in 0.10.3
  7. Upgrade

    Upgrade debian/ruby2.7 to a version that resolves this vulnerability.

    Fixed in 2.7.4-1+deb11u2
  8. Upgrade

    Upgrade ubuntu/ruby2.3 to a version that resolves this vulnerability.

    Fixed in 2.3.1-2~ubuntu16.04.16+esm8
  9. Upgrade

    Upgrade ubuntu/ruby2.5 to a version that resolves this vulnerability.

    Fixed in 2.5.1-1ubuntu1.16+esm1
  10. Upgrade

    Upgrade ubuntu/ruby2.7 to a version that resolves this vulnerability.

    Fixed in 2.7.0-5ubuntu1.12
  11. Upgrade

    Upgrade ubuntu/ruby3.0 to a version that resolves this vulnerability.

    Fixed in 3.0.2-7ubuntu2.4
  12. Upgrade

    Upgrade ubuntu/rubygems to a version that resolves this vulnerability.

    Fixed in 3.3.5-2ubuntu1.2
  13. Upgrade

    Upgrade uri gem to a version that resolves this vulnerability.

    Fixed in 0.10.3
  14. Upgrade

    Upgrade uri gem to a version that resolves this vulnerability.

    Fixed in 0.12.2

Event History

Jun 29, 2023
CVE Published
via MITRE·12:00 AM
Data Sourced
12:00 AM
RemedyDescriptionSeverityAffected Software
Data Sourced
via MITRE·12:00 AM
Description
Updated
via Ubuntu·12:00 AM
Affected Software
Updated
via Ubuntu·12:00 AM
RemedyDescriptionAffected Software
Data Sourced
via OSV·01:15 PM
DescriptionSeverityAffected Software
Data Sourced
01:15 PM
Weakness
Advisory Published
03:30 PM
Data Sourced
via Red Hat·04:38 PM
DescriptionSeverityAffected Software
Jul 25, 2023
Updated
via NVD·03:15 PM
Affected Software
Mar 14, 2024
Advisory Published
via GitHub·10:14 PM
Data Sourced
via GitHub·10:14 PM
DescriptionSeverityWeaknessAffected Software
May 4, 2024
Data Sourced
via NVD·02:15 AM
DescriptionSeverityWeaknessAffected Software
Updated
via NVD·03:15 AM
Affected Software
Nov 21, 2024
Updated
via NVD·08:10 AM
Affected Software
Nov 4, 2025
Updated
via NVD·05:15 PM
Affected Software
Jun 17, 2026
Updated
via NVD·06:06 AM
Affected Software
Nov 24, 2026
Withdrawn
via OSV·04:29 AM

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

What is CVE-2023-36617?

CVE-2023-36617 is a ReDoS vulnerability in the URI component before version 0.12.2 for Ruby.

2

How does the URI parser mishandle invalid URLs?

The URI parser mishandles invalid URLs that have specific characters, leading to an increase in execution time.

3

What is the severity of CVE-2023-36617?

CVE-2023-36617 has a severity rating of medium (5.3).

4

What is the CWE ID for CVE-2023-36617?

The CWE ID for CVE-2023-36617 is 1333.

5

How can I fix CVE-2023-36617?

To fix CVE-2023-36617, update the URI component to version 0.12.2 or later for Ruby.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203