CVE-2023-28755: Uri Denial of Service Vulnerability

HIGH
Advisory Identifier: GHSA-hv5j-3h9f-99c2
CVSS 7.5
CWE-1333
Published
Advisory Summary

CVE-2023-28755 is a HIGH (CVSS 7.5) denial of service vulnerability (CWE-1333: Inefficient Regular Expression Complexity) affecting Uri libraries in the RubyGems ecosystem. The issue involves ruby uri component redos issue. Remediation is available by upgrading affected packages to version 0.12.1, 0.11.1, 0.10.2, 0.10.0.1.

CVE-2023-28755 at a Glance

CVE Identifier CVE-2023-28755
GHSA Identifier GHSA-hv5j-3h9f-99c2
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-1333: Inefficient Regular Expression Complexity
Affected Product Uri
Package Ecosystem RubyGems
Published Date
Last Updated

Security Impact

CVSS: 7.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity None (I:N)
Availability High (A:H)

How to Fix CVE-2023-28755

To remediate this vulnerability, upgrade all affected Uri dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

uri fixed: 0.12.1
Upgrade uri to 0.12.1
uri fixed: 0.11.1
Upgrade uri to 0.11.1
uri fixed: 0.10.2
Upgrade uri to 0.10.2
uri fixed: 0.10.0.1
Upgrade uri to 0.10.0.1
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for uri

How to Check if You Are Affected

To determine whether your application is affected by CVE-2023-28755, inspect your project dependencies for Uri:

inspect dependencies for uri

Analyze the terminal output to locate any version of Uri in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.12.1), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-1333: Inefficient Regular Expression Complexity, where the product uses a regular expression with a worst-case computational complexity that is inefficient and possibly exponential. In Uri, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

A ReDoS issue was discovered in the URI component through 0.12.0 in Ruby through 3.2.1. The URI parser mishandles invalid URLs that have specific characters. It causes an increase in execution time for parsing strings to URI objects. The fixed versions are 0.12.1, 0.11.1, 0.10.2 and 0.10.0.1.

CVE-2023-28755 Affected Uri Versions

4 component(s)
Fixed Versions:
0.12.10.11.10.10.20.10.0.1
Product / Package Ecosystem Affected Versions Fixed Version
uri
RubyGems
≥ 0.12.0
< 0.12.1
All 1 versions
0.12.0
0.12.1
uri
RubyGems
≥ 0.11.0
< 0.11.1
All 1 versions
0.11.0
0.11.1
uri
RubyGems
≥ 0.10.1
< 0.10.2
All 1 versions
0.10.1
0.10.2
uri
RubyGems
< 0.10.0.1
0.10.0.1

References

NVD — CVE-2023-28755 NVD
https://nvd.nist.gov/vuln/detail/CVE-2023-28755
www.ruby-lang.org/en/news/2023/03/28/... WEB
https://www.ruby-lang.org/en/news/2023/03/28/redos-in-uri-cve-2023-28755
www.ruby-lang.org/en/news/2022/12/25/... WEB
https://www.ruby-lang.org/en/news/2022/12/25/ruby-3-2-0-released
www.ruby-lang.org/en/downloads/releas... WEB
https://www.ruby-lang.org/en/downloads/releases
Uri Security Information SECURITY
https://security.netapp.com/advisory/ntap-20230526-0003
Uri Security Information SECURITY
https://security.gentoo.org/glsa/202401-27
lists.fedoraproject.org/archives/list/packa... WEB
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/WMIOPLBAAM3FEQNAXA2L7BDKOGSVUT5Z
lists.fedoraproject.org/archives/list/packa... WEB
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/G76GZG3RAGYF4P75YY7J7TGYAU7Z5E2T
lists.fedoraproject.org/archives/list/packa... WEB
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/FFZANOQA4RYX7XCB42OO3P24DQKWHEKA
lists.fedoraproject.org/archives/list/packa... WEB
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/27LUWREIFTP3MQAW7QE4PJM4DPAQJWXF
lists.fedoraproject.org/archives/list/packa... WEB
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/WMIOPLBAAM3FEQNAXA2L7BDKOGSVUT5Z
lists.fedoraproject.org/archives/list/packa... WEB
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/QA6XUKUY7B5OLNQBLHOT43UW7C5NIOQQ
lists.fedoraproject.org/archives/list/packa... WEB
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/G76GZG3RAGYF4P75YY7J7TGYAU7Z5E2T
lists.fedoraproject.org/archives/list/packa... WEB
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FFZANOQA4RYX7XCB42OO3P24DQKWHEKA
lists.fedoraproject.org/archives/list/packa... WEB
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/27LUWREIFTP3MQAW7QE4PJM4DPAQJWXF
lists.debian.org/debian-lts-announce... WEB
https://lists.debian.org/debian-lts-announce/2025/05/msg00015.html
lists.debian.org/debian-lts-announce... WEB
https://lists.debian.org/debian-lts-announce/2024/09/msg00000.html
lists.debian.org/debian-lts-announce... WEB
https://lists.debian.org/debian-lts-announce/2023/04/msg00033.html
Uri Source Repository REPOSITORY
https://github.com/rubysec/ruby-advisory-db/blob/master/gems/uri/CVE-2023-28755.yml
Uri Source Repository REPOSITORY
https://github.com/ruby/uri/releases
Uri Source Repository REPOSITORY
https://github.com/ruby/uri

