CVE-2023-28755 Ruby URI component ReDoS issue

Medium 5.3 Published Updated

Attackers can cause denial of service by sending specially crafted URLs that trigger excessive CPU usage in the Ruby URI parser.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2023-28755?

CVE-2023-28755 is a medium-severity denial of service vulnerability in Debian Debian Linux, published on 31 Mar 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

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.

Weakness: CWE-1333

Which versions are affected by CVE-2023-28755?

8 open source packages ship an affected version, including uri. It affects 3 products.

PackageAffectedFixed in
uri RubyGemsAll versions0.10.0.1
uri RubyGemsAll versions0.10.0.1
uri RubyGemsFrom 0.10.10.10.2
uri RubyGemsFrom 0.10.10.10.2
uri RubyGemsFrom 0.11.00.11.1
uri RubyGemsFrom 0.11.00.11.1
2 more packages
uri RubyGemsFrom 0.12.00.12.1
uri RubyGemsFrom 0.12.00.12.1
Linux distribution packages (2)
ruby3.1 openSUSE:TumbleweedAll versions3.1.4-1.1
ruby3.2 openSUSE:TumbleweedAll versions3.2.2-1.1

Products include Debian Debian Linux, Fedoraproject Fedora, Ruby-Lang Uri.

How do I fix CVE-2023-28755?

Upgrade uri to a fixed version for your release line: 0.10.0.1, 0.10.2, 0.11.1 or 0.12.1.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2023-28755 being exploited?

There is no known exploitation of CVE-2023-28755 in the wild and no public exploit code.

All Debian Debian Linux vulnerabilities

Sources

Also known as ALPINE-CVE-2023-28755, CLEANSTART-2026-KX08240, CLSA-2026-1779099998, DEBIAN-CVE-2023-28755, ECHO-97f1-838f-206b, GHSA-hv5j-3h9f-99c2 and 3 more.

Is CVE-2023-28755 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free