CVE-2021-37404: Apache Hadoop heap overflow in libhdfs

Summary

14/06/2022
Yes i
Critical
9.8

CVE-2021-37404: Apache Hadoop heap overflow before v2.10.2, v3.2.3, v3.3.2. Affects org.apache.hadoop:hadoop-common across 3 version ranges.

< 2.10.2 >= 3.0.0, < 3.2.3 >= 3.3.0, < 3.3.2

Fixed in 2.10.2, 3.2.3 or 3.3.2, depending on the release line you run. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Apache Hadoop is an open-source framework used for distributed storage and processing of large datasets. The 'org.apache.hadoop:hadoop-common' package is a core component of Apache Hadoop, providing common utilities and libraries. This package is vulnerable to a heap buffer overflow in the libhdfs native code.

Vulnerability Detail

The vulnerability arises from the lack of validation when opening a file path provided by the user. This can lead to a heap buffer overflow, potentially resulting in a denial of service or arbitrary code execution. The issue affects versions prior to 2.10.2, 3.2.3, and 3.3.2 of Apache Hadoop.

How To Fix

Latest published version: 3.5.0 as of 23 Oct 2026

Upgrading to it may include breaking changes; the versions below are the minimum fixed release for this vulnerability.

If you can't move to the latest

The minimum fixed version depends on the release line you run.

  • < 2.10.2 2.10.2
  • >= 3.0.0, < 3.2.3 3.2.3
  • >= 3.3.0, < 3.3.2 3.3.2

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Workaround

There is no known workaround available for this vulnerability.

Conclusion

The Apache Hadoop 'org.apache.hadoop:hadoop-common' package is vulnerable to a heap buffer overflow in the libhdfs native code. Users should upgrade to the recommended versions to mitigate the risk of a denial of service or arbitrary code execution. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for org.apache.hadoop:hadoop-common →

Share this vulnerability

FAQ

The vulnerability can potentially lead to a denial of service or arbitrary code execution.

Versions prior to 2.10.2, 3.2.3, and 3.3.2 are affected.

You can use the Vulert Playground at Vulert Scanner to check if your application is affected by this vulnerability.

No, there is no known workaround available for this vulnerability.

Related vulnerabilities

Recent vulnerabilities recorded for org.apache.hadoop:hadoop-common.

How To Fix

Latest published version: 3.5.0 as of 23 Oct 2026

Upgrading to it may include breaking changes; the versions below are the minimum fixed release for this vulnerability.

If you can't move to the latest

The minimum fixed version depends on the release line you run.

  • < 2.10.2 2.10.2
  • >= 3.0.0, < 3.2.3 3.2.3
  • >= 3.3.0, < 3.3.2 3.3.2

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback