Oracle Linux 7 must not install packages from the Extra Packages for Enterprise Linux (EPEL) repository.

STIG ID: OL07-00-020000  |  SRG: SRG-OS-000095-GPOS-00049 |  Severity: high (CAT I)  |  CCI: CCI-000381 |  Vulnerability Id: V-221704

Vulnerability Discussion

The EPEL is a repository of high-quality open-source packages for enterprise-class Linux distributions such as RHEL, CentOS, AlmaLinux, Rocky Linux, and Oracle Linux. These packages are not part of the official distribution but are built using the same Fedora build system to ensure compatibility and maintain quality standards.

Check

Verify OL 7 is not able to install packages from the EPEL with the following command:

# yum repolist enabled | grep -i 'epel'

If any output is returned, this is a finding.

Fix

Configure OL7 to not have access to the EPEL repo.

Remove the repo with the following command:

# yum remove oracle-epel-release-el7