ID CVE-2014-9447
Summary Directory traversal vulnerability in the read_long_names function in libelf/elf_begin.c in elfutils 0.152 and 0.161 allows remote attackers to write to arbitrary files to the root directory via a / (slash) in a crafted archive, as demonstrated using the ar program.
References
Vulnerable Configurations
  • elfutils project elfutils 0.152
    cpe:2.3:a:elfutils_project:elfutils:0.152
  • elfutils project elfutils 0.161
    cpe:2.3:a:elfutils_project:elfutils:0.161
CVSS
Base: 6.4 (as of 05-01-2015 - 17:55)
Impact:
Exploitability:
CWE CWE-22
CAPEC
  • Relative Path Traversal
    An attacker exploits a weakness in input validation on the target by supplying a specially constructed path utilizing dot and slash characters for the purpose of obtaining access to arbitrary files or resources. An attacker modifies a known path on the target in order to reach material that is not available through intended channels. These attacks normally involve adding additional path separators (/ or \) and/or dots (.), or encodings thereof, in various combinations in order to reach parent directories or entirely separate trees of the target's directory structure.
  • Directory Traversal
    An attacker with access to file system resources, either directly or via application logic, will use various file path specification or navigation mechanisms such as ".." in path strings and absolute paths to extend their range of access to inappropriate areas of the file system. The attacker attempts to either explore the file system for recon purposes or access directories and files that are intended to be restricted from their access. Exploring the file system can be achieved through constructing paths presented to directory listing programs, such as "ls" and 'dir', or through specially crafted programs that attempt to explore the file system. The attacker engaging in this type of activity is searching for information that can be used later in a more exploitive attack. Access to restricted directories or files can be achieved through modification of path references utilized by system applications.
  • File System Function Injection, Content Based
    An attack of this type exploits the host's trust in executing remote content including binary files. The files are poisoned with a malicious payload (targeting the file systems accessible by the target software) by the attacker and may be passed through standard channels such as via email, and standard web content like PDF and multimedia files. The attacker exploits known vulnerabilities or handling routines in the target processes. Vulnerabilities of this type have been found in a wide variety of commercial applications from Microsoft Office to Adobe Acrobat and Apple Safari web browser. When the attacker knows the standard handling routines and can identify vulnerabilities and entry points they can be exploited by otherwise seemingly normal content. Once the attack is executed, the attackers' program can access relative directories such as C:\Program Files or other standard system directories to launch further attacks. In a worst case scenario, these programs are combined with other propagation logic and work as a virus.
  • Using Slashes and URL Encoding Combined to Bypass Validation Logic
    This attack targets the encoding of the URL combined with the encoding of the slash characters. An attacker can take advantage of the multiple way of encoding an URL and abuse the interpretation of the URL. An URL may contain special character that need special syntax handling in order to be interpreted. Special characters are represented using a percentage character followed by two digits representing the octet code of the original character (%HEX-CODE). For instance US-ASCII space character would be represented with %20. This is often referred as escaped ending or percent-encoding. Since the server decodes the URL from the requests, it may restrict the access to some URL paths by validating and filtering out the URL requests it received. An attacker will try to craft an URL with a sequence of special characters which once interpreted by the server will be equivalent to a forbidden URL. It can be difficult to protect against this attack since the URL can contain other format of encoding such as UTF-8 encoding, Unicode-encoding, etc.
  • 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.
  • Using Escaped Slashes in Alternate Encoding
    This attack targets the use of the backslash in alternate encoding. An attacker can provide a backslash as a leading character and causes a parser to believe that the next character is special. This is called an escape. By using that trick, the attacker tries to exploit alternate ways to encode the same character which leads to filter problems and opens avenues to attack.
  • Using Slashes in Alternate Encoding
    This attack targets the encoding of the Slash characters. An attacker would try to exploit common filtering problems related to the use of the slashes characters to gain access to resources on the target host. Directory-driven systems, such as file systems and databases, typically use the slash character to indicate traversal between directories or other container components. For murky historical reasons, PCs (and, as a result, Microsoft OSs) choose to use a backslash, whereas the UNIX world typically makes use of the forward slash. The schizophrenic result is that many MS-based systems are required to understand both forms of the slash. This gives the attacker many opportunities to discover and abuse a number of common filtering problems. The goal of this pattern is to discover server software that only applies filters to one version, but not the other.
