OESA-2022-2092 (CVE-2022-26612)
Vulnerability from osv_openeuler – Published: 2022-11-11 11:05 – Updated: 2026-08-06 11:05 – Source websiteApache Hadoop is a framework that allows for the distributed processing of large data sets across clusters of computers using simple programming models. It is designed to scale up from single servers to thousands of machines, each offering local computation and storage.
Security Fix(es):
In Apache Hadoop, The unTar function uses unTarUsingJava function on Windows and the built-in tar utility on Unix and other OSes. As a result, a TAR entry may create a symlink under the expected extraction directory which points to an external directory. A subsequent TAR entry may extract an arbitrary file into the external directory using the symlink name. This however would be caught by the same targetDirPath check on Unix because of the getCanonicalPath call. However on Windows, getCanonicalPath doesn't resolve symbolic links, which bypasses the check. unpackEntries during TAR extraction follows symbolic links which allows writing outside expected base directory on Windows. This was addressed in Apache Hadoop 3.2.3(CVE-2022-26612)
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.(CVE-2021-37404)
Apache Hadoop's FileUtil.unTar(File, File) API does not escape the input file name before being passed to the shell. An attacker can inject arbitrary commands. This is only used in Hadoop 3.3 InMemoryAliasMap.completeBootstrapTransfer, which is only ever run by a local user. It has been used in Hadoop 2.x for yarn localization, which does enable remote code execution. It is used in Apache Spark, from the SQL command ADD ARCHIVE. As the ADD ARCHIVE command adds new binaries to the classpath, being able to execute shell scripts does not confer new permissions to the caller. SPARK-38305. "Check existence of file before untarring/zipping", which is included in 3.3.0, 3.1.4, 3.2.2, prevents shell commands being executed, regardless of which version of the hadoop libraries are in use. Users should upgrade to Apache Hadoop 2.10.2, 3.2.4, 3.3.3 or upper (including HADOOP-18136).(CVE-2022-25168)
| URL | Type | |
|---|---|---|
{
"affected": [
{
"ecosystem_specific": {
"aarch64": [
"hadoop-yarn-security-3.3.4-1.oe1.aarch64.rpm",
"libhdfs-3.3.4-1.oe1.aarch64.rpm",
"hadoop-devel-3.3.4-1.oe1.aarch64.rpm",
"hadoop-debugsource-3.3.4-1.oe1.aarch64.rpm",
"hadoop-common-native-3.3.4-1.oe1.aarch64.rpm",
"hadoop-debuginfo-3.3.4-1.oe1.aarch64.rpm"
],
"noarch": [
"hadoop-maven-plugin-3.3.4-1.oe1.noarch.rpm",
"hadoop-common-3.3.4-1.oe1.noarch.rpm",
"hadoop-tests-3.3.4-1.oe1.noarch.rpm",
"hadoop-hdfs-3.3.4-1.oe1.noarch.rpm",
"hadoop-yarn-3.3.4-1.oe1.noarch.rpm",
"hadoop-mapreduce-examples-3.3.4-1.oe1.noarch.rpm",
"hadoop-client-3.3.4-1.oe1.noarch.rpm",
"hadoop-httpfs-3.3.4-1.oe1.noarch.rpm",
"hadoop-mapreduce-3.3.4-1.oe1.noarch.rpm"
],
"src": [
"hadoop-3.3.4-1.oe1.src.rpm"
],
"x86_64": [
"hadoop-debuginfo-3.3.4-1.oe1.x86_64.rpm",
"hadoop-common-native-3.3.4-1.oe1.x86_64.rpm",
"hadoop-yarn-security-3.3.4-1.oe1.x86_64.rpm",
"hadoop-debugsource-3.3.4-1.oe1.x86_64.rpm",
"hadoop-devel-3.3.4-1.oe1.x86_64.rpm",
"libhdfs-3.3.4-1.oe1.x86_64.rpm"
]
},
"package": {
"ecosystem": "openEuler:20.03-LTS-SP1",
"name": "hadoop",
"purl": "pkg:rpm/openEuler/hadoop\u0026distro=openEuler-20.03-LTS-SP1"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "3.3.4-1.oe1"
}
],
"type": "ECOSYSTEM"
}
]
},
{
"ecosystem_specific": {
"aarch64": [
"hadoop-common-native-3.3.4-1.oe1.aarch64.rpm",
"hadoop-yarn-security-3.3.4-1.oe1.aarch64.rpm",
"libhdfs-3.3.4-1.oe1.aarch64.rpm",
"hadoop-debugsource-3.3.4-1.oe1.aarch64.rpm",
"hadoop-devel-3.3.4-1.oe1.aarch64.rpm",
"hadoop-debuginfo-3.3.4-1.oe1.aarch64.rpm"
],
"noarch": [
"hadoop-tests-3.3.4-1.oe1.noarch.rpm",
"hadoop-httpfs-3.3.4-1.oe1.noarch.rpm",
"hadoop-common-3.3.4-1.oe1.noarch.rpm",
"hadoop-maven-plugin-3.3.4-1.oe1.noarch.rpm",
"hadoop-hdfs-3.3.4-1.oe1.noarch.rpm",
"hadoop-mapreduce-3.3.4-1.oe1.noarch.rpm",
"hadoop-yarn-3.3.4-1.oe1.noarch.rpm",
"hadoop-client-3.3.4-1.oe1.noarch.rpm",
"hadoop-mapreduce-examples-3.3.4-1.oe1.noarch.rpm"
],
"src": [
"hadoop-3.3.4-1.oe1.src.rpm"
],
"x86_64": [
"hadoop-debuginfo-3.3.4-1.oe1.x86_64.rpm",
"hadoop-devel-3.3.4-1.oe1.x86_64.rpm",
"libhdfs-3.3.4-1.oe1.x86_64.rpm",
"hadoop-yarn-security-3.3.4-1.oe1.x86_64.rpm",
"hadoop-debugsource-3.3.4-1.oe1.x86_64.rpm",
"hadoop-common-native-3.3.4-1.oe1.x86_64.rpm"
]
},
"package": {
"ecosystem": "openEuler:20.03-LTS-SP3",
"name": "hadoop",
"purl": "pkg:rpm/openEuler/hadoop\u0026distro=openEuler-20.03-LTS-SP3"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "3.3.4-1.oe1"
}
],
"type": "ECOSYSTEM"
}
]
},
{
"ecosystem_specific": {
"aarch64": [
"hadoop-devel-3.3.4-1.oe2203.aarch64.rpm",
"hadoop-debuginfo-3.3.4-1.oe2203.aarch64.rpm",
"hadoop-debugsource-3.3.4-1.oe2203.aarch64.rpm",
"libhdfs-3.3.4-1.oe2203.aarch64.rpm",
"hadoop-common-native-3.3.4-1.oe2203.aarch64.rpm",
"hadoop-yarn-security-3.3.4-1.oe2203.aarch64.rpm"
],
"noarch": [
"hadoop-common-3.3.4-1.oe2203.noarch.rpm",
"hadoop-tests-3.3.4-1.oe2203.noarch.rpm",
"hadoop-client-3.3.4-1.oe2203.noarch.rpm",
"hadoop-httpfs-3.3.4-1.oe2203.noarch.rpm",
"hadoop-mapreduce-3.3.4-1.oe2203.noarch.rpm",
"hadoop-hdfs-3.3.4-1.oe2203.noarch.rpm",
"hadoop-yarn-3.3.4-1.oe2203.noarch.rpm",
"hadoop-mapreduce-examples-3.3.4-1.oe2203.noarch.rpm",
"hadoop-maven-plugin-3.3.4-1.oe2203.noarch.rpm"
],
"src": [
"hadoop-3.3.4-1.oe2203.src.rpm"
],
"x86_64": [
"hadoop-yarn-security-3.3.4-1.oe2203.x86_64.rpm",
"hadoop-common-native-3.3.4-1.oe2203.x86_64.rpm",
"libhdfs-3.3.4-1.oe2203.x86_64.rpm",
"hadoop-debugsource-3.3.4-1.oe2203.x86_64.rpm",
"hadoop-debuginfo-3.3.4-1.oe2203.x86_64.rpm",
"hadoop-devel-3.3.4-1.oe2203.x86_64.rpm"
]
},
"package": {
"ecosystem": "openEuler:22.03-LTS",
"name": "hadoop",
"purl": "pkg:rpm/openEuler/hadoop\u0026distro=openEuler-22.03-LTS"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "3.3.4-1.oe2203"
}
],
"type": "ECOSYSTEM"
}
]
}
],
"database_specific": {
"severity": "Critical"
},
"details": "Apache Hadoop is a framework that allows for the distributed processing of large data sets across clusters of computers using simple programming models. It is designed to scale up from single servers to thousands of machines, each offering local computation and storage.\r\n\r\nSecurity Fix(es):\r\n\r\nIn Apache Hadoop, The unTar function uses unTarUsingJava function on Windows and the built-in tar utility on Unix and other OSes. As a result, a TAR entry may create a symlink under the expected extraction directory which points to an external directory. A subsequent TAR entry may extract an arbitrary file into the external directory using the symlink name. This however would be caught by the same targetDirPath check on Unix because of the getCanonicalPath call. However on Windows, getCanonicalPath doesn\u0026apos;t resolve symbolic links, which bypasses the check. unpackEntries during TAR extraction follows symbolic links which allows writing outside expected base directory on Windows. This was addressed in Apache Hadoop 3.2.3(CVE-2022-26612)\r\n\r\nThere 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.(CVE-2021-37404)\r\n\r\nApache Hadoop\u0026apos;s FileUtil.unTar(File, File) API does not escape the input file name before being passed to the shell. An attacker can inject arbitrary commands. This is only used in Hadoop 3.3 InMemoryAliasMap.completeBootstrapTransfer, which is only ever run by a local user. It has been used in Hadoop 2.x for yarn localization, which does enable remote code execution. It is used in Apache Spark, from the SQL command ADD ARCHIVE. As the ADD ARCHIVE command adds new binaries to the classpath, being able to execute shell scripts does not confer new permissions to the caller. SPARK-38305. \u0026quot;Check existence of file before untarring/zipping\u0026quot;, which is included in 3.3.0, 3.1.4, 3.2.2, prevents shell commands being executed, regardless of which version of the hadoop libraries are in use. Users should upgrade to Apache Hadoop 2.10.2, 3.2.4, 3.3.3 or upper (including HADOOP-18136).(CVE-2022-25168)",
"id": "OESA-2022-2092",
"modified": "2026-08-06T11:05:24Z",
"published": "2022-11-11T11:05:24Z",
"references": [
{
"type": "ADVISORY",
"url": "https://www.openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2022-2092"
},
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2022-26612"
},
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2021-37404"
},
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2022-25168"
}
],
"schema_version": "1.7.2",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
"type": "CVSS_V3"
}
],
"summary": "hadoop security update",
"upstream": [
"CVE-2022-26612",
"CVE-2021-37404",
"CVE-2022-25168"
]
}
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
Related by attack behaviour
Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.