CVE-2012-3376: Hadoop client Client BlockTokens Not Checked Vulnerability

HIGH
Advisory Identifier: GHSA-qmh2-h7r6-gm6q
Published
Advisory Summary

CVE-2012-3376 is a HIGH client blocktokens not checked vulnerability (General Security Weakness) affecting Hadoop client libraries in the Maven ecosystem. The issue involves client blocktokens not checked in apache hadoop. Remediation is available by upgrading affected packages to version 2.0.1-alpha.

CVE-2012-3376 at a Glance

CVE Identifier CVE-2012-3376
GHSA Identifier GHSA-qmh2-h7r6-gm6q
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification General Security Weakness
Affected Product Hadoop client
Package Ecosystem Maven
Published Date
Last Updated

How to Fix CVE-2012-3376

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: 2.0.1-alpha
<dependency>
    <groupId>org.apache.hadoop</groupId>
    <artifactId>hadoop-client</artifactId>
    <version>2.0.1-alpha</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-2012-3376, 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 2.0.1-alpha), 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 General Security Weakness. 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

DataNodes in Apache Hadoop 2.0.0 alpha does not check the BlockTokens of clients when Kerberos is enabled and the DataNode has checked out the same BlockPool twice from a NodeName, which might allow remote clients to read arbitrary blocks, write to blocks to which they only have read access, and have other unspecified impacts.

CVE-2012-3376 Affected Hadoop client Versions

1 component(s)
Fixed Versions:
2.0.1-alpha
Product / Package Ecosystem Affected Versions Fixed Version
org.apache.hadoop:hadoop-client
Maven
≥ 2.0.0-alpha
< 2.0.1-alpha
All 1 versions
2.0.0-alpha
2.0.1-alpha

References

Frequently Asked Questions

What is CVE-2012-3376?
CVE-2012-3376 is a security vulnerability in Hadoop client involving Client BlockTokens not checked in Apache Hadoop under General Security Weakness.
Which Hadoop client versions are affected?
Affected versions include releases prior to 2.0.1-alpha across affected packages: org.apache.hadoop:hadoop-client.
What version fixes CVE-2012-3376?
Upgrading to 2.0.1-alpha (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 2.0.1-alpha. Upgrade your dependency to 2.0.1-alpha or later.
What CWE is associated with CVE-2012-3376?
CVE-2012-3376 is classified under General Security Weakness.
How can I check Maven dependencies for CVE-2012-3376?
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-qmh2-h7r6-gm6q",
  "modified" : "2022-07-13T21:25:16Z",
  "published" : "2022-05-17T02:54:07Z",
  "aliases" : [ "CVE-2012-3376" ],
  "summary" : "Client BlockTokens not checked in Apache Hadoop",
  "details" : "DataNodes in Apache Hadoop 2.0.0 alpha does not check the BlockTokens of clients when Kerberos is enabled and the DataNode has checked out the same BlockPool twice from a NodeName, which might allow remote clients to read arbitrary blocks, write to blocks to which they only have read access, and have other unspecified impacts.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.hadoop:hadoop-client"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.0.0-alpha"
      }, {
        "fixed" : "2.0.1-alpha"
      } ]
    } ],
    "versions" : [ "2.0.0-alpha" ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2012-3376"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/apache/hadoop"
  }, {
    "type" : "WEB",
    "url" : "https://seclists.org/fulldisclosure/2012/Jul/78"
  }, {
    "type" : "WEB",
    "url" : "https://www.cloudera.com/documentation/other/security-bulletins/topics/csb_topic_1.html"
  }, {
    "type" : "WEB",
    "url" : "http://archives.neohapsis.com/archives/bugtraq/2012-07/0049.html"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-07-13T21:25:16Z",
    "nvd_published_at" : "2012-07-12T19:55:00Z"
  }
}