1.129 ALMA-09-017290

Information

AlmaLinux OS 9 must restrict privilege elevation to authorized personnel.

GROUP ID: V-269232
RULE ID: SV-269232r1101826

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 files under /etc/sudoers.d/ (including NOPASSWD equivalents):

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

See Also

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