Frequently Asked Questions

What is CVE-2023-28755?
CVE-2023-28755 is a security vulnerability in Uri involving Ruby URI component ReDoS issue under CWE-1333: Inefficient Regular Expression Complexity.
Which Uri versions are affected?
Affected versions include releases prior to 0.12.1, 0.11.1, 0.10.2, 0.10.0.1 across affected packages: uri.
What version fixes CVE-2023-28755?
Upgrading to 0.12.1, 0.11.1, 0.10.2, 0.10.0.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is uri affected?
Yes, uri is affected in releases prior to 0.12.1, 0.11.1, 0.10.2, 0.10.0.1. Upgrade your dependency to 0.12.1, 0.11.1, 0.10.2, 0.10.0.1 or later.
What is the CVSS score of CVE-2023-28755?
CVE-2023-28755 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.
What CWE is associated with CVE-2023-28755?
CVE-2023-28755 is classified under CWE-1333: Inefficient Regular Expression Complexity (The product uses a regular expression with a worst-case computational complexity that is inefficient and possibly exponential.).
How can I check RubyGems dependencies for CVE-2023-28755?
Run the dependency tree command: 'inspect dependencies for uri'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-hv5j-3h9f-99c2",
  "modified" : "2025-11-04T19:37:56Z",
  "published" : "2023-03-31T06:30:15Z",
  "aliases" : [ "CVE-2023-28755" ],
  "summary" : "Ruby URI component ReDoS issue",
  "details" : "A ReDoS issue was discovered in the URI component through 0.12.0 in Ruby through 3.2.1. The URI parser mishandles invalid URLs that have specific characters. It causes an increase in execution time for parsing strings to URI objects. The fixed versions are 0.12.1, 0.11.1, 0.10.2 and 0.10.0.1.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "uri"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.12.0"
      }, {
        "fixed" : "0.12.1"
      } ]
    } ],
    "versions" : [ "0.12.0" ]
  }, {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "uri"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.11.0"
      }, {
        "fixed" : "0.11.1"
      } ]
    } ],
    "versions" : [ "0.11.0" ]
  }, {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "uri"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.10.1"
      }, {
        "fixed" : "0.10.2"
      } ]
    } ],
    "versions" : [ "0.10.1" ]
  }, {
    "package" : {
      "ecosystem" : "RubyGems",
      "name" : "uri"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.10.0.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-28755"
  }, {
    "type" : "WEB",
    "url" : "https://www.ruby-lang.org/en/news/2023/03/28/redos-in-uri-cve-2023-28755"
  }, {
    "type" : "WEB",
    "url" : "https://www.ruby-lang.org/en/news/2022/12/25/ruby-3-2-0-released"
  }, {
    "type" : "WEB",
    "url" : "https://www.ruby-lang.org/en/downloads/releases"
  }, {
    "type" : "WEB",
    "url" : "https://security.netapp.com/advisory/ntap-20230526-0003"
  }, {
    "type" : "WEB",
    "url" : "https://security.gentoo.org/glsa/202401-27"
  }, {
    "type" : "WEB",
    "url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/WMIOPLBAAM3FEQNAXA2L7BDKOGSVUT5Z"
  }, {
    "type" : "WEB",
    "url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/G76GZG3RAGYF4P75YY7J7TGYAU7Z5E2T"
  }, {
    "type" : "WEB",
    "url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/FFZANOQA4RYX7XCB42OO3P24DQKWHEKA"
  }, {
    "type" : "WEB",
    "url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/27LUWREIFTP3MQAW7QE4PJM4DPAQJWXF"
  }, {
    "type" : "WEB",
    "url" : "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/WMIOPLBAAM3FEQNAXA2L7BDKOGSVUT5Z"
  }, {
    "type" : "WEB",
    "url" : "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/QA6XUKUY7B5OLNQBLHOT43UW7C5NIOQQ"
  }, {
    "type" : "WEB",
    "url" : "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/G76GZG3RAGYF4P75YY7J7TGYAU7Z5E2T"
  }, {
    "type" : "WEB",
    "url" : "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FFZANOQA4RYX7XCB42OO3P24DQKWHEKA"
  }, {
    "type" : "WEB",
    "url" : "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/27LUWREIFTP3MQAW7QE4PJM4DPAQJWXF"
  }, {
    "type" : "WEB",
    "url" : "https://lists.debian.org/debian-lts-announce/2025/05/msg00015.html"
  }, {
    "type" : "WEB",
    "url" : "https://lists.debian.org/debian-lts-announce/2024/09/msg00000.html"
  }, {
    "type" : "WEB",
    "url" : "https://lists.debian.org/debian-lts-announce/2023/04/msg00033.html"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/uri/CVE-2023-28755.yml"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/ruby/uri/releases"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/ruby/uri"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-1333" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-03-31T22:43:59Z",
    "nvd_published_at" : "2023-03-31T04:15:00Z"
  }
}