CVE-2016-4989
published 2017-04-11CVE-2016-4989: setroubleshoot allows local users to bypass an intended container protection mechanism and execute arbitrary commands by (1) triggering an SELinux denial with…
PriorityP434high7CVSS 3.0
AVLACHPRLUINSUCHIHAH
EPSS
0.46%
36.7th percentile
setroubleshoot allows local users to bypass an intended container protection mechanism and execute arbitrary commands by (1) triggering an SELinux denial with a crafted file name, which is handled by the _set_tpath function in audit_data.py or via a crafted (2) local_id or (3) analysis_id field in a crafted XML document to the run_fix function in SetroubleshootFixit.py, related to the subprocess.check_output and commands.getstatusoutput functions, a different vulnerability than CVE-2016-4445.
Affected
5 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| redhat | enterprise_linux_desktop | — | — |
| redhat | enterprise_linux_hpc_node | — | — |
| redhat | enterprise_linux_server | — | — |
| redhat | enterprise_linux_workstation | — | — |
| setroubleshoot_project | setroubleshoot | <= - | — |
CVSS provenance
nvdv3.07.0HIGHCVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
nvdv2.06.9MEDIUMAV:L/AC:M/Au:N/C:C/I:C/A:C
vendor_redhat7.0HIGH
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
Red Hat
setroubleshoot: command injection issues
vendor_redhat·2016-06-21·CVSS 7.0
CVE-2016-4989 [HIGH] CWE-77 setroubleshoot: command injection issues
setroubleshoot: command injection issues
setroubleshoot allows local users to bypass an intended container protection mechanism and execute arbitrary commands by (1) triggering an SELinux denial with a crafted file name, which is handled by the _set_tpath function in audit_data.py or via a crafted (2) local_id or (3) analysis_id field in a crafted XML document to the run_fix function in SetroubleshootFixit.py, related to the subprocess.check_output and commands.getstatusoutput functions, a different vulnerability than CVE-2016-4445.
Shell command injection flaws were found in the way the setroubleshoot executed external commands. A local attacker able to trigger certain SELinux denials could use these flaws to execute arbitrary code with root privileges.
Package: setroubleshoot (Red Hat
GHSA
GHSA-585r-x79p-835g: setroubleshoot allows local users to bypass an intended container protection mechanism and execute arbitrary commands by (1) triggering an SELinux den
ghsa_unreviewed·2022-05-17·CVSS 7.0
CVE-2016-4989 [HIGH] CWE-77 GHSA-585r-x79p-835g: setroubleshoot allows local users to bypass an intended container protection mechanism and execute arbitrary commands by (1) triggering an SELinux den
setroubleshoot allows local users to bypass an intended container protection mechanism and execute arbitrary commands by (1) triggering an SELinux denial with a crafted file name, which is handled by the _set_tpath function in audit_data.py or via a crafted (2) local_id or (3) analysis_id field in a crafted XML document to the run_fix function in SetroubleshootFixit.py, related to the subprocess.check_output and commands.getstatusoutput functions, a different vulnerability than CVE-2016-4445.
No detection rules found.
No public exploits indexed.
Bugzilla
CVE-2016-4989 setroubleshoot: command injection issues [fedora-all]
bugzilla·2016-06-21·CVSS 7.0
CVE-2016-4989 [HIGH] CVE-2016-4989 setroubleshoot: command injection issues [fedora-all]
CVE-2016-4989 setroubleshoot: command injection issues [fedora-all]
This is an automatically created tracking bug! It was created to ensure
that one or more security vulnerabilities are fixed in affected versions
of Fedora.
For comments that are specific to the vulnerability please use bugs filed
against the "Security Response" product referenced in the "Blocks" field.
For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs
When submitting as an update, use the fedpkg template provided in the next
comment(s). This will include the bug IDs of this tracking bug as well as
the relevant top-level CVE bugs.
Please also mention the CVE IDs being fixed in the RPM changelog and the
fedpkg commit message.
NOTE: this issue affects multiple supported versions of Fedora. Wh
Bugzilla
CVE-2016-4989 setroubleshoot: command injection issues
bugzilla·2016-06-14·CVSS 7.0
CVE-2016-4989 [HIGH] CVE-2016-4989 setroubleshoot: command injection issues
CVE-2016-4989 setroubleshoot: command injection issues
It was discovered that setroubleshoot executed external commands using subprocess.check_output(), commands.getstatusoutput(), or commands.getoutput() without properly sanitizing untrusted inputs used as command arguments. These inputs originated from SELinux AVC messages. A local user could use this flaw to execute arbitrary code as root if they could trigger an SELinux denial using a file with a specially crafted name.
The following cases were identified:
- _set_tpath() in audit_data.py - When executing locate command, it used subprocess.check_output() (new setroubleshoot versions) or commands.getstatusoutput() (older versions) to execute command using shell. A local user could use this flaw to execute commands with setroubleshootd
http://seclists.org/oss-sec/2016/q2/574http://securitytracker.com/id/1036144https://access.redhat.com/errata/RHSA-2016:1293https://bugzilla.redhat.com/show_bug.cgi?id=1346461https://github.com/fedora-selinux/setroubleshoot/commit/dda55aa50db95a25f0d919c3a0d5871827cdc40fhttps://github.com/fedora-selinux/setroubleshoot/commit/e69378d7e82a503534d29c5939fa219341e8f2adhttps://rhn.redhat.com/errata/RHSA-2016-1267.htmlhttp://seclists.org/oss-sec/2016/q2/574http://securitytracker.com/id/1036144https://access.redhat.com/errata/RHSA-2016:1293https://bugzilla.redhat.com/show_bug.cgi?id=1346461https://github.com/fedora-selinux/setroubleshoot/commit/dda55aa50db95a25f0d919c3a0d5871827cdc40fhttps://github.com/fedora-selinux/setroubleshoot/commit/e69378d7e82a503534d29c5939fa219341e8f2adhttps://rhn.redhat.com/errata/RHSA-2016-1267.html
2017-04-11
Published