ID CVE-2005-4889
Summary lib/fsm.c in RPM before 4.4.3 does not properly reset the metadata of an executable file during deletion of the file in an RPM package removal, which might allow local users to gain privileges by creating a hard link to a vulnerable (1) setuid or (2) setgid file, a related issue to CVE-2010-2059.
References
Vulnerable Configurations
  • RPM RPM Package Manager 1.4.2
    cpe:2.3:a:rpm:rpm:1.4.2
  • RPM RPM Package Manager 1.4.2/a
    cpe:2.3:a:rpm:rpm:1.4.2%2fa
  • RPM RPM Package Manager 1.4.3
    cpe:2.3:a:rpm:rpm:1.4.3
  • RPM RPM Package Manager 1.4.4
    cpe:2.3:a:rpm:rpm:1.4.4
  • RPM RPM Package Manager 1.4.5
    cpe:2.3:a:rpm:rpm:1.4.5
  • RPM RPM Package Manager 1.4.6
    cpe:2.3:a:rpm:rpm:1.4.6
  • RPM RPM Package Manager 1.4.7
    cpe:2.3:a:rpm:rpm:1.4.7
  • RPM RPM Package Manager 1.3
    cpe:2.3:a:rpm:rpm:1.3
  • RPM RPM Package Manager 1.3.1
    cpe:2.3:a:rpm:rpm:1.3.1
  • RPM RPM Package Manager 1.2
    cpe:2.3:a:rpm:rpm:1.2
  • RPM RPM Package Manager 2.0
    cpe:2.3:a:rpm:rpm:2.0
  • RPM RPM Package Manager 2.0.1
    cpe:2.3:a:rpm:rpm:2.0.1
  • RPM RPM Package Manager 2.0.2
    cpe:2.3:a:rpm:rpm:2.0.2
  • RPM RPM Package Manager 2.0.3
    cpe:2.3:a:rpm:rpm:2.0.3
  • RPM RPM Package Manager 2.0.4
    cpe:2.3:a:rpm:rpm:2.0.4
  • RPM RPM Package Manager 2.0.5
    cpe:2.3:a:rpm:rpm:2.0.5
  • RPM RPM Package Manager 2.0.6
    cpe:2.3:a:rpm:rpm:2.0.6
  • RPM RPM Package Manager 2.0.7
    cpe:2.3:a:rpm:rpm:2.0.7
  • RPM RPM Package Manager 2.0.8
    cpe:2.3:a:rpm:rpm:2.0.8
  • RPM RPM Package Manager 2.0.9
    cpe:2.3:a:rpm:rpm:2.0.9
  • RPM RPM Package Manager 2.0.10
    cpe:2.3:a:rpm:rpm:2.0.10
  • RPM RPM Package Manager 2.2.1
    cpe:2.3:a:rpm:rpm:2.2.1
  • RPM RPM Package Manager 2.2.2
    cpe:2.3:a:rpm:rpm:2.2.2
  • RPM RPM Package Manager 2.2.3
    cpe:2.3:a:rpm:rpm:2.2.3
  • RPM RPM Package Manager 2.2.4
    cpe:2.3:a:rpm:rpm:2.2.4
  • RPM RPM Package Manager 2.2.5
    cpe:2.3:a:rpm:rpm:2.2.5
  • RPM RPM Package Manager 2.2.6
    cpe:2.3:a:rpm:rpm:2.2.6
  • RPM RPM Package Manager 2.2.7
    cpe:2.3:a:rpm:rpm:2.2.7
  • RPM RPM Package Manager 2.2.8
    cpe:2.3:a:rpm:rpm:2.2.8
  • RPM RPM Package Manager 2.2.9
    cpe:2.3:a:rpm:rpm:2.2.9
  • RPM RPM Package Manager 2.2.11
    cpe:2.3:a:rpm:rpm:2.2.11
  • RPM RPM Package Manager 2.1
    cpe:2.3:a:rpm:rpm:2.1
  • RPM RPM Package Manager 2.1.1
    cpe:2.3:a:rpm:rpm:2.1.1
  • RPM RPM Package Manager 2.1.2
    cpe:2.3:a:rpm:rpm:2.1.2
  • RPM RPM Package Manager 2.0.11
    cpe:2.3:a:rpm:rpm:2.0.11
  • RPM RPM Package Manager 2.2.10
    cpe:2.3:a:rpm:rpm:2.2.10
  • RPM RPM Package Manager 2.2
    cpe:2.3:a:rpm:rpm:2.2
  • RPM RPM Package Manager 2.3
    cpe:2.3:a:rpm:rpm:2.3
  • RPM RPM Package Manager 2.3.1
    cpe:2.3:a:rpm:rpm:2.3.1
  • RPM RPM Package Manager 2.3.2
    cpe:2.3:a:rpm:rpm:2.3.2
  • RPM RPM Package Manager 2.3.3
    cpe:2.3:a:rpm:rpm:2.3.3
  • RPM RPM Package Manager 2.3.4
    cpe:2.3:a:rpm:rpm:2.3.4
  • RPM RPM Package Manager 2.3.5
    cpe:2.3:a:rpm:rpm:2.3.5
  • RPM RPM Package Manager 2.3.6
    cpe:2.3:a:rpm:rpm:2.3.6
  • RPM RPM Package Manager 2.3.7
    cpe:2.3:a:rpm:rpm:2.3.7
  • RPM RPM Package Manager 2.3.9
    cpe:2.3:a:rpm:rpm:2.3.8
  • RPM RPM Package Manager 2.3.9
    cpe:2.3:a:rpm:rpm:2.3.9
  • RPM RPM Package Manager 2.3.10
    cpe:2.3:a:rpm:rpm:2.2.3.10
  • RPM RPM Package Manager 2.3.11
    cpe:2.3:a:rpm:rpm:2.2.3.11
  • RPM RPM Package Manager 2.4.1
    cpe:2.3:a:rpm:rpm:2.4.1
  • RPM RPM Package Manager 2.4.2
    cpe:2.3:a:rpm:rpm:2.4.2
  • RPM RPM Package Manager 2.4.3
    cpe:2.3:a:rpm:rpm:2.4.3
  • RPM RPM Package Manager 2.4.4
    cpe:2.3:a:rpm:rpm:2.4.4
  • RPM RPM Package Manager 2.4.5
    cpe:2.3:a:rpm:rpm:2.4.5
  • RPM RPM Package Manager 2.4.6
    cpe:2.3:a:rpm:rpm:2.4.6
  • RPM RPM Package Manager 2.4.7
    cpe:2.3:a:rpm:rpm:2.6.7
  • RPM RPM Package Manager 2.4.8
    cpe:2.3:a:rpm:rpm:2.4.8
  • RPM RPM Package Manager 2.4.9
    cpe:2.3:a:rpm:rpm:2.4.9
  • cpe:2.3:a:rpm:rpm:2..4.10
    cpe:2.3:a:rpm:rpm:2..4.10
  • RPM RPM Package Manager 2..11
    cpe:2.3:a:rpm:rpm:2.4.11
  • RPM RPM Package Manager 2.4.12
    cpe:2.3:a:rpm:rpm:2.4.12
  • RPM RPM Package Manager 2.5.1
    cpe:2.3:a:rpm:rpm:2.5.1
  • RPM RPM Package Manager 2.5.2
    cpe:2.3:a:rpm:rpm:2.5.2
  • RPM RPM Package Manager 2.5.3
    cpe:2.3:a:rpm:rpm:2.5.3
  • RPM RPM Package Manager 2.5.4
    cpe:2.3:a:rpm:rpm:2.5.4
  • RPM RPM Package Manager 2.5.5
    cpe:2.3:a:rpm:rpm:2.5.5
  • RPM RPM Package Manager 2.5.6
    cpe:2.3:a:rpm:rpm:2.5.6
  • RPM RPM Package Manager 2.5
    cpe:2.3:a:rpm:rpm:2.5
  • RPM RPM Package Manager 3.0.1
    cpe:2.3:a:rpm:rpm:3.0.1
  • RPM RPM Package Manager 3.0.2
    cpe:2.3:a:rpm:rpm:3.0.2
  • RPM RPM Package Manager 3.0.3
    cpe:2.3:a:rpm:rpm:3.0.3
  • RPM RPM Package Manager 3.0.4
    cpe:2.3:a:rpm:rpm:3.0.4
  • RPM RPM Package Manager 3.0.5
    cpe:2.3:a:rpm:rpm:3.0.5
  • RPM RPM Package Manager 3.0.6
    cpe:2.3:a:rpm:rpm:3.0.6
  • RPM RPM Package Manager 3.0
    cpe:2.3:a:rpm:rpm:3.0
  • RPM RPM Package Manager 1.4
    cpe:2.3:a:rpm:rpm:1.4
  • RPM RPM Package Manager 4.0
    cpe:2.3:a:rpm:rpm:4.0.
  • RPM RPM Package Manager 4.0.1
    cpe:2.3:a:rpm:rpm:4.0.1
  • RPM RPM Package Manager 4.0.2
    cpe:2.3:a:rpm:rpm:4.0.2
  • RPM RPM Package Manager 4.0.3
    cpe:2.3:a:rpm:rpm:4.0.3
  • RPM RPM Package Manager 4.0.4
    cpe:2.3:a:rpm:rpm:4.0.4
  • RPM RPM Package Manager 4.1
    cpe:2.3:a:rpm:rpm:4.1
  • RPM RPM Package Manager 4.3
    cpe:2.3:a:rpm:rpm:4.3.3
  • cpe:2.3:a:rpm:rpm:4.4.2.
    cpe:2.3:a:rpm:rpm:4.4.2.
  • RPM Package Manager 4.4.2.1
    cpe:2.3:a:rpm:rpm:4.4.2.1
  • RPM Package Manager 4.4.2.2
    cpe:2.3:a:rpm:rpm:4.4.2.2
  • RPM Package Manager 4.4.2.3
    cpe:2.3:a:rpm:rpm:4.4.2.3
