Critical Vulnerability in Ruby and JRuby Packages: The Marvin Attack

jruby Updated 03 Oct 2025

Summary

09/01/2025
N/A
No i
High
7.4

UBUNTU-CVE-2025-0306: A vulnerability was found in Ruby. 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

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. JRuby is an implementation of Ruby on the Java Virtual Machine (JVM), allowing Ruby applications to leverage Java libraries. Both Ruby and JRuby are essential for many applications, but they are currently vulnerable to a significant security flaw that could compromise encrypted communications.

Vulnerability Detail

A vulnerability has been identified in Ruby and JRuby that exposes them to the Marvin Attack. This attack enables an adversary to decrypt previously encrypted messages or forge signatures by interacting with the vulnerable service. The flaw arises from the way Ruby handles cryptographic operations, making it susceptible to exploitation through a series of crafted messages. The potential ramifications include unauthorized access to sensitive data and the ability to impersonate legitimate users, posing a severe risk to applications relying on these packages.

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 disabling any cryptographic features that rely on the vulnerable Ruby and JRuby implementations until the packages can be updated. However, this may not be feasible for all applications and should be approached with caution.

Conclusion

The vulnerability in Ruby and JRuby presents a significant risk to applications that rely on these packages for secure communications. It is essential to update to the latest patched versions to mitigate this risk. Users should also consider using tools like Vulert to monitor their applications for vulnerabilities in real-time.

See every vulnerability recorded for jruby →

Share this vulnerability

FAQ

The Marvin Attack is a vulnerability that allows attackers to decrypt previously encrypted messages or forge signatures by exploiting weaknesses in the Ruby interpreter.

All versions of Ruby and JRuby prior to the patched releases are affected by this vulnerability.

You can use Vulert, which monitors and alerts for open-source vulnerabilities in your software. Visit Vulert Scanner to check if your application is impacted without needing to sign up.

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

If immediate updates are not possible, consider implementing temporary workarounds, such as disabling cryptographic features that rely on the vulnerable packages.

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