Moderate Security Vulnerability in Ruby Package: Memory Exhaustion and DoS Risks

ruby Updated 02 Oct 2025

Summary

26/05/2025
N/A
Yes i
Unrated
Not published

ALSA-2025:8131: Moderate: ruby security update. Affects ruby versions < 3.3.8-10.el10_0. Fixed in 3.3.8-10.el10_0. 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 Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

Ruby is an extensible, interpreted, object-oriented scripting language widely used for web development and system management tasks. It features a rich set of libraries and frameworks, making it a popular choice among developers. However, recent vulnerabilities have been identified that could potentially compromise the security of applications built using Ruby, particularly affecting its net-imap and CGI modules.

Vulnerability Detail

The identified vulnerabilities include a potential Denial of Service (DoS) attack through memory exhaustion in the net-imap module (CVE-2025-25186), a DoS vulnerability in CGI::Cookie.parse (CVE-2025-27219), and userinfo leakage in URI#join, URI#merge, and URI#+ (CVE-2025-27221). These vulnerabilities could allow attackers to exploit the Ruby environment, leading to service interruptions or unauthorized access to sensitive information.

How To Fix

Minimum fixed version

3.3.8-10.el10_0

This is the first release that contains the fix.

sudo dnf update ruby

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

Workaround

As a temporary measure, consider limiting the input size for the affected modules to mitigate the risk of memory exhaustion and DoS attacks. Implementing rate limiting or input validation can help reduce the likelihood of exploitation until the package is updated.

Conclusion

In summary, the recent vulnerabilities identified in the Ruby package pose significant risks, including potential Denial of Service attacks and userinfo leakage. It is crucial to update to the patched version to mitigate these risks and ensure the security of applications built with Ruby.

See every vulnerability recorded for ruby →

Share this vulnerability

FAQ

The vulnerabilities involve potential Denial of Service attacks and userinfo leakage, which could compromise application security.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by these vulnerabilities without needing to sign up.

Failing to address these vulnerabilities could lead to service disruptions, unauthorized access to sensitive data, and overall degradation of application performance.

Yes, you should upgrade to Ruby version 3.3.8-10.el10_0 or later to ensure that the vulnerabilities are patched.

Vulert monitors and alerts for open-source vulnerabilities in software using just a manifest file like package-lock.json, allowing you to stay informed about potential risks.

Related vulnerabilities

Recent vulnerabilities recorded for ruby.

How To Fix

Minimum fixed version

3.3.8-10.el10_0

This is the first release that contains the fix.

sudo dnf update ruby

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