Critical
Security advisory
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2021-37404
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 1 Nov 2026, 09:27 UTC · Revision 1
Source evidence
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.
osv:CVE-2021-37404
Complete source record
{
"id": "b3112e655862ff424dc1ee021e01c7f811b9334d1691be4685c6eb0c1b8c9f37",
"url": "https://osv.dev/vulnerability/CVE-2021-37404",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2021-37404",
"summary": "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.",
"evidence": "osv:CVE-2021-37404",
"products": [],
"severity": "critical",
"structured": {
"id": "CVE-2021-37404",
"aliases": [
"CVE-2021-37404",
"GHSA-rmpj-7c96-mrg8"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/apache/hadoop",
"type": "GIT",
"events": [
{
"introduced": "756ebc8394e473ac25feac05fa493f6d612e6c50"
},
{
"fixed": "965fd380006fa78b2315668fbc7eb432e1d8200f"
},
{
"introduced": "c25427ceca461ee979d30edd7a4b0f50718e6533"
},
{
"last_affected": "1e877761e8dadd71effef30e592368f7fe66a61b"
},
{
"introduced": "e97acb3bd8f3befd27418996fa5d4b50bf2e17bf"
},
{
"fixed": "abe5358143720085498613d399be3bbf01e0f131"
},
{
"introduced": "aa96f1871bfd858f9bac59cf2a81ec470da649af"
},
{
"fixed": "0bcb014209e219273cb6fd4152df7df713cbac61"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:apache:hadoop:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "2.9.0"
},
{
"fixed": "2.10.2"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:apache:hadoop:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "3.0.0"
},
{
"last_affected": "3.1.4"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:apache:hadoop:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "3.2.0"
},
{
"fixed": "3.2.3"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:apache:hadoop:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "3.3.0"
},
{
"fixed": "3.3.2"
}
],
"source": "CPE_RANGE"
}
]
}
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-37404.json",
"vanir_signatures": [
{
"id": "CVE-2021-37404-cf0079d5",
"digest": {
"length": 705,
"function_hash": "172508901140850166315077168976677568660"
},
"source": "https://github.com/apache/hadoop/commit/abe5358143720085498613d399be3bbf01e0f131",
"target": {
"file": "hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/conf/Configuration.java",
"function": "getTimeDurationHelper"
},
"deprecated": false,
"signature_type": "Function",
"signature_version": "v1"
},
{
"id": "CVE-2021-37404-f2b0819d",
"digest": {
"threshold": 0.9,
"line_hashes": [
"117241420199337029436298470313516342337",
"10911464053357943410825609861845695837",
"240437666491262468440316638114074933731",
"226622566833744400926285549106341911654",
"249375286985992668764075164756526076674"
]
},
"source": "https://github.com/apache/hadoop/commit/abe5358143720085498613d399be3bbf01e0f131",
"target": {
"file": "hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/conf/Configuration.java"
},
"deprecated": false,
"signature_type": "Line",
"signature_version": "v1"
}
],
"vanir_signatures_modified": "2026-10-24T14:25:16Z"
}
}
],
"modified": "2026-10-24T14:25:16.422557941Z",
"provider": "osv",
"references": [
"https://security.netapp.com/advisory/ntap-20220715-0007/",
"https://lists.apache.org/thread/2h56ztcj3ojc66qzf1nno88vjw9vd4wo"
],
"provider_metadata": {}
},
"related_cves": [
{
"value": "CVE-2021-37404",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 443749,
"published_at": "2022-06-13T07:15:08.327+00:00"
}