Access
VectorComplexityAuthentication
NETWORK LOW NONE
Impact
ConfidentialityIntegrityAvailability
NONE PARTIAL PARTIAL
nessus via4
  • NASL family Fedora Local Security Checks
    NASL id FEDORA_2015-0677.NASL
    description Update to elfutils 0.161. Security fix for CVE-2014-9447. 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 2015-10-19
    plugin id 80876
    published 2015-01-21
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=80876
    title Fedora 20 : elfutils-0.161-2.fc20 (2015-0677)
  • NASL family SuSE Local Security Checks
    NASL id OPENSUSE-2015-59.NASL
    description elfutils was updated to fix a directory traversal vulnerability (bnc#911662 CVE-2014-9447)
    last seen 2019-02-21
    modified 2018-11-10
    plugin id 80990
    published 2015-01-26
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=80990
    title openSUSE Security Update : elfutils (openSUSE-SU-2015:0123-1)
  • NASL family SuSE Local Security Checks
    NASL id SUSE_11_ELFUTILS-150218.NASL
    description elfutils has been updated to fix one security issue : - Directory traversal vulnerability in the read_long_names function in libelf/elf_begin.c in elfutils 0.152 and 0.161 allowed remote attackers to write to arbitrary files to the root directory via a / (slash) in a crafted archive, as demonstrated using the ar program. (bnc#911662). (CVE-2014-9447)
    last seen 2019-02-21
    modified 2015-03-06
    plugin id 81666
    published 2015-03-06
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=81666
    title SuSE 11.3 Security Update : elfutils (SAT Patch Number 10328)
  • NASL family Fedora Local Security Checks
    NASL id FEDORA_2015-0692.NASL
    description Update to elfutils 0.161. Security fix for CVE-2014-9447. 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 2015-10-19
    plugin id 80838
    published 2015-01-20
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=80838
    title Fedora 21 : elfutils-0.161-2.fc21 (2015-0692)
  • NASL family Mandriva Local Security Checks
    NASL id MANDRIVA_MDVSA-2015-047.NASL
    description Updated elfutils packages fix security vulnerability : Directory traversal vulnerability in the read_long_names function in libelf/elf_begin.c in elfutils allows remote attackers to write to arbitrary files to the root directory via a / (slash) in a crafted archive, as demonstrated using the ar program (CVE-2014-9447).
    last seen 2019-02-21
    modified 2018-07-19
    plugin id 81336
    published 2015-02-13
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=81336
    title Mandriva Linux Security Advisory : elfutils (MDVSA-2015:047)
  • NASL family Mandriva Local Security Checks
    NASL id MANDRIVA_MDVSA-2015-104.NASL
    description Updated elfutils packages fix security vulnerabilities : The libdw library provides support for accessing DWARF debugging information inside ELF files. An integer overflow flaw in check_section(), leading to a heap-based buffer overflow, was found in the libdw library. A malicious ELF file could cause an application using libdw (such as eu-readelf) to crash or, potentially, execute arbitrary code with the privileges of the user running the application (CVE-2014-0172). Directory traversal vulnerability in the read_long_names function in libelf/elf_begin.c in elfutils allows remote attackers to write to arbitrary files to the root directory via a / (slash) in a crafted archive, as demonstrated using the ar program (CVE-2014-9447).
    last seen 2019-02-21
    modified 2018-07-19
    plugin id 82357
    published 2015-03-30
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=82357
    title Mandriva Linux Security Advisory : elfutils (MDVSA-2015:104)
  • NASL family Ubuntu Local Security Checks
    NASL id UBUNTU_USN-2482-1.NASL
    description Alexander Cherepanov discovered that libelf1 incorrectly handled certain filesystem paths while extracting ar archives. An attacker could use this flaw to perform a directory traversal attack on the root directory if the process extracting the ar archive has write access to the root directory. 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 80945
    published 2015-01-23
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=80945
    title Ubuntu 10.04 LTS / 12.04 LTS / 14.04 LTS / 14.10 : elfutils vulnerability (USN-2482-1)
redhat via4
advisories
  • bugzilla
    id 1167724
    title Request to rebase elfutils version that is higher than 0.158
    oval
    AND
    • OR
      • comment Red Hat Enterprise Linux 6 Client is installed
        oval oval:com.redhat.rhba:tst:20111656001
      • comment Red Hat Enterprise Linux 6 Server is installed
        oval oval:com.redhat.rhba:tst:20111656002
      • comment Red Hat Enterprise Linux 6 Workstation is installed
        oval oval:com.redhat.rhba:tst:20111656003
      • comment Red Hat Enterprise Linux 6 ComputeNode is installed
        oval oval:com.redhat.rhba:tst:20111656004
    • OR
      • AND
        • comment elfutils is earlier than 0:0.161-3.el6
          oval oval:com.redhat.rhea:tst:20151302005
        • comment elfutils is signed with Red Hat redhatrelease2 key
          oval oval:com.redhat.rhea:tst:20150369006
      • AND
        • comment elfutils-devel is earlier than 0:0.161-3.el6
          oval oval:com.redhat.rhea:tst:20151302017
        • comment elfutils-devel is signed with Red Hat redhatrelease2 key
          oval oval:com.redhat.rhea:tst:20150369018
      • AND
        • comment elfutils-devel-static is earlier than 0:0.161-3.el6
          oval oval:com.redhat.rhea:tst:20151302011
        • comment elfutils-devel-static is signed with Red Hat redhatrelease2 key
          oval oval:com.redhat.rhea:tst:20150369010
      • AND
        • comment elfutils-libelf is earlier than 0:0.161-3.el6
          oval oval:com.redhat.rhea:tst:20151302013
        • comment elfutils-libelf is signed with Red Hat redhatrelease2 key
          oval oval:com.redhat.rhea:tst:20150369014
      • AND
        • comment elfutils-libelf-devel is earlier than 0:0.161-3.el6
          oval oval:com.redhat.rhea:tst:20151302007
        • comment elfutils-libelf-devel is signed with Red Hat redhatrelease2 key
          oval oval:com.redhat.rhea:tst:20150369016
      • AND
        • comment elfutils-libelf-devel-static is earlier than 0:0.161-3.el6
          oval oval:com.redhat.rhea:tst:20151302015
        • comment elfutils-libelf-devel-static is signed with Red Hat redhatrelease2 key
          oval oval:com.redhat.rhea:tst:20150369012
      • AND
        • comment elfutils-libs is earlier than 0:0.161-3.el6
          oval oval:com.redhat.rhea:tst:20151302009
        • comment elfutils-libs is signed with Red Hat redhatrelease2 key
          oval oval:com.redhat.rhea:tst:20150369008
    rhsa
    released 2015-07-22
    severity None
    title RHEA-2015:1302: elfutils bug fix and enhancement update (None)
  • bugzilla
    id 1262839
    title [abrt] [faf] elfutils: _IO_default_xsputn(): /usr/bin/eu-readelf killed by 11
    oval
    AND
    • OR
      • comment Red Hat Enterprise Linux 7 Client is installed
        oval oval:com.redhat.rhba:tst:20150364001
      • comment Red Hat Enterprise Linux 7 Server is installed
        oval oval:com.redhat.rhba:tst:20150364002
      • comment Red Hat Enterprise Linux 7 Workstation is installed
        oval oval:com.redhat.rhba:tst:20150364003
      • comment Red Hat Enterprise Linux 7 ComputeNode is installed
        oval oval:com.redhat.rhba:tst:20150364004
    • OR
      • AND
        • comment elfutils is earlier than 0:0.163-3.el7
          oval oval:com.redhat.rhea:tst:20152126015
        • comment elfutils is signed with Red Hat redhatrelease2 key
          oval oval:com.redhat.rhea:tst:20150369006
      • AND
        • comment elfutils-devel is earlier than 0:0.163-3.el7
          oval oval:com.redhat.rhea:tst:20152126013
        • comment elfutils-devel is signed with Red Hat redhatrelease2 key
          oval oval:com.redhat.rhea:tst:20150369018
      • AND
        • comment elfutils-devel-static is earlier than 0:0.163-3.el7
          oval oval:com.redhat.rhea:tst:20152126007
        • comment elfutils-devel-static is signed with Red Hat redhatrelease2 key
          oval oval:com.redhat.rhea:tst:20150369010
      • AND
        • comment elfutils-libelf is earlier than 0:0.163-3.el7
          oval oval:com.redhat.rhea:tst:20152126005
        • comment elfutils-libelf is signed with Red Hat redhatrelease2 key
          oval oval:com.redhat.rhea:tst:20150369014
      • AND
        • comment elfutils-libelf-devel is earlier than 0:0.163-3.el7
          oval oval:com.redhat.rhea:tst:20152126009
        • comment elfutils-libelf-devel is signed with Red Hat redhatrelease2 key
          oval oval:com.redhat.rhea:tst:20150369016
      • AND
        • comment elfutils-libelf-devel-static is earlier than 0:0.163-3.el7
          oval oval:com.redhat.rhea:tst:20152126011
        • comment elfutils-libelf-devel-static is signed with Red Hat redhatrelease2 key
          oval oval:com.redhat.rhea:tst:20150369012
      • AND
        • comment elfutils-libs is earlier than 0:0.163-3.el7
          oval oval:com.redhat.rhea:tst:20152126017
        • comment elfutils-libs is signed with Red Hat redhatrelease2 key
          oval oval:com.redhat.rhea:tst:20150369008
    rhsa
    released 2015-11-19
    severity None
    title RHEA-2015:2126: elfutils bug fix and enhancement update (None)
rpms
  • elfutils-0:0.161-3.el6
  • elfutils-devel-0:0.161-3.el6
  • elfutils-devel-static-0:0.161-3.el6
  • elfutils-libelf-0:0.161-3.el6
  • elfutils-libelf-devel-0:0.161-3.el6
  • elfutils-libelf-devel-static-0:0.161-3.el6
  • elfutils-libs-0:0.161-3.el6
  • elfutils-0:0.163-3.el7
  • elfutils-devel-0:0.163-3.el7
  • elfutils-devel-static-0:0.163-3.el7
  • elfutils-libelf-0:0.163-3.el7
  • elfutils-libelf-devel-0:0.163-3.el7
  • elfutils-libelf-devel-static-0:0.163-3.el7
  • elfutils-libs-0:0.163-3.el7
refmap via4
bid 71804
confirm
fedora
  • FEDORA-2015-0677
  • FEDORA-2015-0692
mandriva MDVSA-2015:047
mlist
  • [elfutils-devel] 20141227 Directory traversal in `ar`
  • [oss-security] 20141229 CVE request: dir traversal in elfutils
secunia
  • 61934
  • 62560
  • 62661
Last major update 17-04-2015 - 21:59
Published 02-01-2015 - 15:59
Back to Top