1.308 RHEL-09-432030

Information

RHEL 9 must restrict privilege elevation to authorized personnel.

GROUP ID: V-258087
RULE ID: SV-258087r1045177

If the "sudoers" file is not configured correctly, any user defined on the system can initiate privileged actions on the target system.

Solution

Remove the following entries from the /etc/sudoers file or configuration file under /etc/sudoers.d/:

ALL ALL=(ALL) ALL
ALL ALL=(ALL:ALL) ALL

See Also

https://workbench.cisecurity.org/benchmarks/22008