ID CVE-2010-1646
Summary The secure path feature in env.c in sudo 1.3.1 through 1.6.9p22 and 1.7.0 through 1.7.2p6 does not properly handle an environment that contains multiple PATH variables, which might allow local users to gain privileges via a crafted value of the last PATH variable.
References
Vulnerable Configurations
  • cpe:2.3:a:todd_miller:sudo:1.3.1
    cpe:2.3:a:todd_miller:sudo:1.3.1
  • Todd Miller Sudo 1.6
    cpe:2.3:a:todd_miller:sudo:1.6
  • Todd Miller Sudo 1.6.1
    cpe:2.3:a:todd_miller:sudo:1.6.1
  • Todd Miller Sudo 1.6.2
    cpe:2.3:a:todd_miller:sudo:1.6.2
  • cpe:2.3:a:todd_miller:sudo:1.6.2p1
    cpe:2.3:a:todd_miller:sudo:1.6.2p1
  • cpe:2.3:a:todd_miller:sudo:1.6.2p2
    cpe:2.3:a:todd_miller:sudo:1.6.2p2
  • Todd Miller Sudo 1.6.2p3
    cpe:2.3:a:todd_miller:sudo:1.6.2p3
  • Todd Miller Sudo 1.6.3
    cpe:2.3:a:todd_miller:sudo:1.6.3
  • cpe:2.3:a:todd_miller:sudo:1.6.3p1
    cpe:2.3:a:todd_miller:sudo:1.6.3p1
  • cpe:2.3:a:todd_miller:sudo:1.6.3p2
    cpe:2.3:a:todd_miller:sudo:1.6.3p2
  • cpe:2.3:a:todd_miller:sudo:1.6.3p3
    cpe:2.3:a:todd_miller:sudo:1.6.3p3
  • cpe:2.3:a:todd_miller:sudo:1.6.3p4
    cpe:2.3:a:todd_miller:sudo:1.6.3p4
  • cpe:2.3:a:todd_miller:sudo:1.6.3p5
    cpe:2.3:a:todd_miller:sudo:1.6.3p5
  • cpe:2.3:a:todd_miller:sudo:1.6.3p6
    cpe:2.3:a:todd_miller:sudo:1.6.3p6
  • cpe:2.3:a:todd_miller:sudo:1.6.3p7
    cpe:2.3:a:todd_miller:sudo:1.6.3p7
  • Todd Miller Sudo 1.6.4
    cpe:2.3:a:todd_miller:sudo:1.6.4
  • cpe:2.3:a:todd_miller:sudo:1.6.4p1
    cpe:2.3:a:todd_miller:sudo:1.6.4p1
  • Todd Miller Sudo 1.6.4p2
    cpe:2.3:a:todd_miller:sudo:1.6.4p2
  • Todd Miller Sudo 1.6.5
    cpe:2.3:a:todd_miller:sudo:1.6.5
  • cpe:2.3:a:todd_miller:sudo:1.6.5p1
    cpe:2.3:a:todd_miller:sudo:1.6.5p1
  • cpe:2.3:a:todd_miller:sudo:1.6.5p2
    cpe:2.3:a:todd_miller:sudo:1.6.5p2
  • Todd Miller Sudo 1.6.6
    cpe:2.3:a:todd_miller:sudo:1.6.6
  • Todd Miller Sudo 1.6.7
    cpe:2.3:a:todd_miller:sudo:1.6.7
  • cpe:2.3:a:todd_miller:sudo:1.6.7p1
    cpe:2.3:a:todd_miller:sudo:1.6.7p1
  • cpe:2.3:a:todd_miller:sudo:1.6.7p2
    cpe:2.3:a:todd_miller:sudo:1.6.7p2
  • cpe:2.3:a:todd_miller:sudo:1.6.7p3
    cpe:2.3:a:todd_miller:sudo:1.6.7p3
  • cpe:2.3:a:todd_miller:sudo:1.6.7p4
    cpe:2.3:a:todd_miller:sudo:1.6.7p4
  • Todd Miller Sudo 1.6.7p5
    cpe:2.3:a:todd_miller:sudo:1.6.7p5
  • Todd Miller Sudo 1.6.8
    cpe:2.3:a:todd_miller:sudo:1.6.8
  • cpe:2.3:a:todd_miller:sudo:1.6.8p1
    cpe:2.3:a:todd_miller:sudo:1.6.8p1
  • cpe:2.3:a:todd_miller:sudo:1.6.8p2
    cpe:2.3:a:todd_miller:sudo:1.6.8p2
  • cpe:2.3:a:todd_miller:sudo:1.6.8p3
    cpe:2.3:a:todd_miller:sudo:1.6.8p3
  • cpe:2.3:a:todd_miller:sudo:1.6.8p4
    cpe:2.3:a:todd_miller:sudo:1.6.8p4
  • cpe:2.3:a:todd_miller:sudo:1.6.8p5
    cpe:2.3:a:todd_miller:sudo:1.6.8p5
  • cpe:2.3:a:todd_miller:sudo:1.6.8p6
    cpe:2.3:a:todd_miller:sudo:1.6.8p6
  • cpe:2.3:a:todd_miller:sudo:1.6.8p7
    cpe:2.3:a:todd_miller:sudo:1.6.8p7
  • cpe:2.3:a:todd_miller:sudo:1.6.8p8
    cpe:2.3:a:todd_miller:sudo:1.6.8p8
  • cpe:2.3:a:todd_miller:sudo:1.6.8p9
    cpe:2.3:a:todd_miller:sudo:1.6.8p9
  • cpe:2.3:a:todd_miller:sudo:1.6.8p10
    cpe:2.3:a:todd_miller:sudo:1.6.8p10
  • cpe:2.3:a:todd_miller:sudo:1.6.8p11
    cpe:2.3:a:todd_miller:sudo:1.6.8p11
  • Todd Miller Sudo 1.6.8p12
    cpe:2.3:a:todd_miller:sudo:1.6.8p12
  • Todd Miller Sudo 1.6.9
    cpe:2.3:a:todd_miller:sudo:1.6.9
  • cpe:2.3:a:todd_miller:sudo:1.6.9p1
    cpe:2.3:a:todd_miller:sudo:1.6.9p1
  • cpe:2.3:a:todd_miller:sudo:1.6.9p2
    cpe:2.3:a:todd_miller:sudo:1.6.9p2
  • cpe:2.3:a:todd_miller:sudo:1.6.9p3
    cpe:2.3:a:todd_miller:sudo:1.6.9p3
  • cpe:2.3:a:todd_miller:sudo:1.6.9p4
    cpe:2.3:a:todd_miller:sudo:1.6.9p4
  • cpe:2.3:a:todd_miller:sudo:1.6.9p5
    cpe:2.3:a:todd_miller:sudo:1.6.9p5
  • cpe:2.3:a:todd_miller:sudo:1.6.9p6
    cpe:2.3:a:todd_miller:sudo:1.6.9p6
  • cpe:2.3:a:todd_miller:sudo:1.6.9p7
    cpe:2.3:a:todd_miller:sudo:1.6.9p7
  • cpe:2.3:a:todd_miller:sudo:1.6.9p8
    cpe:2.3:a:todd_miller:sudo:1.6.9p8
  • cpe:2.3:a:todd_miller:sudo:1.6.9p9
    cpe:2.3:a:todd_miller:sudo:1.6.9p9
  • cpe:2.3:a:todd_miller:sudo:1.6.9p10
    cpe:2.3:a:todd_miller:sudo:1.6.9p10
  • cpe:2.3:a:todd_miller:sudo:1.6.9p11
    cpe:2.3:a:todd_miller:sudo:1.6.9p11
  • cpe:2.3:a:todd_miller:sudo:1.6.9p12
    cpe:2.3:a:todd_miller:sudo:1.6.9p12
  • cpe:2.3:a:todd_miller:sudo:1.6.9p13
    cpe:2.3:a:todd_miller:sudo:1.6.9p13
  • cpe:2.3:a:todd_miller:sudo:1.6.9p14
    cpe:2.3:a:todd_miller:sudo:1.6.9p14
  • cpe:2.3:a:todd_miller:sudo:1.6.9p15
    cpe:2.3:a:todd_miller:sudo:1.6.9p15
  • cpe:2.3:a:todd_miller:sudo:1.6.9p16
    cpe:2.3:a:todd_miller:sudo:1.6.9p16
  • cpe:2.3:a:todd_miller:sudo:1.6.9p17
    cpe:2.3:a:todd_miller:sudo:1.6.9p17
  • cpe:2.3:a:todd_miller:sudo:1.6.9p18
    cpe:2.3:a:todd_miller:sudo:1.6.9p18
  • cpe:2.3:a:todd_miller:sudo:1.6.9p19
    cpe:2.3:a:todd_miller:sudo:1.6.9p19
  • Todd Miller Sudo 1.6.9p20
    cpe:2.3:a:todd_miller:sudo:1.6.9p20
  • Todd Miller Sudo 1.6.9p21
    cpe:2.3:a:todd_miller:sudo:1.6.9p21
  • Todd Miller Sudo 1.6.9p22
    cpe:2.3:a:todd_miller:sudo:1.6.9p22
  • 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
  • Todd Miller Sudo 1.7.2p1
    cpe:2.3:a:todd_miller:sudo:1.7.2p1
  • Todd Miller Sudo 1.7.2p2
    cpe:2.3:a:todd_miller:sudo:1.7.2p2
  • Todd Miller Sudo 1.7.2p3
    cpe:2.3:a:todd_miller:sudo:1.7.2p3
  • Todd Miller Sudo 1.7.2p4
    cpe:2.3:a:todd_miller:sudo:1.7.2p4
  • Todd Miller Sudo 1.7.2p5
    cpe:2.3:a:todd_miller:sudo:1.7.2p5
  • Todd Miller Sudo 1.7.2p6
    cpe:2.3:a:todd_miller:sudo:1.7.2p6
  • Todd Miller Sudo 1.7.2p7
    cpe:2.3:a:todd_miller:sudo:1.7.2p7
