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
  • cpe:2.3:a:elfutils_project:elfutils:0.152:*:*:*:*:*:*:*
    cpe:2.3:a:elfutils_project:elfutils:0.152:*:*:*:*:*:*:*
  • cpe:2.3:a:elfutils_project:elfutils:0.161:*:*:*:*:*:*:*
    cpe:2.3:a:elfutils_project:elfutils:0.161:*:*:*:*:*:*:*
CVSS
Base: 6.4 (as of 18-04-2015 - 01:59)
Impact:
Exploitability:
CWE CWE-22
CAPEC
  • Manipulating Web 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 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 ways of encoding a URL and abuse the interpretation of the URL. A 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.
  • 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.
  • Path Traversal
    An adversary uses path manipulation methods to exploit insufficient input validation of a target to obtain access to data that should be not be retrievable by ordinary well-formed requests. A typical variety of this attack involves specifying a path to a desired file together with dot-dot-slash characters, resulting in the file access API or function traversing out of the intended directory structure and into the root file system. By replacing or modifying the expected path information the access function or API retrieves the file desired by the attacker. These attacks either involve the attacker providing a complete path to a targeted file or using control characters (e.g. path separators (/ or \) and/or dots (.)) to reach desired directories or files.
  • 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
cvss-vector via4 AV:N/AC:L/Au:N/C:N/I:P/A:P
redhat via4
advisories
  • bugzilla
    id 1167724
    title Request to rebase elfutils version that is higher than 0.158
    oval
    OR
    • comment Red Hat Enterprise Linux must be installed
      oval oval:com.redhat.rhba:tst:20070304026
    • AND
      • comment Red Hat Enterprise Linux 6 is installed
        oval oval:com.redhat.rhba:tst:20111656003
      • OR
        • AND
          • comment elfutils is earlier than 0:0.161-3.el6
            oval oval:com.redhat.rhea:tst:20151302001
          • comment elfutils is signed with Red Hat redhatrelease2 key
            oval oval:com.redhat.rhea:tst:20150369002
        • AND
          • comment elfutils-devel is earlier than 0:0.161-3.el6
            oval oval:com.redhat.rhea:tst:20151302003
          • comment elfutils-devel is signed with Red Hat redhatrelease2 key
            oval oval:com.redhat.rhea:tst:20150369004
        • AND
          • comment elfutils-devel-static is earlier than 0:0.161-3.el6
            oval oval:com.redhat.rhea:tst:20151302005
          • comment elfutils-devel-static is signed with Red Hat redhatrelease2 key
            oval oval:com.redhat.rhea:tst:20150369006
        • AND
          • comment elfutils-libelf is earlier than 0:0.161-3.el6
            oval oval:com.redhat.rhea:tst:20151302007
          • comment elfutils-libelf is signed with Red Hat redhatrelease2 key
            oval oval:com.redhat.rhea:tst:20150369008
        • AND
          • comment elfutils-libelf-devel is earlier than 0:0.161-3.el6
            oval oval:com.redhat.rhea:tst:20151302009
          • comment elfutils-libelf-devel is signed with Red Hat redhatrelease2 key
            oval oval:com.redhat.rhea:tst:20150369010
        • AND
          • comment elfutils-libelf-devel-static is earlier than 0:0.161-3.el6
            oval oval:com.redhat.rhea:tst:20151302011
          • 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:20151302013
          • comment elfutils-libs is signed with Red Hat redhatrelease2 key
            oval oval:com.redhat.rhea:tst:20150369014
    rhsa
    id RHEA-2015:1302
    released 2015-07-20
    severity Low
    title RHEA-2015:1302: elfutils bug fix and enhancement update (Low)
  • bugzilla
    id 1262839
    title [abrt] [faf] elfutils: _IO_default_xsputn(): /usr/bin/eu-readelf killed by 11
    oval
    OR
    • comment Red Hat Enterprise Linux must be installed
      oval oval:com.redhat.rhba:tst:20070304026
    • AND
      • comment Red Hat Enterprise Linux 7 is installed
        oval oval:com.redhat.rhba:tst:20150364027
      • OR
        • AND
          • comment elfutils is earlier than 0:0.163-3.el7
            oval oval:com.redhat.rhea:tst:20152126001
          • comment elfutils is signed with Red Hat redhatrelease2 key
            oval oval:com.redhat.rhea:tst:20150369002
        • AND
          • comment elfutils-devel is earlier than 0:0.163-3.el7
            oval oval:com.redhat.rhea:tst:20152126003
          • comment elfutils-devel is signed with Red Hat redhatrelease2 key
            oval oval:com.redhat.rhea:tst:20150369004
        • AND
          • comment elfutils-devel-static is earlier than 0:0.163-3.el7
            oval oval:com.redhat.rhea:tst:20152126005
          • comment elfutils-devel-static is signed with Red Hat redhatrelease2 key
            oval oval:com.redhat.rhea:tst:20150369006
        • AND
          • comment elfutils-libelf is earlier than 0:0.163-3.el7
            oval oval:com.redhat.rhea:tst:20152126007
          • comment elfutils-libelf is signed with Red Hat redhatrelease2 key
            oval oval:com.redhat.rhea:tst:20150369008
        • 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:20150369010
        • 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:20152126013
          • comment elfutils-libs is signed with Red Hat redhatrelease2 key
            oval oval:com.redhat.rhea:tst:20150369014
    rhsa
    id RHEA-2015:2126
    released 2015-11-19
    severity Low
    title RHEA-2015:2126: elfutils bug fix and enhancement update (Low)
rpms
  • elfutils-0:0.161-3.el6
  • elfutils-debuginfo-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-debuginfo-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 18-04-2015 - 01:59
Published 02-01-2015 - 20:59
Last modified 18-04-2015 - 01:59
Back to Top