ID CVE-2016-7032
Summary sudo_noexec.so in Sudo before 1.8.15 on Linux might allow local users to bypass intended noexec command restrictions via an application that calls the (1) system or (2) popen function.
References
Vulnerable Configurations
  • Todd Miller Sudo 1.6.8
    cpe:2.3:a:todd_miller:sudo:1.6.8
  • Todd Miller Sudo 1.6.9
    cpe:2.3:a:todd_miller:sudo:1.6.9
  • Todd Miller Sudo 1.7.0
    cpe:2.3:a:todd_miller:sudo:1.7.0
  • Todd Miller Sudo 1.7.1
    cpe:2.3:a:todd_miller:sudo:1.7.1
  • Todd Miller Sudo 1.7.2
    cpe:2.3:a:todd_miller:sudo:1.7.2
  • cpe:2.3:a:todd_miller:sudo:1.7.3
    cpe:2.3:a:todd_miller:sudo:1.7.3
  • Todd Miller Sudo 1.7.4
    cpe:2.3:a:todd_miller:sudo:1.7.4
  • Todd Miller Sudo 1.7.5
    cpe:2.3:a:todd_miller:sudo:1.7.5
  • Todd Miller Sudo 1.7.6
    cpe:2.3:a:todd_miller:sudo:1.7.6
  • Todd Miller Sudo 1.7.7
    cpe:2.3:a:todd_miller:sudo:1.7.7
  • Todd Miller Sudo 1.7.8
    cpe:2.3:a:todd_miller:sudo:1.7.8
  • Todd Miller Sudo 1.7.9
    cpe:2.3:a:todd_miller:sudo:1.7.9
  • Todd Miller Sudo 1.7.10
    cpe:2.3:a:todd_miller:sudo:1.7.10
  • Todd Miller Sudo 1.8.0
    cpe:2.3:a:todd_miller:sudo:1.8.0
  • Todd Miller Sudo 1.8.1
    cpe:2.3:a:todd_miller:sudo:1.8.1
  • Todd Miller Sudo 1.8.2
    cpe:2.3:a:todd_miller:sudo:1.8.2
  • Todd Miller Sudo 1.8.3
    cpe:2.3:a:todd_miller:sudo:1.8.3
  • Todd Miller Sudo 1.8.4
    cpe:2.3:a:todd_miller:sudo:1.8.4
  • Todd Miller Sudo 1.8.5
    cpe:2.3:a:todd_miller:sudo:1.8.5
  • Todd Miller Sudo 1.8.6
    cpe:2.3:a:todd_miller:sudo:1.8.6
  • cpe:2.3:a:todd_miller:sudo:1.8.7
    cpe:2.3:a:todd_miller:sudo:1.8.7
  • cpe:2.3:a:todd_miller:sudo:1.8.8
    cpe:2.3:a:todd_miller:sudo:1.8.8
  • cpe:2.3:a:todd_miller:sudo:1.8.9
    cpe:2.3:a:todd_miller:sudo:1.8.9
  • cpe:2.3:a:todd_miller:sudo:1.8.10
    cpe:2.3:a:todd_miller:sudo:1.8.10
  • cpe:2.3:a:todd_miller:sudo:1.8.11
    cpe:2.3:a:todd_miller:sudo:1.8.11
  • cpe:2.3:a:todd_miller:sudo:1.8.12
    cpe:2.3:a:todd_miller:sudo:1.8.12
  • cpe:2.3:a:todd_miller:sudo:1.8.13
    cpe:2.3:a:todd_miller:sudo:1.8.13
  • cpe:2.3:a:todd_miller:sudo:1.8.14:p3
    cpe:2.3:a:todd_miller:sudo:1.8.14:p3
CVSS
Base: 6.9 (as of 24-04-2017 - 14:55)
Impact:
Exploitability:
CWE CWE-284
CAPEC
  • Embedding Scripts within Scripts
    An attack of this type exploits a programs' vulnerabilities that are brought on by allowing remote hosts to execute scripts. The attacker leverages this capability to execute scripts to execute his/her own script by embedding it within other scripts that the target software is likely to execute. The attacker must have the ability to inject script into script that is likely to be executed. If this is done, then the attacker can potentially launch a variety of probes and attacks against the web server's local environment, in many cases the so-called DMZ, back end resources the web server can communicate with, and other hosts. With the proliferation of intermediaries, such as Web App Firewalls, network devices, and even printers having JVMs and Web servers, there are many locales where an attacker can inject malicious scripts. Since this attack pattern defines scripts within scripts, there are likely privileges to execute said attack on the host. Of course, these attacks are not solely limited to the server side, client side scripts like Ajax and client side JavaScript can contain malicious scripts as well. In general all that is required is for there to be sufficient privileges to execute a script, but not protected against writing.
  • Signature Spoofing by Key Theft
    An attacker obtains an authoritative or reputable signer's private signature key by theft and then uses this key to forge signatures from the original signer to mislead a victim into performing actions that benefit the attacker.