CVSS
Base: 6.2 (as of 07-06-2010 - 15:14)
Impact:
Exploitability:
CWE CWE-264
CAPEC
  • Accessing, Modifying or Executing Executable Files
    An attack of this type exploits a system's configuration that allows an attacker to either directly access an executable file, for example through shell access; or in a possible worst case allows an attacker to upload a file and then execute it. Web servers, ftp servers, and message oriented middleware systems which have many integration points are particularly vulnerable, because both the programmers and the administrators must be in synch regarding the interfaces and the correct privileges for each interface.
  • Leverage Executable Code in Non-Executable Files
    An attack of this type exploits a system's trust in configuration and resource files, when the executable loads the resource (such as an image file or configuration file) the attacker has modified the file to either execute malicious code directly or manipulate the target process (e.g. application server) to execute based on the malicious configuration parameters. Since systems are increasingly interrelated mashing up resources from local and remote sources the possibility of this attack occurring is high. The attack can be directed at a client system, such as causing buffer overrun through loading seemingly benign image files, as in Microsoft Security Bulletin MS04-028 where specially crafted JPEG files could cause a buffer overrun once loaded into the browser. Another example targets clients reading pdf files. In this case the attacker simply appends javascript to the end of a legitimate url for a pdf (http://www.gnucitizen.org/blog/danger-danger-danger/) http://path/to/pdf/file.pdf#whatever_name_you_want=javascript:your_code_here The client assumes that they are reading a pdf, but the attacker has modified the resource and loaded executable javascript into the client's browser process. The attack can also target server processes. The attacker edits the resource or configuration file, for example a web.xml file used to configure security permissions for a J2EE app server, adding role name "public" grants all users with the public role the ability to use the administration functionality. The server trusts its configuration file to be correct, but when they are manipulated, the attacker gains full control.
  • Blue Boxing
    This type of attack against older telephone switches and trunks has been around for decades. A tone is sent by an adversary to impersonate a supervisor signal which has the effect of rerouting or usurping command of the line. While the US infrastructure proper may not contain widespread vulnerabilities to this type of attack, many companies are connected globally through call centers and business process outsourcing. These international systems may be operated in countries which have not upgraded Telco infrastructure and so are vulnerable to Blue boxing. Blue boxing is a result of failure on the part of the system to enforce strong authorization for administrative functions. While the infrastructure is different than standard current applications like web applications, there are historical lessons to be learned to upgrade the access control for administrative functions.
  • Restful Privilege Elevation
    Rest uses standard HTTP (Get, Put, Delete) style permissions methods, but these are not necessarily correlated generally with back end programs. Strict interpretation of HTTP get methods means that these HTTP Get services should not be used to delete information on the server, but there is no access control mechanism to back up this logic. This means that unless the services are properly ACL'd and the application's service implementation are following these guidelines then an HTTP request can easily execute a delete or update on the server side. The attacker identifies a HTTP Get URL such as http://victimsite/updateOrder, which calls out to a program to update orders on a database or other resource. The URL is not idempotent so the request can be submitted multiple times by the attacker, additionally, the attacker may be able to exploit the URL published as a Get method that actually performs updates (instead of merely retrieving data). This may result in malicious or inadvertent altering of data on the server.
  • Target Programs with Elevated Privileges
    This attack targets programs running with elevated privileges. The attacker would try to leverage a bug in the running program and get arbitrary code to execute with elevated privileges. For instance an attacker would look for programs that write to the system directories or registry keys (such as HKLM, which stores a number of critical Windows environment variables). These programs are typically running with elevated privileges and have usually not been designed with security in mind. Such programs are excellent exploit targets because they yield lots of power when they break. The malicious user try to execute its code at the same level as a privileged system call.
  • Manipulating Input to File System Calls
    An attacker manipulates inputs to the target software which the target software passes to file system calls in the OS. The goal is to gain access to, and perhaps modify, areas of the file system that the target software did not intend to be accessible.
