Unsafe Object Deserialization Vulnerability in jruby

jruby Updated 02 Oct 2025

Summary

17/04/2018
N/A
Yes i
Unrated
Not published

DLA-1352-1: jruby - security update. Affects jruby versions < 1.5.6-5+deb7u2. Fixed in 1.5.6-5+deb7u2. 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 Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

jruby is a 100% pure-Java implementation of Ruby. It provides a platform for running Ruby applications on the Java Virtual Machine (JVM). This vulnerability affects jruby versions prior to 1.5.6-5+deb7u2 on Debian 7 Wheezy. The vulnerability arises from an unsafe object deserialization flaw, which allows an attacker to execute arbitrary code by exploiting a specially crafted YAML file when the gem owner is run.

Vulnerability Detail

The unsafe object deserialization vulnerability in jruby allows an attacker to execute arbitrary code by exploiting a flaw in the handling of YAML files. By crafting a malicious YAML file, an attacker can trigger the deserialization of objects in a way that leads to the execution of arbitrary code. This can result in unauthorized access, data leakage, or the compromise of the affected system.

How To Fix

Minimum fixed version

1.5.6-5+deb7u2

This is the first release that contains the fix.

sudo apt-get install --only-upgrade jruby

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

Workaround

There is no specific workaround mentioned for this vulnerability.

Conclusion

The unsafe object deserialization vulnerability in jruby can be exploited by an attacker to execute arbitrary code. It is crucial to upgrade the jruby package to version 1.5.6-5+deb7u2 or later to mitigate this vulnerability. For further assistance and support in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for jruby →

Share this vulnerability

FAQ

jruby is a 100% pure-Java implementation of Ruby, providing a platform for running Ruby applications on the Java Virtual Machine (JVM).

Object deserialization is the process of converting serialized objects back into their original form, allowing them to be used in a program. It is a common feature in many programming languages and frameworks.

The vulnerability in jruby allows an attacker to execute arbitrary code by exploiting a flaw in the handling of YAML files. This can lead to unauthorized access, data leakage, or the compromise of the affected system.

To fix the vulnerability, it is recommended to upgrade the jruby package to version 1.5.6-5+deb7u2 or later. Detailed instructions can be found in the Debian LTS security advisories and documentation.

No specific workaround has been mentioned for this vulnerability.

Related vulnerabilities

Recent vulnerabilities recorded for jruby.

How To Fix

Minimum fixed version

1.5.6-5+deb7u2

This is the first release that contains the fix.

sudo apt-get install --only-upgrade jruby

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