Skip to content
Fencer Vulns
medium 5.3

CVE-2023-36617 json

URI gem has ReDoS vulnerability

published 2023-06-29 3 y ago modified 2026-09-10 1 mo ago also GHSA-hww2-5g85-429m , EUVD-2023-1827

cvss
5.3
version 3.1, NVD
cisa kev
Not listed
not in CISA's catalog
epss
1.7%
EPSS 1.7% chance of exploitation in 30 days, percentile 77%
public exploits
0
none known

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.

Patch / fix

  • rubygems uri 0.10.0.3, 0.10.3, 0.11.2, 0.12.2
  • ruby-lang uri 0.10.3, 0.12.2
  • ruby2.7 Debian 11 2.7.4-1+deb11u2

debian advisories DEBIAN-CVE-2023-36617

  • ruby2.7 Ubuntu 20.04 LTS 2.7.0-5ubuntu1.12
  • ruby3.0 Ubuntu 22.04 LTS 3.0.2-7ubuntu2.4
  • rubygems Ubuntu 22.04 LTS 3.3.5-2ubuntu1.2
  • ruby2.3 Ubuntu Pro 16.04 LTS 2.3.1-2~ubuntu16.04.16+esm8
  • ruby2.5 Ubuntu Pro 18.04 LTS 2.5.1-1ubuntu1.16+esm1

ubuntu advisories UBUNTU-CVE-2023-36617

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • ruby RHEL 8 2.5.9-112.module+el8.10.0+22021+135c76a8
  • ruby-irb RHEL 8 2.5.9-112.module+el8.10.0+22021+135c76a8
  • rubygems RHEL 8 2.7.6.3-112.module+el8.10.0+22021+135c76a8
  • ruby-libs RHEL 8 2.5.9-112.module+el8.10.0+22021+135c76a8
  • rubygem-pg RHEL 8 1.0.0-3.module+el8.9.0+19193+435404ae
  • rubygem-abrt RHEL 8 0.3.0-4.module+el8.10.0+22021+135c76a8
  • rubygem-bson RHEL 8 4.3.0-2.module+el8.9.0+19193+435404ae
  • rubygem-json RHEL 8 2.1.0-112.module+el8.10.0+22021+135c76a8

red hat advisories RHSA-2024:4499RHSA-2024:1576RHSA-2024:1431

  • ruby AlmaLinux 8 2.5.9-112.module_el8.10.0+3871+342e2c2f
  • ruby-irb AlmaLinux 8 2.5.9-112.module_el8.10.0+3871+342e2c2f
  • rubygems AlmaLinux 8 2.7.6.3-112.module_el8.10.0+3871+342e2c2f
  • ruby-libs AlmaLinux 8 2.5.9-112.module_el8.10.0+3871+342e2c2f
  • rubygem-pg AlmaLinux 8 1.0.0-3.module_el8.9.0+3635+c6f99506
  • rubygem-abrt AlmaLinux 8 0.3.0-4.module_el8.10.0+3871+342e2c2f
  • rubygem-bson AlmaLinux 8 4.3.0-2.module_el8.5.0+2625+ec418553
  • rubygem-bson AlmaLinux 8 4.3.0-2.module_el8.6.0+3170+4b08f9d4

almalinux advisories ALSA-2024:4499ALSA-2024:1576ALSA-2024:1431

  • ruby Rocky Linux 8 2.5.9-112.module+el8.10.0+1839+f1f156ae
  • rubygem-pg Rocky Linux 8 1.0.0-3.module+el8.9.0+1536+5f79634e
  • rubygem-abrt Rocky Linux 8 0.3.0-4.module+el8.5.0+738+032c9c02
  • rubygem-bson Rocky Linux 8 4.3.0-2.module+el8.9.0+1536+5f79634e
  • rubygem-mongo Rocky Linux 8 2.5.1-2.module+el8.9.0+1536+5f79634e
  • rubygem-mysql2 Rocky Linux 8 0.4.10-4.module+el8.9.0+1536+5f79634e
  • rubygem-bundler Rocky Linux 8 1.16.1-4.module+el8.9.0+1536+5f79634e
  • rubygem-pg Rocky Linux 9 1.3.5-1.module+el9.6.0+31865+0893c253

rocky linux advisories RLSA-2024:4499RLSA-2024:1576RLSA-2024:1431

  • ruby CBL-Mariner 2.0 3.1.4-2

azure linux advisories AZL-27310