Access
VectorComplexityAuthentication
LOCAL MEDIUM NONE
Impact
ConfidentialityIntegrityAvailability
COMPLETE COMPLETE COMPLETE
nessus via4
  • NASL family OracleVM Local Security Checks
    NASL id ORACLEVM_OVMSA-2017-0110.NASL
    description The remote OracleVM system is missing necessary patches to address critical security updates : - Fixes (CVE-2017-1000367) Resolves: rhbz#1455399 - Update noexec syscall blacklist - Fixes (CVE-2016-7032, CVE-2016-7076) Resolves: rhbz#1391938 - RHEL-6.9 erratum - Fix race condition when creating /var/log/sudo-io direcotry Resolves: rhbz#1365156
    last seen 2019-02-21
    modified 2018-09-05
    plugin id 100530
    published 2017-05-31
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=100530
    title OracleVM 3.3 / 3.4 : sudo (OVMSA-2017-0110)
  • NASL family Scientific Linux Local Security Checks
    NASL id SL_20161206_SUDO_ON_SL6_X.NASL
    description Security Fix(es) : - It was discovered that the sudo noexec restriction could have been bypassed if application run via sudo executed system(), popen(), or wordexp() C library functions with a user-supplied argument. A local user permitted to run such application via sudo with noexec restriction could use these flaws to execute arbitrary commands with elevated privileges. (CVE-2016-7032, CVE-2016-7076) These issues were discovered by Florian Weimer (Red Hat).
    last seen 2019-02-21
    modified 2018-12-28
    plugin id 95871
    published 2016-12-15
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=95871
    title Scientific Linux Security Update : sudo on SL6.x, SL7.x i386/x86_64
  • NASL family SuSE Local Security Checks
    NASL id SUSE_SU-2016-2891-1.NASL
    description This update for sudo fixes the following issues : - Fix two security vulnerabilities that allowed users to bypass sudo's NOEXEC functionality : - noexec bypass via system() and popen() [CVE-2016-7032, bsc#1007766] - noexec bypass via wordexp() [CVE-2016-7076, bsc#1007501] - The SSSD plugin would occasionally crash sudo with an 'internal error'. This issue has been fixed. [bsc#948973] - The SSSD plugin would occasionally apply @netgroups rules from LDAP to all users rather than the @netgroup. This issue is now fixed. [bsc#966755] - When the SSSD plugin was used and a local user ran sudo, an e-mail used to be sent to administrator because SSSD did not support sudo rules for local users. This message did not signify an error, however, it was only noise. [bsc#1008043] Note that Tenable Network Security has extracted the preceding description block directly from the SUSE security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues.
    last seen 2019-02-21
    modified 2018-11-29
    plugin id 95312
    published 2016-11-25
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=95312
    title SUSE SLES11 Security Update : sudo (SUSE-SU-2016:2891-1)
  • NASL family CentOS Local Security Checks
    NASL id CENTOS_RHSA-2016-2872.NASL
    description An update for sudo is now available for Red Hat Enterprise Linux 6 and Red Hat Enterprise Linux 7. Red Hat Product Security has rated this update as having a security impact of Moderate. A Common Vulnerability Scoring System (CVSS) base score, which gives a detailed severity rating, is available for each vulnerability from the CVE link(s) in the References section. The sudo packages contain the sudo utility which allows system administrators to provide certain users with the permission to execute privileged commands, which are used for system management purposes, without having to log in as root. Security Fix(es) : * It was discovered that the sudo noexec restriction could have been bypassed if application run via sudo executed system(), popen(), or wordexp() C library functions with a user-supplied argument. A local user permitted to run such application via sudo with noexec restriction could use these flaws to execute arbitrary commands with elevated privileges. (CVE-2016-7032, CVE-2016-7076) These issues were discovered by Florian Weimer (Red Hat).
    last seen 2019-02-21
    modified 2018-11-10
    plugin id 95577
    published 2016-12-07
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=95577
    title CentOS 6 / 7 : sudo (CESA-2016:2872)
  • NASL family Amazon Linux Local Security Checks
    NASL id ALA_ALAS-2017-780.NASL
    description It was discovered that the sudo noexec restriction could have been bypassed if application run via sudo executed system() or popen() C library functions with a user supplied argument. A local user permitted to run such application via sudo with noexec restriction could use this flaw to execute arbitrary commands with elevated privileges. (CVE-2016-7032) It was discovered that the sudo noexec restriction could have been bypassed if application run via sudo executed wordexp() C library function with a user supplied argument. A local user permitted to run such application via sudo with noexec restriction could possibly use this flaw to execute arbitrary commands with elevated privileges. (CVE-2016-7076)
    last seen 2019-02-21
    modified 2018-08-31
    plugin id 96282
    published 2017-01-05
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=96282
    title Amazon Linux AMI : sudo (ALAS-2017-780)
  • NASL family Virtuozzo Local Security Checks
    NASL id VIRTUOZZO_VZLSA-2016-2872.NASL
    description An update for sudo is now available for Red Hat Enterprise Linux 6 and Red Hat Enterprise Linux 7. Red Hat Product Security has rated this update as having a security impact of Moderate. A Common Vulnerability Scoring System (CVSS) base score, which gives a detailed severity rating, is available for each vulnerability from the CVE link(s) in the References section. The sudo packages contain the sudo utility which allows system administrators to provide certain users with the permission to execute privileged commands, which are used for system management purposes, without having to log in as root. Security Fix(es) : * It was discovered that the sudo noexec restriction could have been bypassed if application run via sudo executed system(), popen(), or wordexp() C library functions with a user-supplied argument. A local user permitted to run such application via sudo with noexec restriction could use these flaws to execute arbitrary commands with elevated privileges. (CVE-2016-7032, CVE-2016-7076) These issues were discovered by Florian Weimer (Red Hat). Note that Tenable Network Security has attempted to extract the preceding description block directly from the corresponding Red Hat security advisory. Virtuozzo provides no description for VZLSA advisories. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues.
    last seen 2019-02-21
    modified 2018-11-20
    plugin id 101533
    published 2017-07-14
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=101533
    title Virtuozzo 7 : sudo / sudo-devel (VZLSA-2016-2872)
  • NASL family Red Hat Local Security Checks
    NASL id REDHAT-RHSA-2016-2872.NASL
    description An update for sudo is now available for Red Hat Enterprise Linux 6 and Red Hat Enterprise Linux 7. Red Hat Product Security has rated this update as having a security impact of Moderate. A Common Vulnerability Scoring System (CVSS) base score, which gives a detailed severity rating, is available for each vulnerability from the CVE link(s) in the References section. The sudo packages contain the sudo utility which allows system administrators to provide certain users with the permission to execute privileged commands, which are used for system management purposes, without having to log in as root. Security Fix(es) : * It was discovered that the sudo noexec restriction could have been bypassed if application run via sudo executed system(), popen(), or wordexp() C library functions with a user-supplied argument. A local user permitted to run such application via sudo with noexec restriction could use these flaws to execute arbitrary commands with elevated privileges. (CVE-2016-7032, CVE-2016-7076) These issues were discovered by Florian Weimer (Red Hat).
    last seen 2019-02-21
    modified 2018-11-10
    plugin id 95600
    published 2016-12-07
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=95600
    title RHEL 6 / 7 : sudo (RHSA-2016:2872)
  • NASL family SuSE Local Security Checks
    NASL id OPENSUSE-2016-1343.NASL
    description This update for sudo fixes the following issues : - fix two security vulnerabilities that allowed users to bypass sudo's NOEXEC functionality : - noexec bypass via system() and popen() [CVE-2016-7032, boo#1007766] - noexec bypass via wordexp() [CVE-2016-7076, boo#1007501]
    last seen 2019-02-21
    modified 2018-09-04
    plugin id 95275
    published 2016-11-23
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=95275
    title openSUSE Security Update : sudo (openSUSE-2016-1343)
  • NASL family SuSE Local Security Checks
    NASL id SUSE_SU-2016-2893-1.NASL
    description This update for sudo fixes the following issues : - fix two security vulnerabilities that allowed users to bypass sudo's NOEXEC functionality : - noexec bypass via system() and popen() [CVE-2016-7032, bsc#1007766] - noexec bypass via wordexp() [CVE-2016-7076, bsc#1007501] Note that Tenable Network Security has extracted the preceding description block directly from the SUSE security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues.
    last seen 2019-02-21
    modified 2018-11-29
    plugin id 95313
    published 2016-11-25
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=95313
    title SUSE SLED12 / SLES12 Security Update : sudo (SUSE-SU-2016:2893-1)
  • NASL family Oracle Linux Local Security Checks
    NASL id ORACLELINUX_ELSA-2016-2872.NASL
    description From Red Hat Security Advisory 2016:2872 : An update for sudo is now available for Red Hat Enterprise Linux 6 and Red Hat Enterprise Linux 7. Red Hat Product Security has rated this update as having a security impact of Moderate. A Common Vulnerability Scoring System (CVSS) base score, which gives a detailed severity rating, is available for each vulnerability from the CVE link(s) in the References section. The sudo packages contain the sudo utility which allows system administrators to provide certain users with the permission to execute privileged commands, which are used for system management purposes, without having to log in as root. Security Fix(es) : * It was discovered that the sudo noexec restriction could have been bypassed if application run via sudo executed system(), popen(), or wordexp() C library functions with a user-supplied argument. A local user permitted to run such application via sudo with noexec restriction could use these flaws to execute arbitrary commands with elevated privileges. (CVE-2016-7032, CVE-2016-7076) These issues were discovered by Florian Weimer (Red Hat).
    last seen 2019-02-21
    modified 2018-09-05
    plugin id 95598
    published 2016-12-07
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=95598
    title Oracle Linux 6 / 7 : sudo (ELSA-2016-2872)
  • NASL family SuSE Local Security Checks
    NASL id OPENSUSE-2016-1381.NASL
    description This update for sudo fixes the following issues : - fix two security vulnerabilities that allowed users to bypass sudo's NOEXEC functionality : - noexec bypass via system() and popen() [CVE-2016-7032, bsc#1007766] - noexec bypass via wordexp() [CVE-2016-7076, bsc#1007501] Sudo was updated to the package from SUSE:SLE-12-SP2:Update, incorporating the following new feature : - allow dynamic groups with sudo [fate#318850] The following bug fixes are included : - parse /proc/stat for boottime correctly [boo#899252] - enable SASL authentication [boo#979531]
    last seen 2019-02-21
    modified 2018-12-18
    plugin id 95533
    published 2016-12-05
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=95533
    title openSUSE Security Update : sudo (openSUSE-2016-1381)
  • NASL family Huawei Local Security Checks
    NASL id EULEROS_SA-2017-1004.NASL
    description According to the versions of the sudo package installed, the EulerOS installation on the remote host is affected by the following vulnerabilities : - It was discovered that the sudo noexec restriction could have been bypassed if application run via sudo executed system(), popen(), or wordexp() C library functions with a user-supplied argument. A local user permitted to run such application via sudo with noexec restriction could use these flaws to execute arbitrary commands with elevated privileges. (CVE-2016-7032, CVE-2016-7076) Note that Tenable Network Security has extracted the preceding description block directly from the EulerOS security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues.
    last seen 2019-02-21
    modified 2018-11-14
    plugin id 99851
    published 2017-05-01
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=99851
    title EulerOS 2.0 SP1 : sudo (EulerOS-SA-2017-1004)
  • NASL family OracleVM Local Security Checks
    NASL id ORACLEVM_OVMSA-2016-0170.NASL
    description The remote OracleVM system is missing necessary patches to address critical security updates : - Update noexec syscall blacklist - Fixes (CVE-2016-7032, CVE-2016-7076) Resolves: rhbz#1391937 - RHEL-6.8 erratum - fixed a bug causing that non-root users can list privileges of other users Resolves: rhbz#1312481 - RHEL-6.8 erratum - fixed handling of closefrom_override defaults option Resolves: rhbz#1309976 - RHEL-6.8 erratum - fixed potential getcwd failure, resulting in Null pointer exception Resolves: rhbz#1284886 - RHEL-6.8 erratum - fixed sssd's detection of user with zero rules Resolves: rhbz#1220480 - RHEL-6.8 erratum - search also by user id when fetching rules from LDAP Resolves: rhbz#1135531 - RHEL-6.8 erratum - fixed ldap's and sssd's sudoOption value and remove quotes - fixed ldap's and sssd's sudoOption whitespaces parse problem Resolves: rhbz#1144422 Resolves: rhbz#1279447 - RHEL-6.8 erratum - removed defaults option requiretty from /etc/sudoers - backported pam_service and pam_login_service defaults options - implemented a new defaults option for changing netgroup processing semantics - fixed visudo's quiet cli option Resolves: rhbz#1248695 Resolves: rhbz#1247231 Resolves: rhbz#1241896 Resolves: rhbz#1197885 Resolves: rhbz#1233205 - added patch to re-introduce old group processing behaviour Resolves: rhbz#1075836
    last seen 2019-02-21
    modified 2018-09-05
    plugin id 95599
    published 2016-12-07
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=95599
    title OracleVM 3.3 / 3.4 : sudo (OVMSA-2016-0170)
  • NASL family Debian Local Security Checks
    NASL id DEBIAN_DLA-707.NASL
    description It was discovered that the sudo noexec restriction could have been bypassed if application run via sudo executed system(), popen() or wordexp() C library functions with a user-supplied argument. A local user permitted to run such application via sudo with noexec restriction could possibly use this flaw to execute arbitrary commands with elevated privileges. CVE-2016-7032 noexec bypass via system() and popen() CVE-2016-7076 noexec bypass via wordexp() For Debian 7 'Wheezy', these problems have been fixed in version 1.8.5p2-1+nmu3+deb7u2. We recommend that you upgrade your sudo packages. NOTE: Tenable Network Security has extracted the preceding description block directly from the DLA security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues.
    last seen 2019-02-21
    modified 2018-12-14
    plugin id 94764
    published 2016-11-15
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=94764
    title Debian DLA-707-1 : sudo security update
  • NASL family SuSE Local Security Checks
    NASL id OPENSUSE-2016-1402.NASL
    description This update for sudo fixes the following security issues : - Fix two security vulnerabilities that allowed users to bypass sudo's NOEXEC functionality : - noexec bypass via system() and popen() [CVE-2016-7032, bsc#1007766] - noexec bypass via wordexp() [CVE-2016-7076, bsc#1007501] - Fix unsafe handling of TZ environment variable. [CVE-2014-9680, bsc#917806] Additionally, these non-security fixes are included in the update : - Fix 'ignoring time stamp from the future' message after each boot with !tty_tickets. [bsc#899252] - Enable support for SASL-based authentication. [bsc#979531] This update was imported from the SUSE:SLE-12:Update update project.
    last seen 2019-02-21
    modified 2018-09-04
    plugin id 95556
    published 2016-12-06
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=95556
    title openSUSE Security Update : sudo (openSUSE-2016-1402)
  • NASL family SuSE Local Security Checks
    NASL id SUSE_SU-2016-2904-1.NASL
    description This update for sudo fixes the following security issues : - Fix two security vulnerabilities that allowed users to bypass sudo's NOEXEC functionality : - noexec bypass via system() and popen() [CVE-2016-7032, bsc#1007766] - noexec bypass via wordexp() [CVE-2016-7076, bsc#1007501] - Fix unsafe handling of TZ environment variable. [CVE-2014-9680, bsc#917806] Additionally, these non-security fixes are included in the update : - Fix 'ignoring time stamp from the future' message after each boot with !tty_tickets. [bsc#899252] - Enable support for SASL-based authentication. [bsc#979531] Note that Tenable Network Security has extracted the preceding description block directly from the SUSE security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues.
    last seen 2019-02-21
    modified 2018-11-29
    plugin id 95317
    published 2016-11-25
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=95317
    title SUSE SLED12 / SLES12 Security Update : sudo (SUSE-SU-2016:2904-1)
redhat via4
advisories
rhsa
id RHSA-2016:2872
rpms
  • sudo-0:1.8.6p3-25.el6_8
  • sudo-devel-0:1.8.6p3-25.el6_8
  • sudo-0:1.8.6p7-21.el7_3
  • sudo-devel-0:1.8.6p7-21.el7_3
refmap via4
bid 95776
confirm
Last major update 24-04-2017 - 20:29
Published 14-04-2017 - 14:59
Last modified 04-01-2018 - 21:31
Back to Top