Critical Vulnerability in Ruby Packages: CVE-2024-27282

jruby Updated 03 Oct 2025

Summary

14/05/2024
N/A
No i
Medium
6.6

UBUNTU-CVE-2024-27282: An issue was discovered in Ruby 3.x through 3.3.0. 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 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

Ruby is a dynamic, open-source programming language known for its simplicity and productivity. It is widely used for web development, particularly with the Ruby on Rails framework. The affected packages, including jruby and various ruby versions, are essential for running Ruby applications. This vulnerability exposes these packages to potential exploitation, compromising the integrity and confidentiality of applications that rely on them.

Vulnerability Detail

An issue was discovered in Ruby 3.x through 3.3.0. If attacker-supplied data is provided to the Ruby regex compiler, it is possible to extract arbitrary heap data relative to the start of the text, including pointers and sensitive strings. This vulnerability can lead to unauthorized access to sensitive information, potentially allowing attackers to manipulate or exploit the application further.

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 measure, avoid using attacker-supplied data in the Ruby regex compiler until the packages are updated. Validate and sanitize all input data rigorously to minimize the risk of exploitation.

Conclusion

CVE-2024-27282 represents a significant risk to applications using affected Ruby packages. It is crucial to update to the patched versions to safeguard against potential exploitation. Regular monitoring and vulnerability management practices, such as using tools like Vulert, can help maintain application security.

See every vulnerability recorded for jruby →

Share this vulnerability

FAQ

CVE-2024-27282 is a vulnerability in Ruby that allows attackers to extract sensitive information from the memory if they can supply malicious data to the regex compiler.

The vulnerability affects Ruby versions 3.x through 3.3.0, including various packages like jruby and ruby2.3, ruby2.5, ruby2.7, and ruby3.0.

You can use Vulert, which monitors open-source vulnerabilities in your software. By simply using a manifest file like package-lock.json, you can check for vulnerabilities without needing to install anything.

Failure to address this vulnerability may lead to unauthorized access to sensitive data, which could result in data breaches, application compromise, and loss of user trust.

Yes, you can temporarily mitigate the risk by validating and sanitizing all input data to prevent malicious data from being processed by the regex compiler.

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