Azure Linux vulnerability data, Copyright (c) Microsoft Corporation, from https://github.com/microsoft/AzureLinuxVulnerabilityData via OSV, under the MIT licence; changed: normalised to fixed package versions per release. MIT

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2023-36617 updated cvss 5.3

rubygem-uri: ReDoS vulnerability - upstream's incomplete fix for CVE-2023-28755

  • Red Hat 3scale API Management Platform 2 3scale-amp2/system-rhel7 Red Hat Enterprise Linux 8 ruby, ruby-irb, rubygems, ruby-libs, rubygem-pg, rubygem-irb, +25 more Red Hat Enterprise Linux 9 ruby, rubygems, ruby-libs, rubygem-irb, rubygem-rbs, rubygem-rss, +13 more
    affected: no fix planned “Will not fix”
  • Red Hat Satellite 6 puppet-agent
    affected: no fix available
  • Red Hat Software Collections rh-ruby30-ruby, rh-ruby30-rubygems, rh-ruby30-ruby-libs, rh-ruby30-rubygem-irb, rh-ruby30-rubygem-rbs, rh-ruby30-rubygem-rss, +12 more
    affected: no fix planned “Will not fix”
  • Red Hat Enterprise Linux AppStream (v. 8) ruby 3.1.4-142.module+el8.9.0+21471+7d1e4a35, ruby 2.5.9-112.module+el8.10.0+22021+135c76a8, rubygem-pg 1.0.0-3.module+el8.9.0+19193+435404ae, rubygem-pg 1.3.2-1.module+el8.9.0+21471+7d1e4a35, ruby-irb 2.5.9-112.module+el8.10.0+22021+135c76a8, ruby-libs 3.1.4-142.module+el8.9.0+21471+7d1e4a35, +40 more
    fixed: vendor fix RHSA-2024:4499
  • Red Hat Enterprise Linux AppStream (v. 9) ruby 3.1.4-143.module+el9.3.0+21558+96b51efd, rubygem-pg 1.3.5-1.module+el9.1.0+15737+76195479, ruby-libs 3.1.4-143.module+el9.3.0+21558+96b51efd, rubygems 3.3.26-143.module+el9.3.0+21558+96b51efd, rubygem-irb 1.4.1-143.module+el9.3.0+21558+96b51efd, rubygem-rbs 2.7.0-143.module+el9.3.0+21558+96b51efd, +16 more
    fixed: vendor fix RHSA-2024:1576
  • Red Hat Satellite 6 ruby, rubygem-bundler
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

cisa ICSA-24-046-11 updated cvss 5.3

Siemens SCALANCE XCM-/XRM-300

  • Siemens SCALANCE XCH328 (6GK5328-4TS01-2EC2) <V2.4 Siemens SCALANCE XCM324 (6GK5324-8TS01-2AC2) <V2.4 Siemens SCALANCE XCM328 (6GK5328-4TS01-2AC2) <V2.4 Siemens SCALANCE XCM332 (6GK5332-0GA01-2AC2) <V2.4 Siemens SCALANCE XRH334 (24 V DC, 8xFO, CC) (6GK5334-2TS01-2ER3) <V2.4 Siemens SCALANCE XRM334 (2x230 V AC, 8xFO) (6GK5334-2TS01-4AR3) <V2.4
    +5 more products
    Siemens SCALANCE XRM334 (2x230 V AC, 12xFO) (6GK5334-3TS01-4AR3) <V2.4 Siemens SCALANCE XRM334 (24 V DC, 8xFO) (6GK5334-2TS01-2AR3) <V2.4 Siemens SCALANCE XRM334 (24 V DC, 12xFO) (6GK5334-3TS01-2AR3) <V2.4 Siemens SCALANCE XRM334 (230 V AC, 8xFO) (6GK5334-2TS01-3AR3) <V2.4 Siemens SCALANCE XRM334 (230 V AC, 12xFO) (6GK5334-3TS01-3AR3) <V2.4
    affected: fixed in V2.4 support.industry.siemens.com

Facts from CISA's republication of the vendor's own advisory (CSAF); the linked advisory is the authoritative source. CISA notification · csaf

Exploit prediction

1.70% chance of exploitation in the next 30 days, higher than 77% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
NVD 3.1 5.3 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
GitHub 3.1 5.3 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Affected packages

ecosystem package affected fixed in
rubygems uri
>=0.10.1, <0.10.3
>=0.12.0, <0.12.2
>=0.11.0, <0.11.2
<0.10.0.3
0.10.3
0.12.2
0.11.2
0.10.0.3

Classification

Weakness
  • CWE-1333 Inefficient Regular Expression Complexity

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.