CVSS
Base: 7.2 (as of 09-06-2010 - 09:22)
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 LOW NONE
Impact
ConfidentialityIntegrityAvailability
COMPLETE COMPLETE COMPLETE
nessus via4
  • NASL family Misc.
    NASL id VMWARE_VMSA-2011-0004_REMOTE.NASL
    description The remote VMware ESX / ESXi host is missing a security-related patch. It is, therefore, affected by multiple vulnerabilities, including arbitrary code execution vulnerabilities, in several third-party components and libraries : - bind - pam - popt - rpm - rpm-libs - rpm-python - Service Location Protocol daemon (SLPD)
    last seen 2019-02-21
    modified 2018-08-16
    plugin id 89675
    published 2016-03-04
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=89675
    title VMware ESX / ESXi Third-Party Libraries Multiple Vulnerabilities (VMSA-2011-0004) (remote check)
  • NASL family VMware ESX Local Security Checks
    NASL id VMWARE_VMSA-2011-0004.NASL
    description a. Service Location Protocol daemon DoS This patch fixes a denial-of-service vulnerability in the Service Location Protocol daemon (SLPD). Exploitation of this vulnerability could cause SLPD to consume significant CPU resources. VMware would like to thank Nicolas Gregoire and US CERT for reporting this issue to us. The Common Vulnerabilities and Exposures Project (cve.mitre.org) has assigned the name CVE-2010-3609 to this issue. b. Service Console update for bind This patch updates the bind-libs and bind-utils RPMs to version 9.3.6-4.P1.el5_5.3, which resolves multiple security issues. The Common Vulnerabilities and Exposures project (cve.mitre.org) has assigned the names CVE-2010-3613, CVE-2010-3614, and CVE-2010-3762 to these issues. c. Service Console update for pam This patch updates the pam RPM to pam_0.99.6.2-3.27.5437.vmw, which resolves multiple security issues with PAM modules. The Common Vulnerabilities and Exposures project (cve.mitre.org) has assigned the names CVE-2010-3316, CVE-2010-3435, and CVE-2010-3853 to these issues. d. Service Console update for rpm, rpm-libs, rpm-python, and popt This patch updates rpm, rpm-libs, and rpm-python RPMs to 4.4.2.3-20.el5_5.1, and popt to version 1.10.2.3-20.el5_5.1, which resolves a security issue. The Common Vulnerabilities and Exposures project (cve.mitre.org) has assigned the name CVE-2010-2059 to this issue.
    last seen 2019-02-21
    modified 2018-09-06
    plugin id 52582
    published 2011-03-08
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=52582
    title VMSA-2011-0004 : VMware ESX/ESXi SLPD denial of service vulnerability and ESX third-party updates for Service Console packages bind, pam, and rpm.
  • NASL family Red Hat Local Security Checks
    NASL id REDHAT-RHSA-2010-0678.NASL
    description Updated rpm packages that fix two security issues are now available for Red Hat Enterprise Linux 4. The Red Hat Security Response Team has rated this update as having moderate security impact. Common Vulnerability Scoring System (CVSS) base scores, which give detailed severity ratings, are available for each vulnerability from the CVE links in the References section. The RPM Package Manager (RPM) is a command line driven package management system capable of installing, uninstalling, verifying, querying, and updating software packages. It was discovered that RPM did not remove setuid and setgid bits set on binaries when upgrading or removing packages. A local attacker able to create hard links to binaries could use this flaw to keep those binaries on the system, at a specific version level and with the setuid or setgid bit set, even if the package providing them was upgraded or removed by a system administrator. This could have security implications if a package was upgraded or removed because of a security flaw in a setuid or setgid program. (CVE-2005-4889, CVE-2010-2059) All users of rpm are advised to upgrade to these updated packages, which contain a backported patch to correct these issues.
    last seen 2019-02-21
    modified 2018-11-28
    plugin id 49130
    published 2010-09-08
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=49130
    title RHEL 4 : rpm (RHSA-2010:0678)
  • NASL family Oracle Linux Local Security Checks
    NASL id ORACLELINUX_ELSA-2010-0678.NASL
    description From Red Hat Security Advisory 2010:0678 : Updated rpm packages that fix two security issues are now available for Red Hat Enterprise Linux 4. The Red Hat Security Response Team has rated this update as having moderate security impact. Common Vulnerability Scoring System (CVSS) base scores, which give detailed severity ratings, are available for each vulnerability from the CVE links in the References section. The RPM Package Manager (RPM) is a command line driven package management system capable of installing, uninstalling, verifying, querying, and updating software packages. It was discovered that RPM did not remove setuid and setgid bits set on binaries when upgrading or removing packages. A local attacker able to create hard links to binaries could use this flaw to keep those binaries on the system, at a specific version level and with the setuid or setgid bit set, even if the package providing them was upgraded or removed by a system administrator. This could have security implications if a package was upgraded or removed because of a security flaw in a setuid or setgid program. (CVE-2005-4889, CVE-2010-2059) All users of rpm are advised to upgrade to these updated packages, which contain a backported patch to correct these issues.
    last seen 2019-02-21
    modified 2015-12-01
    plugin id 68095
    published 2013-07-12
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=68095
    title Oracle Linux 4 : rpm (ELSA-2010-0678)
  • NASL family Red Hat Local Security Checks
    NASL id REDHAT-RHSA-2010-0679.NASL
    description Updated rpm packages that fix one security issue and one bug are 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 RPM Package Manager (RPM) is a command line driven package management system capable of installing, uninstalling, verifying, querying, and updating software packages. It was discovered that RPM did not remove setuid and setgid bits set on binaries when upgrading packages. A local attacker able to create hard links to binaries could use this flaw to keep those binaries on the system, at a specific version level and with the setuid or setgid bit set, even if the package providing them was upgraded by a system administrator. This could have security implications if a package was upgraded because of a security flaw in a setuid or setgid program. (CVE-2010-2059) This update also fixes the following bug : * A memory leak in the communication between RPM and the Security-Enhanced Linux (SELinux) subsystem, which could have caused extensive memory consumption. In reported cases, this issue was triggered by running rhn_check when errata were scheduled to be applied. (BZ#627630) All users of rpm are advised to upgrade to these updated packages, which contain backported patches to correct these issues.
    last seen 2019-02-21
    modified 2018-11-28
    plugin id 49131
    published 2010-09-08
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=49131
    title RHEL 5 : rpm (RHSA-2010:0679)
  • NASL family CentOS Local Security Checks
    NASL id CENTOS_RHSA-2010-0679.NASL
    description Updated rpm packages that fix one security issue and one bug are 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 RPM Package Manager (RPM) is a command line driven package management system capable of installing, uninstalling, verifying, querying, and updating software packages. It was discovered that RPM did not remove setuid and setgid bits set on binaries when upgrading packages. A local attacker able to create hard links to binaries could use this flaw to keep those binaries on the system, at a specific version level and with the setuid or setgid bit set, even if the package providing them was upgraded by a system administrator. This could have security implications if a package was upgraded because of a security flaw in a setuid or setgid program. (CVE-2010-2059) This update also fixes the following bug : * A memory leak in the communication between RPM and the Security-Enhanced Linux (SELinux) subsystem, which could have caused extensive memory consumption. In reported cases, this issue was triggered by running rhn_check when errata were scheduled to be applied. (BZ#627630) All users of rpm are advised to upgrade to these updated packages, which contain backported patches to correct these issues.
    last seen 2019-02-21
    modified 2018-11-10
    plugin id 49204
    published 2010-09-13
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=49204
    title CentOS 5 : rpm (CESA-2010:0679)
  • NASL family Scientific Linux Local Security Checks
    NASL id SL_20100907_RPM_ON_SL4_X.NASL
    description It was discovered that RPM did not remove setuid and setgid bits set on binaries when upgrading or removing packages. A local attacker able to create hard links to binaries could use this flaw to keep those binaries on the system, at a specific version level and with the setuid or setgid bit set, even if the package providing them was upgraded or removed by a system administrator. This could have security implications if a package was upgraded or removed because of a security flaw in a setuid or setgid program. (CVE-2005-4889, CVE-2010-2059)
    last seen 2019-02-21
    modified 2019-01-02
    plugin id 60851
    published 2012-08-01
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=60851
    title Scientific Linux Security Update : rpm on SL4.x i386/x86_64
  • NASL family CentOS Local Security Checks
    NASL id CENTOS_RHSA-2010-0678.NASL
    description Updated rpm packages that fix two security issues are now available for Red Hat Enterprise Linux 4. The Red Hat Security Response Team has rated this update as having moderate security impact. Common Vulnerability Scoring System (CVSS) base scores, which give detailed severity ratings, are available for each vulnerability from the CVE links in the References section. The RPM Package Manager (RPM) is a command line driven package management system capable of installing, uninstalling, verifying, querying, and updating software packages. It was discovered that RPM did not remove setuid and setgid bits set on binaries when upgrading or removing packages. A local attacker able to create hard links to binaries could use this flaw to keep those binaries on the system, at a specific version level and with the setuid or setgid bit set, even if the package providing them was upgraded or removed by a system administrator. This could have security implications if a package was upgraded or removed because of a security flaw in a setuid or setgid program. (CVE-2005-4889, CVE-2010-2059) All users of rpm are advised to upgrade to these updated packages, which contain a backported patch to correct these issues.
    last seen 2019-02-21
    modified 2018-11-10
    plugin id 49180
    published 2010-09-12
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=49180
    title CentOS 4 : rpm (CESA-2010:0678)
  • NASL family Oracle Linux Local Security Checks
    NASL id ORACLELINUX_ELSA-2010-0679.NASL
    description From Red Hat Security Advisory 2010:0679 : Updated rpm packages that fix one security issue and one bug are now available for Red Hat Enterprise Linux 5. The Red Hat Security Res