Vulnerability in ruby2.5 - Regular Expression Denial of Service (ReDoS)

ruby2.5 Updated 02 Oct 2025

Summary

06/06/2023
N/A
Yes i
Unrated
Not published

DLA-3447-1: ruby2.5 - security update. Affects ruby2.5 versions < 2.5.5-3+deb10u5. Fixed in 2.5.5-3+deb10u5. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

ruby2.5 is a programming language widely used for web development and scripting. It provides a rich set of features and libraries for building applications. However, a vulnerability has been discovered in ruby2.5 that could lead to a Denial of Service (DoS) attack. This vulnerability affects the URI component and the Time module in Ruby, allowing an attacker to exploit specific characters in URLs and cause a significant increase in execution time, potentially impacting the performance of the application.

Vulnerability Detail

The vulnerability, identified as CVE-2023-28755 and CVE-2023-28756, is a Regular Expression Denial of Service (ReDoS) issue. In the URI component, the parser mishandles invalid URLs with certain characters, leading to a slowdown in parsing strings to URI objects. Similarly, in the Time module, the parser mishandles invalid URLs with specific characters, resulting in a delay in parsing strings to Time objects. These vulnerabilities can be exploited by an attacker to cause a significant increase in execution time, potentially leading to a DoS attack.

How To Fix

Minimum fixed version

2.5.5-3+deb10u5

This is the first release that contains the fix.

sudo apt-get install --only-upgrade ruby2.5

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

There is no specific workaround available for this vulnerability. The recommended solution is to apply the security update mentioned above.

Conclusion

The vulnerability in ruby2.5 allows for Regular Expression Denial of Service (ReDoS) attacks through the URI component and the Time module. It is crucial to upgrade to the fixed version of ruby2.5 (2.5.5-3+deb10u5) to mitigate the risk of exploitation. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for ruby2.5 →

Share this vulnerability

FAQ

This vulnerability can be exploited by an attacker to cause a significant increase in execution time, potentially leading to a Denial of Service (DoS) attack. It may impact the performance and availability of the affected application.

The vulnerability affects ruby2.5 versions through 3.2.1.

There are no known exploits for this vulnerability at the moment. However, it is important to apply the security update to mitigate the risk.

Yes, the fix for this vulnerability is available in version 2.5.5-3+deb10u5 of the ruby2.5 package for Debian 10 Buster.

You can find more information about Debian LTS security advisories, including how to apply updates and frequently asked questions, on the Debian LTS wiki.

Related vulnerabilities

Recent vulnerabilities recorded for ruby2.5.

How To Fix

Minimum fixed version

2.5.5-3+deb10u5

This is the first release that contains the fix.

sudo apt-get install --only-upgrade ruby2.5

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback