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

12 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
redhat/rubygem-uri<0.12.2
0.12.2
redhat/rubygem-uri<0.10.3
0.10.3
ruby-lang Uri Ruby<0.10.3
ruby-lang Uri Ruby>=0.11.0<0.12.2
debian/jruby
9.3.9.0+ds-89.4.8.0+ds-2
debian/ruby2.7<=2.7.4-1+deb11u1
2.7.4-1+deb11u5
debian/ruby3.1
3.1.2-7+deb12u13.1.2-8.5
debian/rubygems
3.2.5-23.3.15-23.6.7-2

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 debian/jruby to a version that resolves this vulnerability.

    Fixed in 9.3.9.0+ds-8Fixed in 9.4.8.0+ds-2
  6. Upgrade

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

    Fixed in 2.7.4-1+deb11u5
  7. Upgrade

    Upgrade debian/ruby3.1 to a version that resolves this vulnerability.

    Fixed in 3.1.2-7+deb12u1Fixed in 3.1.2-8.5
  8. Upgrade

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

    Fixed in 3.2.5-2Fixed in 3.3.15-2Fixed in 3.6.7-2
  9. Upgrade

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

    Fixed in 0.12.2
  10. Upgrade

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

    Fixed in 0.10.3
  11. Upgrade

    Upgrade uri gem to a version that resolves this vulnerability.

    Fixed in 0.10.3
  12. 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
via MITRE·12:00 AM
Description
Data Sourced
via NVD·01:15 PM
DescriptionSeverityWeaknessAffected Software
Advisory Published
via GitHub·03:30 PM
Data Sourced
via Red Hat·04:38 PM
DescriptionSeverityAffected Software
May 31, 2024
Data Sourced
via Launchpad·01:32 AM
Description
Sep 16, 2024
Data Sourced
via Ubuntu·02:43 AM
RemedyDescriptionSeverityAffected Software

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