UCF STIG Viewer Logo

Oracle JRE 8 must remove previous versions when the latest version is installed.


Overview

Finding ID Version Rule ID IA Controls Severity
V-66935 JRE8-UX-000190 SV-81425r1_rule Medium
Description
Previous versions of software components that are not removed from the information system after updates have been installed may be exploited by adversaries. Some information technology products may remove older versions of software automatically from the information system.
STIG Date
Java Runtime Environment (JRE) version 8 STIG for Unix 2017-09-27

Details

Check Text ( C-67571r1_chk )
Review the system configuration to ensure old versions of JRE have been removed.

There are two ways to uninstall Java. Use the method that you used when you installed Java. For example, if you used RPM to install Java, then use the RPM uninstall method.

If RPM is installed, first query to ascertain that JRE was installed using RPM.

Search for the JRE package by typing:
# rpm -qa | grep -i jre

If RPM reports a package similar to jre--fcs, then JRE is installed with RPM. If JRE is not installed using RPM, skip to "Self-extracting file uninstall".

To uninstall Java via RPM, type:
# rpm -e jre--fcs

Self-extracting file uninstall:
1. Browse folders to ascertain where JRE is installed. Common locations are /usr/java/jre_ or opt/jre_nb/jre_/bin/java/
2. When you have located the directory, you may delete the directory by using the following command:
Note: Ensure JRE is not already installed using RPM before removing the directory.
# rm -r //jre

Ensure only one instance of JRE is installed on the system.

# ps -ef | grep -I jre

If more than one instance of JRE is running, this is a finding.
Fix Text (F-73035r1_fix)
Remove previous versions of JRE.

RPM uninstall:
# rpm -e jre--fcs

Self-extracting file uninstall:
# rm -r jre

Perform for all out of date instances of JRE.