Access
VectorComplexityAuthentication
LOCAL HIGH NONE
Impact
ConfidentialityIntegrityAvailability
COMPLETE COMPLETE COMPLETE
nessus via4
  • NASL family Gentoo Local Security Checks
    NASL id GENTOO_GLSA-201009-03.NASL
    description The remote host is affected by the vulnerability described in GLSA-201009-03 (sudo: Privilege Escalation) Multiple vulnerabilities have been reported in sudo: Evan Broder and Anders Kaseorg of Ksplice, Inc. reported that the sudo 'secure path' feature does not properly handle multiple PATH variables (CVE-2010-1646). Markus Wuethrich of Swiss Post reported that sudo fails to restrict access when using Runas groups and the group (-g) command line option (CVE-2010-2956). Impact : A local attacker could exploit these vulnerabilities to gain the ability to run certain commands with the privileges of other users, including root, depending on the configuration. Workaround : There is no known workaround at this time.
    last seen 2019-02-21
    modified 2018-08-10
    plugin id 49124
    published 2010-09-08
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=49124
    title GLSA-201009-03 : sudo: Privilege Escalation
  • NASL family Fedora Local Security Checks
    NASL id FEDORA_2010-9402.NASL
    description - added patch that fixes insufficient environment sanitization issue (CVE-2010-1646) Note that Tenable Network Security has extracted the preceding description block directly from the Fedora 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-07-12
    plugin id 47531
    published 2010-07-01
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=47531
    title Fedora 13 : sudo-1.7.2p6-2.fc13 (2010-9402)
  • NASL family Scientific Linux Local Security Checks
    NASL id SL_20100615_SUDO_ON_SL5_X.NASL
    description A flaw was found in the way sudo handled the presence of duplicated environment variables. A local user authorized to run commands using sudo could use this flaw to set additional values for the environment variables set by sudo, which could result in those values being used by the executed command instead of the values set by sudo. This could possibly lead to certain intended restrictions being bypassed, such as the secure_path setting. (CVE-2010-1646)
    last seen 2019-02-21
    modified 2019-01-02
    plugin id 60803
    published 2012-08-01
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=60803
    title Scientific Linux Security Update : sudo on SL5.x i386/x86_64
  • NASL family VMware ESX Local Security Checks
    NASL id VMWARE_VMSA-2010-0015_REMOTE.NASL
    description The remote VMware ESX host is missing a security-related patch. It is, therefore, affected by multiple vulnerabilities, including remote code execution vulnerabilities, in several third-party components and libraries : - Berkeley DB NSS module - cURL / libcURL - GnuTLS - Network Security Services (NSS) Library - OpenLDAP - OpenSSL - OpenSSL Kerberos - sudo
    last seen 2019-02-21
    modified 2018-08-06
    plugin id 89742
    published 2016-03-08
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=89742
    title VMware ESX Multiple Vulnerabilities (VMSA-2010-0015) (remote check)
  • NASL family Red Hat Local Security Checks
    NASL id REDHAT-RHSA-2010-0475.NASL
    description An updated sudo package that fixes one security issue is now available for Red Hat Enterprise Linux 5. The Red Hat Security Response Team has rated this update as having moderate security impact. A Common Vulnerability Scoring System (CVSS) base score, which gives a detailed severity rating, is available from the CVE link in the References section. The sudo (superuser do) utility allows system administrators to give certain users the ability to run commands as root. A flaw was found in the way sudo handled the presence of duplicated environment variables. A local user authorized to run commands using sudo could use this flaw to set additional values for the environment variables set by sudo, which could result in those values being used by the executed command instead of the values set by sudo. This could possibly lead to certain intended restrictions being bypassed, such as the secure_path setting. (CVE-2010-1646) Red Hat would like to thank Anders Kaseorg and Evan Broder of Ksplice, Inc. for responsibly reporting this issue. Users of sudo should upgrade to this updated package, which contains a backported patch to correct this issue.
    last seen 2019-02-21
    modified 2019-01-02
    plugin id 47027
    published 2010-06-16
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=47027
    title RHEL 5 : sudo (RHSA-2010:0475)
  • NASL family Oracle Linux Local Security Checks
    NASL id ORACLELINUX_ELSA-2010-0475.NASL
    description From Red Hat Security Advisory 2010:0475 : An updated sudo package that fixes one security issue is now available for Red Hat Enterprise Linux 5. The Red Hat Security Response Team has rated this update as having moderate security impact. A Common Vulnerability Scoring System (CVSS) base score, which gives a detailed severity rating, is available from the CVE link in the References section. The sudo (superuser do) utility allows system administrators to give certain users the ability to run commands as root. A flaw was found in the way sudo handled the presence of duplicated environment variables. A local user authorized to run commands using sudo could use this flaw to set additional values for the environment variables set by sudo, which could result in those values being used by the executed command instead of the values set by sudo. This could possibly lead to certain intended restrictions being bypassed, such as the secure_path setting. (CVE-2010-1646) Red Hat would like to thank Anders Kaseorg and Evan Broder of Ksplice, Inc. for responsibly reporting this issue. Users of sudo should upgrade to this updated package, which contains a backported patch to correct this issue.
    last seen 2019-02-21
    modified 2019-01-02
    plugin id 68050
    published 2013-07-12
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=68050
    title Oracle Linux 5 : sudo (ELSA-2010-0475)
  • NASL family SuSE Local Security Checks
    NASL id SUSE_11_3_SUDO-110114.NASL
    description This update of sudo fixes : - CVE-2011-0010: Does ask for the user password for GID changes now. - CVE-2010-1646: CVSS v2 Base Score: 6.6 (CWE-264): The secure environment option can handle multiple occurrence of PATH now. - CVE-2010-1163: CVSS v2 Base Score: 6.9 (CWE-20): Improved command matching.
    last seen 2019-02-21
    modified 2018-11-10
    plugin id 75751
    published 2014-06-13
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=75751
    title openSUSE Security Update : sudo (openSUSE-SU-2011:0050-1)
  • NASL family VMware ESX Local Security Checks
    NASL id VMWARE_VMSA-2010-0015.NASL
    description a. Service Console update for NSS_db The service console package NSS_db is updated to version nss_db-2.2-35.4.el5_5. The Common Vulnerabilities and Exposures project (cve.mitre.org) has assigned the name CVE-2010-0826 to this issue. b. Service Console update for OpenLDAP The service console package OpenLDAP updated to version 2.3.43-12.el5. The Common Vulnerabilities and Exposures project (cve.mitre.org) has assigned the name CVE-2009-3767 to this issue. c. Service Console update for cURL The service console packages for cURL updated to version 7.15.5-9.el5. The Common Vulnerabilities and Exposures project (cve.mitre.org) has assigned the name CVE-2010-0734 to this issue. d. Service Console update for sudo The service console package sudo updated to version 1.7.2p1-7.el5_5. The Common Vulnerabilities and Exposures project (cve.mitre.org) has assigned the name CVE-2010-1646 to this issue. e. Service Console update for OpenSSL, GnuTLS, NSS and NSPR Service Console updates for OpenSSL to version 097a-0.9.7a-9.el5_4.2 and version 0.9.8e-12.el5_4.6, GnuTLS to version 1.4.1-3.el5_4.8, and NSS to version 3.12.6-1.3235.vmw and NSPR to version 4.8.4-1.3235.vmw. These four updates are bundled together due to their mutual dependencies. The Common Vulnerabilities and Exposures project (cve.mitre.org) has assigned the names CVE-2009-3555, CVE-2009-2409, CVE-2009-3245 and CVE-2010-0433 to the issues addressed in this update.
    last seen 2019-02-21
    modified 2018-08-06
    plugin id 49703
    published 2010-10-04
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=49703
    title VMSA-2010-0015 : VMware ESX third-party updates for Service Console
  • NASL family Ubuntu Local Security Checks
    NASL id UBUNTU_USN-956-1.NASL
    description Evan Broder and Anders Kaseorg discovered that sudo did not properly sanitize its environment when configured to use secure_path (the default in Ubuntu). A local attacker could exploit this to execute arbitrary code as root if sudo was configured to allow the attacker to use a program that interpreted the PATH environment variable. Note that Tenable Network Security has extracted the preceding description block directly from the Ubuntu 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 2019-01-02
    plugin id 47575
    published 2010-07-01
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=47575
    title Ubuntu 6.06 LTS / 8.04 LTS / 9.04 / 9.10 / 10.04 LTS : sudo vulnerability (USN-956-1)
  • NASL family Fedora Local Security Checks
    NASL id FEDORA_2010-9415.NASL
    description - added patch that fixes insufficient environment sanitization issue (CVE-2010-1646) Note that Tenable Network Security has extracted the preceding description block directly from the Fedora 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-07-12
    plugin id 47532
    published 2010-07-01
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=47532
    title Fedora 12 : sudo-1.7.2p6-2.fc12 (2010-9415)
  • NASL family Debian Local Security Checks
    NASL id DEBIAN_DSA-2062.NASL
    description Anders Kaseorg and Evan Broder discovered a vulnerability in sudo, a program designed to allow a sysadmin to give limited root privileges to users, that allows a user with sudo permissions on certain programs to use those programs with an untrusted value of PATH. This could possibly lead to certain intended restrictions being bypassed, such as the secure_path setting.
    last seen 2019-02-21
    modified 2018-11-10
    plugin id 47104
    published 2010-06-21
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=47104
    title Debian DSA-2062-1 : sudo - missing input sanitization
  • NASL family FreeBSD Local Security Checks
    NASL id FREEBSD_PKG_D42E5B666EA011DF9C8D00E0815B8DA8.NASL
    description Todd Miller reports : Most versions of the C library function getenv() return the first instance of an environment variable to the caller. However, some programs, notably the GNU Bourne Again SHell (bash), do their own environment parsing and may choose the last instance of a variable rather than the first one. An attacker may manipulate the environment of the process that executes Sudo such that a second PATH variable is present. When Sudo runs a bash script, it is this second PATH variable that is used by bash, regardless of whether or not Sudo has overwritten the first instance of PATH. This may allow an attacker to subvert the program being run under Sudo and execute commands he/she would not otherwise be allowed to run.
    last seen 2019-02-21
    modified 2018-12-19
    plugin id 46792
    published 2010-06-03
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=46792
    title FreeBSD : sudo -- Secure path vulnerability (d42e5b66-6ea0-11df-9c8d-00e0815b8da8)
  • NASL family SuSE Local Security Checks
    NASL id SUSE_11_2_SUDO-110114.NASL
    description This update of sudo fixes : - CVE-2011-0010: Does ask for the user password for GID changes now. - CVE-2010-1646: CVSS v2 Base Score: 6.6 (CWE-264): The secure environment option can handle multiple occurrence of PATH now. - CVE-2010-1163: CVSS v2 Base Score: 6.9 (CWE-20): Improved command matching.
    last seen 2019-02-21
    modified 2018-11-10
    plugin id 53801
    published 2011-05-05
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=53801
    title openSUSE Security Update : sudo (openSUSE-SU-2011:0050-1)
  • NASL family Mandriva Local Security Checks
    NASL id MANDRIVA_MDVSA-2010-118.NASL
    description A vulnerability has been discovered and corrected in sudo : The secure path feature in env.c in sudo 1.3.1 through 1.6.9p22 and 1.7.0 through 1.7.2p6 does not properly handle an environment that contains multiple PATH variables, which might allow local users to gain privileges via a crafted value of the last PATH variable (CVE-2010-1646). Packages for 2008.0 and 2009.0 are provided as of the Extended Maintenance Program. Please visit this link to learn more: http://store.mandriva.com/product_info.php?cPath=149&products_id=4 90 The updated packages have been patched to correct this issue.
    last seen 2019-02-21
    modified 2018-07-19
    plugin id 47041
    published 2010-06-18
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=47041
    title Mandriva Linux Security Advisory : sudo (MDVSA-2010:118)
  • NASL family Fedora Local Security Checks
    NASL id FEDORA_2010-9417.NASL
    description - added patch that fixes insufficient environment sanitization issue (CVE-2010-1646) Note that Tenable Network Security has extracted the preceding description block directly from the Fedora 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-07-12
    plugin id 47533
    published 2010-07-01
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=47533
    title Fedora 11 : sudo-1.7.2p6-2.fc11 (2010-9417)
  • NASL family CentOS Local Security Checks
    NASL id CENTOS_RHSA-2010-0475.NASL
    description An updated sudo package that fixes one security issue is now available for Red Hat Enterprise Linux 5. The Red Hat Security Response Team has rated this update as having moderate security impact. A Common Vulnerability Scoring System (CVSS) base score, which gives a detailed severity rating, is available from the CVE link in the References section. The sudo (superuser do) utility allows system administrators to give certain users the ability to run commands as root. A flaw was found in the way sudo handled the presence of duplicated environment variables. A local user authorized to run commands using sudo could use this flaw to set additional values for the environment variables set by sudo, which could result in those values being used by the executed command instead of the values set by sudo. This could possibly lead to certain intended restrictions being bypassed, such as the secure_path setting. (CVE-2010-1646) Red Hat would like to thank Anders Kaseorg and Evan Broder of Ksplice, Inc. for responsibly reporting this issue. Users of sudo should upgrade to this updated package, which contains a backported patch to correct this issue.
    last seen 2019-02-21
    modified 2018-11-28
    plugin id 47032
    published 2010-06-17
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=47032
    title CentOS 5 : sudo (CESA-2010:0475)
