Information
Local RHEL 9 initialization files must not execute world-writable programs.
GROUP ID: V-258062
RULE ID: SV-258062r991589
If user start-up files execute world-writable programs, especially in unprotected directories, they could be maliciously modified to destroy user files or otherwise compromise the system at the user level. If the system is compromised at the user level, it is easier to elevate privileges to eventually compromise the system at the root and network level.
Solution
Set the mode on files being executed by the local initialization files with the following command:
$ sudo chmod 0755 <file>