ALMA-09-017290 - AlmaLinux OS 9 must restrict privilege elevation to authorized personnel.

Information

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://dl.dod.cyber.mil/wp-content/uploads/stigs/zip/U_CL_AlmaLinux_OS_9_V1R6_STIG.zip