Security Update for JRuby
Summary
DLA-1337-1: jruby - security update. Affects jruby versions < 1.5.6-5+deb7u1. Fixed in 1.5.6-5+deb7u1. How to fix ↓
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.
No signup required · Results in about 60 seconds
Background
JRuby is a pure-Java implementation of the Ruby programming language that includes the rubygems package management framework. This framework allows users to easily install and manage Ruby gems, which are libraries or packages that extend the functionality of Ruby. However, multiple vulnerabilities have been discovered in the rubygems package management framework embedded in JRuby.
Vulnerability Detail
The vulnerabilities found in JRuby's rubygems package management framework include:
- CVE-2018-1000075: A negative size vulnerability in the ruby gem package tar header that could cause an infinite loop.
- CVE-2018-1000076: Ruby gems package improperly verifies cryptographic signatures, allowing a mis-signed gem to be installed if the tarball contains multiple gem signatures.
- CVE-2018-1000077: An improper input validation vulnerability in ruby gems specification homepage attribute could allow a malicious gem to set an invalid homepage URL.
- CVE-2018-1000078: Cross-Site Scripting (XSS) vulnerability in gem server display of homepage attribute.
These vulnerabilities could potentially lead to various security issues, including denial of service, installation of malicious gems, and cross-site scripting attacks.
How To Fix
Minimum fixed version
1.5.6-5+deb7u1
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 →
Conclusion
In conclusion, the rubygems package management framework embedded in JRuby is vulnerable to multiple security issues. To protect your system, it is crucial to upgrade your jruby packages to version 1.5.6-5+deb7u1 or later. For further support on vulnerability remediation, you can contact DevNack.com.
See every vulnerability recorded for jruby →
FAQ
JRuby is a pure-Java implementation of the Ruby programming language that allows Ruby applications to run on the Java Virtual Machine (JVM). It provides seamless integration with Java libraries and frameworks.
The rubygems package management framework is a tool for managing Ruby libraries and dependencies. It allows users to easily install, update, and remove Ruby gems.
A Ruby gem is a library or package that extends the functionality of the Ruby programming language. Gems can be easily installed and managed using the rubygems package management framework.
These vulnerabilities could lead to various security issues, including denial of service, installation of malicious gems, and cross-site scripting attacks. It is important to update your jruby packages to mitigate these risks.
To upgrade your jruby packages, you can follow the standard package update process for your operating system. This typically involves using package management tools such as apt-get or aptitude to install the latest available version of the jruby package.
Related vulnerabilities
Recent vulnerabilities recorded for jruby.