Skip to content
Noroxi
CVE-2014-9447· NVD / CVE Program· CNA mitre

Directory traversal vulnerability in the read_long_names function in libelf/elf_begin.c in elfutils 0.152 and 0.161 allows remote attackers

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.

MediumCVSS 6.4 · v2.0—No exploit Fix available
Published
Jan 2, 2015
Updated
Jun 16, 2026
EPSS
5.0% · 92th percentile
Follow this CVE

Sign in to follow · You’ll be notified if a followed record enters KEV, gets an exploit or is updated.

Report tools

JSON

Action score

27

Monitor

Low priority for now.

CVSS
25 / 40 · 6.4 / 10
CISA KEV
0 / 30 · Not listed
EPSS
2 / 30 · 5.0%

Affected systems

VendorProduct
elfutils projectelfutils

Affected versions

NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.

  • elfutils project elfutils0.152
  • elfutils project elfutils0.161

Package-level exposure

OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.

EcosystemPackageAffected rangeFix
Debian:12elfutilsbefore 0.159-4.10.159-4.1
openSUSE:Tumbleweedelfutilsbefore 0.167-1.50.167-1.5
Red Hat:enterprise_linux:6::clientelfutilsbefore 0:0.161-3.el60:0.161-3.el6
Red Hat:enterprise_linux:6::clientelfutils-debuginfobefore 0:0.161-3.el60:0.161-3.el6
Red Hat:enterprise_linux:6::clientelfutils-develbefore 0:0.161-3.el60:0.161-3.el6
Red Hat:enterprise_linux:6::clientelfutils-devel-staticbefore 0:0.161-3.el60:0.161-3.el6
Red Hat:enterprise_linux:6::clientelfutils-libelfbefore 0:0.161-3.el60:0.161-3.el6
Red Hat:enterprise_linux:6::clientelfutils-libelf-develbefore 0:0.161-3.el60:0.161-3.el6
Red Hat:enterprise_linux:6::clientelfutils-libelf-devel-staticbefore 0:0.161-3.el60:0.161-3.el6
Red Hat:enterprise_linux:6::clientelfutils-libsbefore 0:0.161-3.el60:0.161-3.el6
Red Hat:enterprise_linux:7::clientelfutilsbefore 0:0.163-3.el70:0.163-3.el7
Red Hat:enterprise_linux:7::clientelfutils-debuginfobefore 0:0.163-3.el70:0.163-3.el7
Red Hat:enterprise_linux:7::clientelfutils-develbefore 0:0.163-3.el70:0.163-3.el7
Red Hat:enterprise_linux:7::clientelfutils-devel-staticbefore 0:0.163-3.el70:0.163-3.el7
Red Hat:enterprise_linux:7::clientelfutils-libelfbefore 0:0.163-3.el70:0.163-3.el7
Red Hat:enterprise_linux:7::clientelfutils-libelf-develbefore 0:0.163-3.el70:0.163-3.el7
Red Hat:enterprise_linux:7::clientelfutils-libelf-devel-staticbefore 0:0.163-3.el70:0.163-3.el7
Red Hat:enterprise_linux:7::clientelfutils-libsbefore 0:0.163-3.el70:0.163-3.el7
SUSE:Linux Enterprise Desktop 12elfutilsbefore 0.158-6.10.158-6.1

Other highest-scoring records for the same primary product.

  • CVE-2018-16402libelf/elf_end.c in elfutils 0.173 allows remote attackers to cause a denial of service (double free and application crash) or possibly have
    40Plan
  • CVE-2018-8769elfutils 0.170 has a buffer over-read in the ebl_dynamic_tag_name function of libebl/ebldynamictagname.c because SYMTAB_SHNDX is unsupported
    31Monitor
  • CVE-2014-0172Integer overflow in the check_section function in dwarf_begin_elf.c in the libdw library, as used in elfutils 0.153 and possibly through 0.1
    28Monitor
  • CVE-2019-7149A heap-based buffer over-read was discovered in the function read_srclines in dwarf_getsrclines.c in libdw in elfutils 0.175.
    27Monitor
  • CVE-2018-18520An Invalid Memory Address Dereference exists in the function elf_end in libelf in elfutils through v0.174.
    27Monitor
  • CVE-2019-7148An attempted excessive memory allocation was discovered in the function read_long_names in elf_begin.c in libelf in elfutils 0.174.
    26Monitor

Remediation

Which version to upgrade to

Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.

Product / packageFixed versionSource
debian:elfutils0.159-4.1 · Debian:12Package registry (OSV)
opensuse:elfutils0.167-1.5 · openSUSE:TumbleweedPackage registry (OSV)
red hat:elfutils0:0.161-3.el6 · Red Hat:enterprise_linux:6::clientPackage registry (OSV)
red hat:elfutils-debuginfo0:0.161-3.el6 · Red Hat:enterprise_linux:6::clientPackage registry (OSV)
red hat:elfutils-devel0:0.161-3.el6 · Red Hat:enterprise_linux:6::clientPackage registry (OSV)
red hat:elfutils-devel-static0:0.161-3.el6 · Red Hat:enterprise_linux:6::clientPackage registry (OSV)
red hat:elfutils-libelf0:0.161-3.el6 · Red Hat:enterprise_linux:6::clientPackage registry (OSV)
red hat:elfutils-libelf-devel0:0.161-3.el6 · Red Hat:enterprise_linux:6::clientPackage registry (OSV)
red hat:elfutils-libelf-devel-static0:0.161-3.el6 · Red Hat:enterprise_linux:6::clientPackage registry (OSV)
red hat:elfutils-libs0:0.161-3.el6 · Red Hat:enterprise_linux:6::clientPackage registry (OSV)
suse:elfutils0.158-6.1 · SUSE:Linux Enterprise Desktop 12Package registry (OSV)

Exploit status

No known public exploit

No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.

Research context

For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.

Timeline

From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.

No dated events beyond publication.

EPSS, last 120 days

FIRST EPSS daily score; only changes of 0.01 or more are recorded (step chart).

Patch and commit links

Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.

Finders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.

No credits in the CNA record.

Variant candidates

Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.

No nightly-computed relations.

Chain candidates

An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.

—

Bug bounty scope

No known public program.

Source: bounty-targets-data (public HackerOne, Bugcrowd, Intigriti, YesWeHack listings).

Technical details

Attack conditions

  • No special conditions are required; it is repeatable.

If successful

Confidentiality
none
Integrity
P · data or configuration can be modified
Availability
P · the service can be disrupted
Attack complexity
Low
Confidentiality impact
None
Integrity impact
P
Availability impact
P

CVSS vector

AV:N/AC:L/Au:N/C:N/I:P/A:P

nvd-primary

Root cause

A user-supplied file name is joined with the allowed directory, but the result is never checked to confirm it is still inside that directory.

A representative example of this vulnerability class. Not the vendor's source code; it shows the faulty pattern and its fix.

Vulnerable

ts
const file = path.join(ROOT, req.query.name);res.sendFile(file);

Fixed

ts
const file = path.resolve(ROOT, req.query.name);if (!file.startsWith(ROOT + path.sep)) {  return res.sendStatus(400);}res.sendFile(file);

Noroxi analysis

No Noroxi analysis for this record yet

We don't hand-write analysis for all 385,000+ vulnerabilities; that wouldn't be honest. For notable, high-impact vulnerabilities our team writes the mechanism, detection and remediation steps.

We use this product, ask for help

Change log

  1. Fix✗ → ✓

For records you follow, these changes also arrive as notifications. →

References

All records