Denial of Service Vulnerability in JRuby and Ruby Packages

jruby Updated 03 Oct 2025

Summary

12/07/2025
N/A
No i
High
7.5

UBUNTU-CVE-2025-24294: The attack vector is a potential Denial of Service (DoS). Affects jruby versions 1.5.6-5ubuntu1 – 1.5.6-9+deb8u2build0.14.04.1~esm2. No fix is published. 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

JRuby is an implementation of the Ruby programming language that runs on the Java Virtual Machine (JVM). It allows Ruby applications to leverage Java libraries and provides a platform for running Ruby code in a Java environment. Ruby, a dynamic, open-source programming language, is widely used for web development and scripting. The vulnerability in question affects various versions of JRuby and Ruby packages, specifically those that handle DNS packet processing. This vulnerability can lead to a Denial of Service (DoS) condition, making applications unresponsive.

Vulnerability Detail

The vulnerability arises from an insufficient check on the length of a decompressed domain name within a DNS packet. An attacker can craft a malicious DNS packet containing a highly compressed domain name. When the resolv library parses such a packet, the name decompression process consumes excessive CPU resources, as the library does not limit the resulting length of the name. This resource consumption can cause the application thread to become unresponsive, resulting in a Denial of Service condition. The CVSS score for this vulnerability is 7.5, indicating a high severity level.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

As a temporary workaround, consider implementing rate limiting on DNS requests to mitigate the impact of potential attacks. This can help reduce the likelihood of resource exhaustion caused by malicious DNS packets.

Conclusion

In summary, the vulnerability in JRuby and Ruby packages poses a significant risk of Denial of Service due to improper DNS packet handling. It is crucial to update the affected packages to their patched versions to mitigate this risk. Additionally, implementing temporary workarounds can help protect applications until updates can be applied.

See every vulnerability recorded for jruby →

Share this vulnerability

FAQ

The vulnerability is a Denial of Service (DoS) issue caused by improper handling of DNS packet decompression.

The affected packages include various versions of JRuby and Ruby, specifically those listed in the vulnerability details.

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 without requiring any signup.

If immediate updates are not possible, implement rate limiting on DNS requests as a temporary workaround to mitigate the risk.

The CVSS score of this vulnerability is 7.5, indicating a high severity level.

Related vulnerabilities

Recent vulnerabilities recorded for jruby.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. 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