ID CVE-2009-4135
Summary The distcheck rule in dist-check.mk in GNU coreutils 5.2.1 through 8.1 allows local users to gain privileges via a symlink attack on a file in a directory tree under /tmp.
References
Vulnerable Configurations
  • Canonical Ubuntu Linux 10.04 LTS
    cpe:2.3:o:canonical:ubuntu_linux:10.04:-:-:-:lts
  • Canonical Ubuntu Linux 12.04 LTS
    cpe:2.3:o:canonical:ubuntu_linux:12.04:-:-:-:lts
  • Canonical Ubuntu Linux 14.04 LTS (Long-Term Support)
    cpe:2.3:o:canonical:ubuntu_linux:14.04:-:-:-:lts
  • GNU Coreutils 5.2.1
    cpe:2.3:a:gnu:coreutils:5.2.1
  • GNU Coreutils 5.91
    cpe:2.3:a:gnu:coreutils:5.91
  • GNU Coreutils 5.92
    cpe:2.3:a:gnu:coreutils:5.92
  • GNU Coreutils 5.93
    cpe:2.3:a:gnu:coreutils:5.93
  • GNU Coreutils 5.94
    cpe:2.3:a:gnu:coreutils:5.94
  • GNU Coreutils 5.95
    cpe:2.3:a:gnu:coreutils:5.95
  • GNU Coreutils 5.96
    cpe:2.3:a:gnu:coreutils:5.96
  • GNU Coreutils 5.97
    cpe:2.3:a:gnu:coreutils:5.97
  • GNU Coreutils 6.10
    cpe:2.3:a:gnu:coreutils:6.10
  • GNU Coreutils 6.11
    cpe:2.3:a:gnu:coreutils:6.11
  • GNU Coreutils 6.12
    cpe:2.3:a:gnu:coreutils:6.12
  • GNU Coreutils 6.2
    cpe:2.3:a:gnu:coreutils:6.2
  • GNU Coreutils 6.3
    cpe:2.3:a:gnu:coreutils:6.3
  • GNU Coreutils 6.4
    cpe:2.3:a:gnu:coreutils:6.4
  • GNU Coreutils 6.5
    cpe:2.3:a:gnu:coreutils:6.5
  • GNU Coreutils 6.6
    cpe:2.3:a:gnu:coreutils:6.6
  • GNU Coreutils 6.7
    cpe:2.3:a:gnu:coreutils:6.7
  • GNU Coreutils 6.8
    cpe:2.3:a:gnu:coreutils:6.8
  • GNU Coreutils 6.9
    cpe:2.3:a:gnu:coreutils:6.9
  • GNU Coreutils 7.1
    cpe:2.3:a:gnu:coreutils:7.1
  • GNU Coreutils 7.2
    cpe:2.3:a:gnu:coreutils:7.2
  • GNU Coreutils 7.3
    cpe:2.3:a:gnu:coreutils:7.3
  • GNU Coreutils 7.4
    cpe:2.3:a:gnu:coreutils:7.4
  • GNU Coreutils 7.5
    cpe:2.3:a:gnu:coreutils:7.5
  • GNU Coreutils 7.6
    cpe:2.3:a:gnu:coreutils:7.6
  • GNU Coreutils 8.1
    cpe:2.3:a:gnu:coreutils:8.1
  • Fedora 11
    cpe:2.3:o:fedoraproject:fedora:11
  • Fedora 12
    cpe:2.3:o:fedoraproject:fedora:12
CVSS
Base: 4.4 (as of 07-09-2016 - 10:40)
Impact:
Exploitability:
CWE CWE-59
CAPEC
  • Symlink Attack
    An attacker positions a symbolic link in such a manner that the targeted user or application accesses the link's endpoint, assuming that it is accessing a file with the link's name. The endpoint file may be either output or input. If the file is output, the result is that the endpoint is modified, instead of a file at the intended location. Modifications to the endpoint file may include appending, overwriting, corrupting, changing permissions, or other modifications. In some variants of this attack the attacker may be able to control the change to a file while in other cases they cannot. The former is especially damaging since the attacker may be able to grant themselves increased privileges or insert false information, but the latter can also be damaging as it can expose sensitive information or corrupt or destroy vital system or application files. Alternatively, the endpoint file may serve as input to the targeted application. This can be used to feed malformed input into the target or to cause the target to process different information, possibly allowing the attacker to control the actions of the target or to cause the target to expose information to the attacker. Moreover, the actions taken on the endpoint file are undertaken with the permissions of the targeted user or application, which may exceed the permissions that the attacker would normally have.
  • 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.
  • 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 MEDIUM NONE
