RHEL-09-255085 - RHEL 9 must not allow users to override SSH environment variables.

Information

SSH environment options potentially allow users to bypass access restriction in some configurations.

Solution

Configure the RHEL 9 SSH daemon to not allow unattended or automatic logon to the system by editing the following line in the "/etc/ssh/sshd_config" or in a file in "/etc/ssh/sshd_config.d":

PermitUserEnvironment no

Restart the SSH daemon for the setting to take effect:

$ sudo systemctl restart sshd.service

See Also

https://dl.dod.cyber.mil/wp-content/uploads/stigs/zip/U_RHEL_9_V2R3_STIG.zip

Item Details

Category: CONFIGURATION MANAGEMENT

References: 800-53|CM-6b., CAT|II, CCI|CCI-000366, Rule-ID|SV-257993r1045049_rule, STIG-ID|RHEL-09-255085, Vuln-ID|V-257993

Plugin: Unix

Control ID: 92bb99fd0569cdef3c4d71b14c5e3acc6cf158af32ca0b1f5808c646bd6c153f