CVE-2022-26612Apache Hadoop
Critical 9.8 No auth needed
Follow: this CVE · Apache · Apache Hadoop We alert you by email or Slack (account required).
- Priority
- 74
- CVSS 3.1
- 9.8
- EPSS
- 3.3% probability of exploitation in 30 days · percentile 89
- Auth required
- No
- Published
- Apr 7, 2022
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-59
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
What happens
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
What to do
- Apply the vendor's security update for Hadoop.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Maven | org.apache.hadoop:hadoop-common |
≥ 3.2.0 < 3.2.3 |
3.2.3 |
— |
| Maven | org.apache.hadoop:hadoop-common |
< 2.10.2 |
2.10.2 |
— |
| Maven | org.apache.hadoop:hadoop-common |
≥ 3.3.0 < 3.3.3 |
3.3.3 |
— |
Per OSV / GitHub Advisories (GHSA-gx2c-fvhc-ph4j). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| apache | hadoop | < 3.2.3 |
| apache | hadoop | 3.3.1 |
| apache | hadoop | 3.3.2 |
Official sources
References
Links published by the sources. Open them with care.
- lists.apache.org Exploit Vendor Advisory
- security.netapp.com Third Party Advisory