Impact
ConfidentialityIntegrityAvailability
PARTIAL PARTIAL PARTIAL
nessus via4
  • NASL family Mandriva Local Security Checks
    NASL id MANDRIVA_MDVSA-2010-024.NASL
    description A vulnerability were discovered and corrected in coreutils : The distcheck rule in dist-check.mk in GNU coreutils 5.2.1 through 8.1 allows local users to gain privileges via a symlink attack on a file in a directory tree under /tmp (CVE-2009-4135). Packages for 2008.0 are provided for Corporate Desktop 2008.0 customers. The updated packages have been patched to correct this issue.
    last seen 2019-02-21
    modified 2019-01-02
    plugin id 44123
    published 2010-01-25
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=44123
    title Mandriva Linux Security Advisory : coreutils (MDVSA-2010:024)
  • NASL family Ubuntu Local Security Checks
    NASL id UBUNTU_USN-2473-1.NASL
    description It was discovered that the distcheck rule in dist-check.mk in GNU coreutils allows local users to gain privileges via a symlink attack on a directory tree under /tmp. This issue only affected Ubuntu 10.04 LTS. (CVE-2009-4135) Bertrand Jacquin and Fiedler Roman discovered date and touch incorrectly handled user-supplied input. An attacker could possibly use this to cause a denial of service or potentially execute code. (CVE-2014-9471). 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 2018-12-01
    plugin id 80552
    published 2015-01-15
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=80552
    title Ubuntu 10.04 LTS / 12.04 LTS / 14.04 LTS : coreutils vulnerabilities (USN-2473-1)
  • NASL family Fedora Local Security Checks
    NASL id FEDORA_2009-13216.NASL
    description CVE-2009-4135 : Unsafe temporary directory use in 'distcheck' rule 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-11-28
    plugin id 43332
    published 2009-12-18
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=43332
    title Fedora 11 : coreutils-7.2-5.fc11 (2009-13216)
  • NASL family Fedora Local Security Checks
    NASL id FEDORA_2009-13181.NASL
    description CVE-2009-4135 : Unsafe temporary directory use in 'distcheck' rule 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-11-28
    plugin id 43331
    published 2009-12-18
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=43331
    title Fedora 12 : coreutils-7.6-8.fc12 (2009-13181)
refmap via4
bid 37256
confirm
fedora
  • FEDORA-2009-13181
  • FEDORA-2009-13216
mlist
  • [bug-coreutils] 20091208 Re: build: distcheck: do not leave a $TMPDIR/coreutils directory behind
  • [bug-coreutils] 20091209 [PATCH] doc: NEWS: mention the "make distcheck" vulnerability
  • [oss-security] 20091208 CVE Request -- coreutils -- unsafe temporary directory location use
  • [oss-security] 20091208 Re: CVE Request -- coreutils -- unsafe temporary directory location use
osvdb 60853
secunia
  • 37645
  • 37860
  • 62226
ubuntu USN-2473-1
vupen ADV-2009-3453
xf gnu-core-distcheck-symlink(54673)
statements via4
contributor Joshua Bressers
lastmodified 2010-02-26
organization Red Hat
statement This issue does not affect users using coreutils binary RPMs, or rebuilding source RPMs. Therefore, we do not plan to release updates addressing this flaw on Red Hat Enterprise Linux 3, 4 and 5. For additional details, refer to the following bug: https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2009-4135
Last major update 07-09-2016 - 11:06
Published 11-12-2009 - 11:30
Last modified 16-08-2017 - 21:31
Back to Top