oval via4
  • accepted 2013-04-29T04:06:51.156-04:00
    class vulnerability
    contributors
    • name Aharon Chernin
      organization SCAP.com, LLC
    • name Dragos Prisaca
      organization G2, Inc.
    definition_extensions
    • comment The operating system installed on the system is Red Hat Enterprise Linux 5
      oval oval:org.mitre.oval:def:11414
    • comment The operating system installed on the system is CentOS Linux 5.x
      oval oval:org.mitre.oval:def:15802
    • comment Oracle Linux 5.x
      oval oval:org.mitre.oval:def:15459
    description The secure path feature in env.c in sudo 1.3.1 through 1.6.9p22 and 1.7.0 through 1.7.2p6 does not properly handle an environment that contains multiple PATH variables, which might allow local users to gain privileges via a crafted value of the last PATH variable.
    family unix
    id oval:org.mitre.oval:def:10580
    status accepted
    submitted 2010-07-09T03:56:16-04:00
    title The secure path feature in env.c in sudo 1.3.1 through 1.6.9p22 and 1.7.0 through 1.7.2p6 does not properly handle an environment that contains multiple PATH variables, which might allow local users to gain privileges via a crafted value of the last PATH variable.
    version 18
  • accepted 2014-01-20T04:01:34.040-05:00
    class vulnerability
    contributors
    • name Varun
      organization Hewlett-Packard
    • name Chris Coffin
      organization The MITRE Corporation
    definition_extensions
    comment VMware ESX Server 4.0 is installed
    oval oval:org.mitre.oval:def:6293
    description The secure path feature in env.c in sudo 1.3.1 through 1.6.9p22 and 1.7.0 through 1.7.2p6 does not properly handle an environment that contains multiple PATH variables, which might allow local users to gain privileges via a crafted value of the last PATH variable.
    family unix
    id oval:org.mitre.oval:def:7338
    status accepted
    submitted 2010-10-04T11:07:15.000-05:00
    title VMware ESX, Service Console update for sudo.
    version 7
