Security mailing lists by PureSourceCode

CVE-2022-26612

CRITICAL 9.8CVSS 3.1

Path traversal in Hadoop

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

Published
7 Apr 2022
Last modified
17 Jun 2026
Assigned by
security@apache.org
NVD status
Modified
Weakness
CWE-22CWE-59
Also known as
GHSA-gx2c-fvhc-ph4j
Sources
NVDJSONOSV GHSA-gx2c-fvhc-ph4jJSON

Scores

SourceScored byVersionScoreVector / decision
NVD nvd@nist.gov (Primary) CVSS 3.1 CRITICAL 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
OSV GitHub CVSS 3.1 CRITICAL 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD nvd@nist.gov (Primary) CVSS 2.0 HIGH 7.5 AV:N/AC:L/Au:N/C:P/I:P/A:P

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD apache hadoop
cpe:2.3:a:apache:hadoop:*:*:*:*:*:*:*:*
< 3.2.3 3.2.3
NVD apache hadoop
cpe:2.3:a:apache:hadoop:3.3.1:-:*:*:*:*:*:*
= 3.3.1
NVD apache hadoop
cpe:2.3:a:apache:hadoop:3.3.2:-:*:*:*:*:*:*
= 3.3.2
OSV Maven org.apache.hadoop:hadoop-common >= 3.2.0, < 3.2.3 3.2.3
OSV Maven org.apache.hadoop:hadoop-common < 2.10.2 2.10.2
OSV Maven org.apache.hadoop:hadoop-common >= 3.3.0, < 3.3.3 3.3.3

References

History

  • 25 Nov 2026 20:34 UTC · NVD: first stored (published 7 Apr 2022)
  • 25 Nov 2026 20:13 UTC · OSV: first stored (published 8 Apr 2022)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.