UCF STIG Viewer Logo
Changes are coming to https://stigviewer.com. Take our survey to help us understand your usage and how we can better serve you in the future.
Take Survey

The Red Hat Enterprise Linux operating system must not allow users to override SSH environment variables.


Overview

Finding ID Version Rule ID IA Controls Severity
V-204434 RHEL-07-010460 SV-204434r877377_rule Medium
Description
Failure to restrict system access to authenticated users negatively impacts operating system security.
STIG Date
Red Hat Enterprise Linux 7 Security Technical Implementation Guide 2022-12-06

Details

Check Text ( C-4558r88494_chk )
Verify the operating system does not allow users to override environment variables to the SSH daemon.

Check for the value of the "PermitUserEnvironment" keyword with the following command:

# grep -i permituserenvironment /etc/ssh/sshd_config
PermitUserEnvironment no

If the "PermitUserEnvironment" keyword is not set to "no", is missing, or is commented out, this is a finding.
Fix Text (F-4558r88495_fix)
Configure the operating system to not allow users to override environment variables to the SSH daemon.

Edit the "/etc/ssh/sshd_config" file to uncomment or add the line for "PermitUserEnvironment" keyword and set the value to "no":

PermitUserEnvironment no

The SSH service must be restarted for changes to take effect.