Moderate Security Vulnerability in Ruby Package: Denial of Service and Userinfo Leakage

ruby Updated 04 Oct 2025

Summary

03/10/2025
N/A
Yes i
Medium
6.5

RLSA-2025:8131: Moderate: ruby security update. Affects ruby versions < 0:3.3.8-10.el10_0. Fixed in 0: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 Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

Ruby is an extensible, interpreted, object-oriented scripting language widely used for web development and system management tasks. It is known for its simplicity and productivity, allowing developers to write clean and maintainable code. However, recent vulnerabilities have been identified that could potentially compromise the security of applications using Ruby, particularly in its net-imap and CGI modules.

Vulnerability Detail

The vulnerabilities identified in Ruby include a Denial of Service (DoS) risk due to memory exhaustion in the net-imap module (CVE-2025-25186), a DoS in CGI::Cookie.parse (CVE-2025-27219), and userinfo leakage in URI manipulation methods (CVE-2025-27221). These vulnerabilities can lead to application crashes, unauthorized access to sensitive information, and overall degradation of service performance.

How To Fix

Minimum fixed version

0: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, you can limit the input size for the net-imap and CGI modules to mitigate the risk of memory exhaustion and DoS attacks. Implementing input validation and sanitization can also help reduce exposure to these vulnerabilities.

Conclusion

In summary, Ruby has identified several vulnerabilities that could impact applications using its net-imap and CGI modules. It is crucial to update to the latest patched version to mitigate these risks. Additionally, implementing workarounds can provide temporary relief while ensuring that security best practices are followed.

See every vulnerability recorded for ruby →

Share this vulnerability

FAQ

CVE-2025-25186 refers to a vulnerability in the net-imap module of Ruby that allows for a Denial of Service attack through memory exhaustion.

You can use the Vulert platform to monitor and alert for open-source vulnerabilities in your software. Visit Vulert Scanner to check if your application is affected.

The vulnerabilities can lead to application crashes, unauthorized access to sensitive data, and overall service degradation, affecting user experience and security.

Yes, you can implement input validation and limit input sizes for the affected modules as a temporary workaround until you can apply the updates.

The CVSS score for these vulnerabilities is 6.5, indicating a moderate level of risk.

Related vulnerabilities

Recent vulnerabilities recorded for ruby.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

Minimum fixed version

0: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