9.8

CVE-2022-26612: Arbitrary file write in FileUtil#unpackEntries on Windows

Modified
AliasesCGA-4fq3-3fpj-654hCGA-58wf-7jmh-4gfmCGA-6g58-37jh-6jr6
Published 07-04-2022Last modified 03-08-2024

Vulnerability summary

CVE-2022-26612 is a critical (CVSS 9.8) vulnerability in apache software foundation apache hadoop. EPSS estimates a 4.24% chance of exploitation in the next 30 days, higher than 91.3% of scored vulnerabilities. 1 public exploit is recorded.

Priority
Prioritisepublic exploit

Public exploit (reference, Date unknown)

Source freshness unavailable

How is this decided?
CVSS score
9.8/10
010
Critical · v3.1 (NVD)
EPSS score
4.24%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits1reference

Timeline

  1. 07-04-2022
    PublishedVulnerability first disclosed.
  2. 03-08-2024
    Last modifiedVulnerability information updated.

Description

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

CVSS metrics

4 scores · 3 sources · 2 versions

EPSS trend

Probability

4.24%

Chance of exploitation in the next 30 days

Percentile

91%

Versus all other CVEs

30-day change

No change 0.00 pp

From 4.24% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

1 found
  • referenceUnverified

    Exploit Reference (lists.apache.org)

    Maturity: unknown

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.

Apache1 product
Apache software foundation1 product
Chainguard1 product
  • hadoop-fips-3.3.6All versions (No fix recorded)
Org.apache.hadoop1 product
  • hadoop-common≥ 3.2.0, < 3.2.3 | < 2.10.2 | ≥ 3.3.0, < 3.3.3

4 vendors · 4 products

References

10 links