CVE-2014-3627: Hadoop client Improper Link Resolution Before File Vulnerability

MODERATE
Advisory Identifier: GHSA-jpmf-8cj2-595g
CWE-59
Published
Advisory Summary

CVE-2014-3627 is a MODERATE improper link resolution before file vulnerability (CWE-59: Improper Link Resolution Before File Access ('Link Following')) affecting Hadoop client libraries in the Maven ecosystem. The issue involves improper link resolution before file access in apache hadoop. Remediation is available by upgrading affected packages to version 1.0.1, 2.5.2.

CVE-2014-3627 at a Glance

CVE Identifier CVE-2014-3627
GHSA Identifier GHSA-jpmf-8cj2-595g
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-59: Improper Link Resolution Before File Access ('Link Following')
Affected Product Hadoop client
Package Ecosystem Maven
Published Date
Last Updated

How to Fix CVE-2014-3627

To remediate this vulnerability, upgrade all affected Hadoop client dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

org.apache.hadoop:hadoop-client fixed: 1.0.1
<dependency>
    <groupId>org.apache.hadoop</groupId>
    <artifactId>hadoop-client</artifactId>
    <version>1.0.1</version>
</dependency>
org.apache.hadoop:hadoop-client fixed: 2.5.2
<dependency>
    <groupId>org.apache.hadoop</groupId>
    <artifactId>hadoop-client</artifactId>
    <version>2.5.2</version>
</dependency>
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

mvn dependency:tree -Dincludes=org.apache.hadoop

How to Check if You Are Affected

To determine whether your Java application is affected by CVE-2014-3627, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree -Dincludes=org.apache.hadoop

Analyze the terminal output to locate any version of Hadoop client in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.0.1), your application is affected.

Note: The mvn dependency:tree -Dincludes=org.apache.hadoop command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-59: Improper Link Resolution Before File Access ('Link Following'), where the product attempts to access a file based on the filename, but it does not properly prevent that filename from identifying a link or shortcut that resolves to an unintended resource. In Hadoop client, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

The YARN NodeManager daemon in Apache Hadoop 0.23.0 through 0.23.11 and 2.x before 2.5.2, when using Kerberos authentication, allows remote cluster users to change the permissions of certain files to world-readable via a symlink attack in a public tar archive, which is not properly handled during localization, related to distributed cache.

CVE-2014-3627 Affected Hadoop client Versions

2 component(s)
Fixed Versions:
1.0.12.5.2
Product / Package Ecosystem Affected Versions Fixed Version
org.apache.hadoop:hadoop-client
Maven
≥ 0.23.0
< 1.0.1
1.0.1
org.apache.hadoop:hadoop-client
Maven
≥ 2.0.0
< 2.5.2
2.5.2

References

Frequently Asked Questions

What is CVE-2014-3627?
CVE-2014-3627 is a security vulnerability in Hadoop client involving Improper Link Resolution Before File Access in Apache Hadoop under CWE-59: Improper Link Resolution Before File Access ('Link Following').
Which Hadoop client versions are affected?
Affected versions include releases prior to 1.0.1, 2.5.2 across affected packages: org.apache.hadoop:hadoop-client.
What version fixes CVE-2014-3627?
Upgrading to 1.0.1, 2.5.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is hadoop-client affected?
Yes, org.apache.hadoop:hadoop-client is affected in releases prior to 1.0.1, 2.5.2. Upgrade your dependency to 1.0.1, 2.5.2 or later.
What CWE is associated with CVE-2014-3627?
CVE-2014-3627 is classified under CWE-59: Improper Link Resolution Before File Access ('Link Following') (The product attempts to access a file based on the filename, but it does not properly prevent that filename from identifying a link or shortcut that resolves to an unintended resource.).
How can I check Maven dependencies for CVE-2014-3627?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.apache.hadoop'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-jpmf-8cj2-595g",
  "modified" : "2022-07-07T22:33:19Z",
  "published" : "2022-05-17T04:20:31Z",
  "aliases" : [ "CVE-2014-3627" ],
  "summary" : "Improper Link Resolution Before File Access in Apache Hadoop",
  "details" : "The YARN NodeManager daemon in Apache Hadoop 0.23.0 through 0.23.11 and 2.x before 2.5.2, when using Kerberos authentication, allows remote cluster users to change the permissions of certain files to world-readable via a symlink attack in a public tar archive, which is not properly handled during localization, related to distributed cache.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.hadoop:hadoop-client"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.23.0"
      }, {
        "fixed" : "1.0.1"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.hadoop:hadoop-client"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.0.0"
      }, {
        "fixed" : "2.5.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2014-3627"
  }, {
    "type" : "WEB",
    "url" : "http://mail-archives.apache.org/mod_mbox/hadoop-general/201411.mbox/%3CCALwhT97dOi04aC3VbekaB+zn2UAS_OZV2EAiP78GmjnMzfp2Ug@mail.gmail.com%3E"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-59" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-07-07T22:33:19Z",
    "nvd_published_at" : "2014-12-05T16:59:00Z"
  }
}