The fix_lookup_id function in sealert in setroubleshoot before 3.2.23 allows local users to execute arbitrary commands as root by triggering an SELinux denial with a crafted file name, related to executing external commands with the commands.getstatusoutput function.
The product constructs all or part of a command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended command when it is sent to a downstream component.
Name | Vendor | Start Version | End Version |
---|---|---|---|
Setroubleshoot | Setroubleshoot_project | * | 3.2.22 (including) |
Red Hat Enterprise Linux 6 | RedHat | setroubleshoot-0:3.0.47-12.el6_8 | * |
Red Hat Enterprise Linux 6 | RedHat | setroubleshoot-plugins-0:3.0.40-3.1.el6_8 | * |
Red Hat Enterprise Linux 7 | RedHat | setroubleshoot-0:3.2.24-1.1.el7 | * |
Command injection vulnerabilities typically occur when:
Many protocols and products have their own custom command language. While OS or shell command strings are frequently discovered and targeted, developers may not realize that these other command languages might also be vulnerable to attacks. Command injection is a common problem with wrapper programs.