redhat via4
advisories
bugzilla
id 598154
title CVE-2010-1646 sudo: insufficient environment sanitization issue
oval
AND
  • comment Red Hat Enterprise Linux 5 is installed
    oval oval:com.redhat.rhba:tst:20070331001
  • comment sudo is earlier than 0:1.7.2p1-7.el5_5
    oval oval:com.redhat.rhsa:tst:20100475002
  • comment sudo is signed with Red Hat redhatrelease key
    oval oval:com.redhat.rhsa:tst:20090267003
rhsa
id RHSA-2010:0475
released 2010-06-15
severity Moderate
title RHSA-2010:0475: sudo security update (Moderate)
rpms sudo-0:1.7.2p1-7.el5_5
refmap via4
bid 40538
bugtraq 20101027 rPSA-2010-0075-1 sudo
confirm
debian DSA-2062
fedora
  • FEDORA-2010-9402
  • FEDORA-2010-9415
  • FEDORA-2010-9417
gentoo GLSA-201009-03
mandriva MDVSA-2010:118
osvdb 65083
sectrack 1024101
secunia
  • 40002
  • 40188
  • 40215
  • 40508
  • 43068
suse SUSE-SR:2011:002
vupen
  • ADV-2010-1452
  • ADV-2010-1478
  • ADV-2010-1518
  • ADV-2010-1519
  • ADV-2011-0212
Last major update 18-07-2011 - 22:36
Published 07-06-2010 - 13:12
Last modified 10-10-2018 - 15:57
Back to Top