{"id":"CVE-2022-26612","aliases":["DHI-wlip-3k67-7wt2-khgq","GHSA-gx2c-fvhc-ph4j"],"summary":"Arbitrary file write in FileUtil#unpackEntries on Windows","published_at":"2022-04-07T00:00:00Z","modified_at":"2026-11-17T06:31:44.653011Z","products":[{"slug":"rhel","name":"Red Hat Enterprise Linux","category":"red-hat"}],"rating":{"severity":"critical","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","attack_path":"internet_unauthenticated","user_interaction":false,"malicious":false,"red_hat":"Important","vendor_ratings":[{"source":"SUSE","rating":"critical"},{"source":"Red Hat","rating":"Important"}]},"fix_available":false,"kev":{"listed":false,"ransomware":false},"public_exploit":false,"exploits":[],"epss":{"score":0.042410001158714294,"percentile":0.9123499989509583,"date":"2026-11-19T00:00:00Z"},"priority":11.8,"details":"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","affected_stack":[{"ecosystem":"Red Hat:logging:5","package":"hadoop-common","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2022-26612","relation":"self"}],"affected_other":[{"ecosystem":"CVE","package":"Apache Software Foundation/Apache Hadoop","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.2.3"}]}],"versions":["3.3.1","3.3.2"],"fixed":["3.2.3"],"provider":"cvelistv5","source":"CVE-2022-26612","relation":"self"},{"ecosystem":"Docker Hardened Images:Alpine:3.24","package":"janusgraph-1.0","purl":"pkg:apk/dhi/janusgraph-1.0","versions":["1.0.1-r0","1.0.1-r1","1.0.1-r10","1.0.1-r11","1.0.1-r2","1.0.1-r3","1.0.1-r4","1.0.1-r5","1.0.1-r6","1.0.1-r7","1.0.1-r8","1.0.1-r9"],"provider":"osv","source":"DHI-wlip-3k67-7wt2-khgq","relation":"self"},{"ecosystem":"Docker Hardened Images:Alpine:3.24","package":"janusgraph-1.1","purl":"pkg:apk/dhi/janusgraph-1.1","versions":["1.1.0-r0","1.1.0-r1","1.1.0-r10","1.1.0-r11","1.1.0-r12","1.1.0-r13","1.1.0-r2","1.1.0-r3","1.1.0-r4","1.1.0-r5","1.1.0-r6","1.1.0-r7","1.1.0-r8","1.1.0-r9"],"provider":"osv","source":"DHI-wlip-3k67-7wt2-khgq","relation":"self"},{"ecosystem":"Docker Hardened Images:Debian:13","package":"janusgraph-1.0","purl":"pkg:deb/dhi/janusgraph-1.0","versions":["1.0.1-0","1.0.1-1","1.0.1-10","1.0.1-11","1.0.1-12","1.0.1-13","1.0.1-2","1.0.1-3","1.0.1-4","1.0.1-5","1.0.1-6","1.0.1-7","1.0.1-8","1.0.1-9"],"provider":"osv","source":"DHI-wlip-3k67-7wt2-khgq","relation":"self"},{"ecosystem":"Docker Hardened Images:Debian:13","package":"janusgraph-1.1","purl":"pkg:deb/dhi/janusgraph-1.1","versions":["1.1.0-0","1.1.0-1","1.1.0-10","1.1.0-11","1.1.0-12","1.1.0-13","1.1.0-14","1.1.0-15","1.1.0-16","1.1.0-2","1.1.0-3","1.1.0-4","1.1.0-5","1.1.0-6","1.1.0-7","1.1.0-8","1.1.0-9"],"provider":"osv","source":"DHI-wlip-3k67-7wt2-khgq","relation":"self"},{"ecosystem":"Maven","package":"org.apache.hadoop:hadoop-common","purl":"pkg:maven/org.apache.hadoop/hadoop-common","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.3.0"},{"fixed":"3.3.3"}]}],"versions":["3.3.0","3.3.1","3.3.2"],"fixed":["3.3.3"],"provider":"osv","source":"GHSA-gx2c-fvhc-ph4j","relation":"self"},{"ecosystem":"Maven","package":"org.apache.hadoop:hadoop-common","purl":"pkg:maven/org.apache.hadoop/hadoop-common","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.2.0"},{"fixed":"3.2.3"}]}],"versions":["3.2.0","3.2.1","3.2.2"],"fixed":["3.2.3"],"provider":"osv","source":"GHSA-gx2c-fvhc-ph4j","relation":"self"},{"ecosystem":"Maven","package":"org.apache.hadoop:hadoop-common","purl":"pkg:maven/org.apache.hadoop/hadoop-common","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.10.2"}]}],"versions":["0.22.0","0.23.1","0.23.10","0.23.11","0.23.3","0.23.4","0.23.5","0.23.6","0.23.7","0.23.8","0.23.9","2.0.0-alpha","2.0.1-alpha","2.0.2-alpha","2.0.3-alpha","2.0.4-alpha","2.0.5-alpha","2.0.6-alpha","2.1.0-beta","2.1.1-beta","2.10.0","2.10.1","2.2.0","2.3.0","2.4.0","2.4.1","2.5.0","2.5.1","2.5.2","2.6.0","2.6.1","2.6.2","2.6.3","2.6.4","2.6.5","2.7.0","2.7.1","2.7.2","2.7.3","2.7.4","2.7.5","2.7.6","2.7.7","2.8.0","2.8.1","2.8.2","2.8.3","2.8.4","2.8.5","2.9.0","2.9.1","2.9.2"],"fixed":["2.10.2"],"provider":"osv","source":"GHSA-gx2c-fvhc-ph4j","relation":"self"},{"ecosystem":"NVD","package":"apache:hadoop","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.2.3"}]}],"versions":["3.3.1","3.3.2"],"fixed":["3.2.3"],"provider":"nvd","source":"CVE-2022-26612","relation":"self"}],"product_status":[{"vendor":"SUSE","product":"SUSE Manager Server Module 4.1","cpe":"cpe:/o:suse:sle-module-suse-manager-server:4.1","status":"not_affected","packages":["hadoop"],"package_count":1,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2022-26612"},{"vendor":"SUSE","product":"SUSE Manager Server Module 4.2","cpe":"cpe:/o:suse:sle-module-suse-manager-server:4.2","status":"not_affected","packages":["hadoop"],"package_count":1,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2022-26612"},{"vendor":"SUSE","product":"SUSE Manager Server Module 4.3","cpe":"cpe:/o:suse:sle-module-suse-manager-server:4.3","status":"not_affected","packages":["hadoop"],"package_count":1,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2022-26612"},{"vendor":"Red Hat","product":"A-MQ Clients 2","cpe":"cpe:/a:redhat:a_mq_clients:2","status":"not_affected","packages":["hadoop"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2022-26612"},{"vendor":"Red Hat","product":"Logging Subsystem for Red Hat OpenShift","cpe":"cpe:/a:redhat:logging:5","status":"affected","packages":["hadoop-common"],"package_count":1,"fixed":[],"advisories":[],"note":"Affected","provider":"redhat-vex","source":"CVE-2022-26612"},{"vendor":"Red Hat","product":"Red Hat AMQ Broker 7","cpe":"cpe:/a:redhat:amq_broker:7","status":"not_affected","packages":["hadoop"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2022-26612"},{"vendor":"Red Hat","product":"Red Hat Advanced Cluster Management for Kubernetes 2","cpe":"cpe:/a:redhat:acm:2","status":"not_affected","packages":["rhacm2/volsync-mover-rclone-rhel8"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2022-26612"},{"vendor":"Red Hat","product":"Red Hat Data Grid 8","cpe":"cpe:/a:redhat:jboss_data_grid:8","status":"not_affected","packages":["hadoop"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2022-26612"},{"vendor":"Red Hat","product":"Red Hat Fuse 7","cpe":"cpe:/a:redhat:jboss_fuse:7","status":"not_affected","packages":["hadoop"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2022-26612"},{"vendor":"Red Hat","product":"Red Hat Integration Camel K 1","cpe":"cpe:/a:redhat:camel_k:1","status":"affected","packages":["hadoop"],"package_count":1,"fixed":[],"advisories":[],"note":"Will not fix","provider":"redhat-vex","source":"CVE-2022-26612"},{"vendor":"Red Hat","product":"Red Hat Integration Camel Quarkus 1","cpe":"cpe:/a:redhat:camel_quarkus:2","status":"affected","packages":["hadoop"],"package_count":1,"fixed":[],"advisories":[],"note":"Will not fix","provider":"redhat-vex","source":"CVE-2022-26612"},{"vendor":"Red Hat","product":"Red Hat Integration Data Virtualisation Operator","cpe":"cpe:/a:redhat:integration:1","status":"affected","packages":["hadoop"],"package_count":1,"fixed":[],"advisories":[],"note":"Out of support scope","provider":"redhat-vex","source":"CVE-2022-26612"},{"vendor":"Red Hat","product":"Red Hat JBoss Data Grid 7","cpe":"cpe:/a:redhat:jboss_data_grid:7","status":"affected","packages":["hadoop"],"package_count":1,"fixed":[],"advisories":[],"note":"Out of support scope","provider":"redhat-vex","source":"CVE-2022-26612"},{"vendor":"Red Hat","product":"Red Hat JBoss Data Virtualization 6","cpe":"cpe:/a:redhat:jboss_data_virtualization:6","status":"affected","packages":["hadoop"],"package_count":1,"fixed":[],"advisories":[],"note":"Out of support scope","provider":"redhat-vex","source":"CVE-2022-26612"},{"vendor":"Red Hat","product":"Red Hat JBoss Enterprise Application Platform 7","cpe":"cpe:/a:redhat:jboss_enterprise_application_platform:7","status":"not_affected","packages":["hadoop-core"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2022-26612"},{"vendor":"Red Hat","product":"Red Hat JBoss Enterprise Application Platform Expansion Pack","cpe":"cpe:/a:redhat:jbosseapxp","status":"not_affected","packages":["hadoop"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2022-26612"},{"vendor":"Red Hat","product":"Red Hat JBoss Fuse 6","cpe":"cpe:/a:redhat:jboss_fuse:6","status":"affected","packages":["hadoop"],"package_count":1,"fixed":[],"advisories":[],"note":"Out of support scope","provider":"redhat-vex","source":"CVE-2022-26612"},{"vendor":"Red Hat","product":"Red Hat JBoss Fuse Service Works 6","cpe":"cpe:/a:redhat:jboss_fuse_service_works:6","status":"affected","packages":["hadoop"],"package_count":1,"fixed":[],"advisories":[],"note":"Out of support scope","provider":"redhat-vex","source":"CVE-2022-26612"},{"vendor":"Red Hat","product":"Red Hat JBoss Operations Network 3","cpe":"cpe:/a:redhat:jboss_operations_network:3","status":"affected","packages":["hadoop"],"package_count":1,"fixed":[],"advisories":[],"note":"Out of support scope","provider":"redhat-vex","source":"CVE-2022-26612"},{"vendor":"Red Hat","product":"Red Hat OpenShift Container Platform 4","cpe":"cpe:/a:redhat:openshift:4","status":"affected","packages":["openshift4/ose-metering-hadoop"],"package_count":1,"fixed":[],"advisories":[],"note":"Affected","provider":"redhat-vex","source":"CVE-2022-26612"},{"vendor":"Red Hat","product":"streams for Apache Kafka","cpe":"cpe:/a:redhat:amq_streams:1","status":"not_affected","packages":["hadoop"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2022-26612"}],"records":[{"provider":"csaf-bsi","source_id":"WID-SEC-W-2024-0794","relation":"upstream","url":"https://wid.cert-bund.de/portal/wid/securityadvisory?name=WID-SEC-2024-0794","license":"TLP:CLEAR, mirroring permitted","published_at":"2024-04-04T22:00:00Z","modified_at":"2026-08-11T22:00:00Z","summary":"Dell ECS: Mehrere Schwachstellen","details":"Ein Angreifer kann mehrere Schwachstellen in Dell ECS ausnutzen, um seine Privilegien zu erweitern, beliebigen Programmcode mit Administratorrechten auszuführen, Informationen offenzulegen, Dateien zu manipulieren, einen Cross-Site-Scripting-Angriff durchzuführen, Sicherheitsvorkehrungen zu umgehen oder einen Denial of Service Zustand herbeizuführen.\n\nDell ECS ist ein Objektspeichersystem.","severity":[{"type":"BSI","score":"hoch","source":"WID-SEC-W-2024-0794"}],"affected":[],"product_status":[],"references":[{"type":"WEB","url":"https://wid.cert-bund.de/.well-known/csaf/white/2024/wid-sec-w-2024-0794.json"},{"type":"WEB","url":"https://wid.cert-bund.de/portal/wid/securityadvisory?name=WID-SEC-2024-0794"},{"type":"WEB","url":"https://www.dell.com/support/kbdoc/000223839/dsa-2024-="},{"type":"WEB","url":"https://www.dell.com/support/kbdoc/en-us/000209268/dsa-2023-014-dell-poweredge-server-security-update-for-intel-february-2023-security-advisories-2023-1-ipu"},{"type":"WEB","url":"https://www.ibm.com/support/pages/node/7282698"}]},{"provider":"cvelistv5","source_id":"CVE-2022-26612","relation":"self","url":"https://www.cve.org/CVERecord?id=CVE-2022-26612","license":"CC-BY-4.0","published_at":"2022-04-07T18:20:12Z","modified_at":"2024-08-03T05:11:43.529Z","summary":"Arbitrary file write in FileUtil#unpackEntries on Windows","details":"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","severity":[],"affected":[{"ecosystem":"CVE","package":"Apache Software Foundation/Apache Hadoop","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.2.3"}]}],"versions":["3.3.1","3.3.2"],"fixed":["3.2.3"],"provider":"cvelistv5","source":"CVE-2022-26612","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://lists.apache.org/thread/hslo7wzw2449gv1jyjk8g6ttd7935fyz"},{"type":"WEB","url":"https://security.netapp.com/advisory/ntap-20220519-0004/"}]},{"provider":"csaf-suse","source_id":"CVE-2022-26612","relation":"self","url":"https://www.suse.com/security/cve/CVE-2022-26612/","license":"TLP:CLEAR, mirroring permitted","published_at":"2023-02-15T03:27:05Z","modified_at":"2025-04-25T03:42:50Z","summary":"SUSE CVE CVE-2022-26612","details":"SUSE CVE-2022-26612\n\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'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","severity":[{"type":"SUSE","score":"critical","source":"CVE-2022-26612"}],"affected":[],"product_status":[{"vendor":"SUSE","product":"SUSE Manager Server Module 4.1","cpe":"cpe:/o:suse:sle-module-suse-manager-server:4.1","status":"not_affected","packages":["hadoop"],"package_count":1,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2022-26612"},{"vendor":"SUSE","product":"SUSE Manager Server Module 4.2","cpe":"cpe:/o:suse:sle-module-suse-manager-server:4.2","status":"not_affected","packages":["hadoop"],"package_count":1,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2022-26612"},{"vendor":"SUSE","product":"SUSE Manager Server Module 4.3","cpe":"cpe:/o:suse:sle-module-suse-manager-server:4.3","status":"not_affected","packages":["hadoop"],"package_count":1,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2022-26612"}],"references":[{"type":"WEB","url":"https://www.suse.com/security/cve/CVE-2022-26612"},{"type":"WEB","url":"https://www.suse.com/support/security/rating/"},{"type":"WEB","url":"https://bugzilla.suse.com/1198236"}]},{"provider":"nvd","source_id":"CVE-2022-26612","relation":"self","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-26612","severity":[],"affected":[{"ecosystem":"NVD","package":"apache:hadoop","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.2.3"}]}],"versions":["3.3.1","3.3.2"],"fixed":["3.2.3"],"provider":"nvd","source":"CVE-2022-26612","relation":"self"}],"product_status":[],"references":[]},{"provider":"osv","source_id":"DHI-wlip-3k67-7wt2-khgq","relation":"self","url":"https://osv.dev/vulnerability/DHI-wlip-3k67-7wt2-khgq","license":"Apache-2.0","published_at":"2026-11-13T22:36:41Z","modified_at":"2026-11-17T06:31:44.653011Z","summary":"In Apache Hadoop, The unTar function uses unTarUsingJava function on Windows and the built-in tar utility on Unix and…","details":"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","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"DHI-wlip-3k67-7wt2-khgq"}],"affected":[{"ecosystem":"Docker Hardened Images:Alpine:3.24","package":"janusgraph-1.0","purl":"pkg:apk/dhi/janusgraph-1.0","versions":["1.0.1-r0","1.0.1-r1","1.0.1-r10","1.0.1-r11","1.0.1-r2","1.0.1-r3","1.0.1-r4","1.0.1-r5","1.0.1-r6","1.0.1-r7","1.0.1-r8","1.0.1-r9"],"provider":"osv","source":"DHI-wlip-3k67-7wt2-khgq","relation":"self"},{"ecosystem":"Docker Hardened Images:Alpine:3.24","package":"janusgraph-1.1","purl":"pkg:apk/dhi/janusgraph-1.1","versions":["1.1.0-r0","1.1.0-r1","1.1.0-r10","1.1.0-r11","1.1.0-r12","1.1.0-r13","1.1.0-r2","1.1.0-r3","1.1.0-r4","1.1.0-r5","1.1.0-r6","1.1.0-r7","1.1.0-r8","1.1.0-r9"],"provider":"osv","source":"DHI-wlip-3k67-7wt2-khgq","relation":"self"},{"ecosystem":"Docker Hardened Images:Debian:13","package":"janusgraph-1.0","purl":"pkg:deb/dhi/janusgraph-1.0","versions":["1.0.1-0","1.0.1-1","1.0.1-10","1.0.1-11","1.0.1-12","1.0.1-13","1.0.1-2","1.0.1-3","1.0.1-4","1.0.1-5","1.0.1-6","1.0.1-7","1.0.1-8","1.0.1-9"],"provider":"osv","source":"DHI-wlip-3k67-7wt2-khgq","relation":"self"},{"ecosystem":"Docker Hardened Images:Debian:13","package":"janusgraph-1.1","purl":"pkg:deb/dhi/janusgraph-1.1","versions":["1.1.0-0","1.1.0-1","1.1.0-10","1.1.0-11","1.1.0-12","1.1.0-13","1.1.0-14","1.1.0-15","1.1.0-16","1.1.0-2","1.1.0-3","1.1.0-4","1.1.0-5","1.1.0-6","1.1.0-7","1.1.0-8","1.1.0-9"],"provider":"osv","source":"DHI-wlip-3k67-7wt2-khgq","relation":"self"}],"product_status":[],"references":[{"type":"ADVISORY","url":"https://scout.docker.com/v/DHI-wlip-3k67-7wt2-khgq"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-26612"},{"type":"ADVISORY","url":"https://security.netapp.com/advisory/ntap-20220519-0004/"},{"type":"ADVISORY","url":"https://lists.apache.org/thread/hslo7wzw2449gv1jyjk8g6ttd7935fyz"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-gx2c-fvhc-ph4j"},{"type":"ADVISORY","url":"https://inthewild.io/vuln/CVE-2022-26612"},{"type":"ADVISORY","url":"https://access.redhat.com/security/cve/CVE-2022-26612"}]},{"provider":"osv","source_id":"GHSA-gx2c-fvhc-ph4j","relation":"self","url":"https://osv.dev/vulnerability/GHSA-gx2c-fvhc-ph4j","license":"CC-BY-4.0","published_at":"2022-04-08T00:00:21Z","modified_at":"2025-10-01T14:55:55.727257Z","summary":"Path traversal in Hadoop","details":"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 2.10.2, 3.2.3, 3.3.3, and 3.4.0.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"GHSA-gx2c-fvhc-ph4j"}],"affected":[{"ecosystem":"Maven","package":"org.apache.hadoop:hadoop-common","purl":"pkg:maven/org.apache.hadoop/hadoop-common","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.3.0"},{"fixed":"3.3.3"}]}],"versions":["3.3.0","3.3.1","3.3.2"],"fixed":["3.3.3"],"provider":"osv","source":"GHSA-gx2c-fvhc-ph4j","relation":"self"},{"ecosystem":"Maven","package":"org.apache.hadoop:hadoop-common","purl":"pkg:maven/org.apache.hadoop/hadoop-common","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.2.0"},{"fixed":"3.2.3"}]}],"versions":["3.2.0","3.2.1","3.2.2"],"fixed":["3.2.3"],"provider":"osv","source":"GHSA-gx2c-fvhc-ph4j","relation":"self"},{"ecosystem":"Maven","package":"org.apache.hadoop:hadoop-common","purl":"pkg:maven/org.apache.hadoop/hadoop-common","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.10.2"}]}],"versions":["0.22.0","0.23.1","0.23.10","0.23.11","0.23.3","0.23.4","0.23.5","0.23.6","0.23.7","0.23.8","0.23.9","2.0.0-alpha","2.0.1-alpha","2.0.2-alpha","2.0.3-alpha","2.0.4-alpha","2.0.5-alpha","2.0.6-alpha","2.1.0-beta","2.1.1-beta","2.10.0","2.10.1","2.2.0","2.3.0","2.4.0","2.4.1","2.5.0","2.5.1","2.5.2","2.6.0","2.6.1","2.6.2","2.6.3","2.6.4","2.6.5","2.7.0","2.7.1","2.7.2","2.7.3","2.7.4","2.7.5","2.7.6","2.7.7","2.8.0","2.8.1","2.8.2","2.8.3","2.8.4","2.8.5","2.9.0","2.9.1","2.9.2"],"fixed":["2.10.2"],"provider":"osv","source":"GHSA-gx2c-fvhc-ph4j","relation":"self"}],"product_status":[],"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-26612"},{"type":"PACKAGE","url":"https://github.com/apache/hadoop"},{"type":"WEB","url":"https://github.com/apache/hadoop/commits/rel/release-2.10.2/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/FileUtil.java"},{"type":"WEB","url":"https://github.com/apache/hadoop/commits/rel/release-3.2.3/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/FileUtil.java"},{"type":"WEB","url":"https://github.com/apache/hadoop/commits/rel/release-3.3.3/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/FileUtil.java"},{"type":"WEB","url":"https://github.com/apache/hadoop/commits/rel/release-3.4.0/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/FileUtil.java"},{"type":"WEB","url":"https://issues.apache.org/jira/browse/HADOOP-18317"},{"type":"WEB","url":"https://lists.apache.org/thread/hslo7wzw2449gv1jyjk8g6ttd7935fyz"},{"type":"WEB","url":"https://security.netapp.com/advisory/ntap-20220519-0004"}]},{"provider":"redhat-vex","source_id":"CVE-2022-26612","relation":"self","url":"https://access.redhat.com/security/cve/CVE-2022-26612","license":"CC-BY-4.0","published_at":"2022-04-07T00:00:00Z","modified_at":"2025-07-10T05:29:23Z","summary":"hadoop: Arbitrary file write in FileUtil#unpackEntries on Windows","details":"A flaw was found in Apache Hadoop, where an unTar function bypasses a check. This flaw allows an attacker to write outside of the expected base directory on Windows.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"CVE-2022-26612"},{"type":"Red Hat","score":"Important","source":"CVE-2022-26612"}],"affected":[{"ecosystem":"Red Hat:logging:5","package":"hadoop-common","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2022-26612","relation":"self"}],"product_status":[{"vendor":"Red Hat","product":"A-MQ Clients 2","cpe":"cpe:/a:redhat:a_mq_clients:2","status":"not_affected","packages":["hadoop"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2022-26612"},{"vendor":"Red Hat","product":"Logging Subsystem for Red Hat OpenShift","cpe":"cpe:/a:redhat:logging:5","status":"affected","packages":["hadoop-common"],"package_count":1,"fixed":[],"advisories":[],"note":"Affected","provider":"redhat-vex","source":"CVE-2022-26612"},{"vendor":"Red Hat","product":"Red Hat AMQ Broker 7","cpe":"cpe:/a:redhat:amq_broker:7","status":"not_affected","packages":["hadoop"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2022-26612"},{"vendor":"Red Hat","product":"Red Hat Advanced Cluster Management for Kubernetes 2","cpe":"cpe:/a:redhat:acm:2","status":"not_affected","packages":["rhacm2/volsync-mover-rclone-rhel8"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2022-26612"},{"vendor":"Red Hat","product":"Red Hat Data Grid 8","cpe":"cpe:/a:redhat:jboss_data_grid:8","status":"not_affected","packages":["hadoop"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2022-26612"},{"vendor":"Red Hat","product":"Red Hat Fuse 7","cpe":"cpe:/a:redhat:jboss_fuse:7","status":"not_affected","packages":["hadoop"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2022-26612"},{"vendor":"Red Hat","product":"Red Hat Integration Camel K 1","cpe":"cpe:/a:redhat:camel_k:1","status":"affected","packages":["hadoop"],"package_count":1,"fixed":[],"advisories":[],"note":"Will not fix","provider":"redhat-vex","source":"CVE-2022-26612"},{"vendor":"Red Hat","product":"Red Hat Integration Camel Quarkus 1","cpe":"cpe:/a:redhat:camel_quarkus:2","status":"affected","packages":["hadoop"],"package_count":1,"fixed":[],"advisories":[],"note":"Will not fix","provider":"redhat-vex","source":"CVE-2022-26612"},{"vendor":"Red Hat","product":"Red Hat Integration Data Virtualisation Operator","cpe":"cpe:/a:redhat:integration:1","status":"affected","packages":["hadoop"],"package_count":1,"fixed":[],"advisories":[],"note":"Out of support scope","provider":"redhat-vex","source":"CVE-2022-26612"},{"vendor":"Red Hat","product":"Red Hat JBoss Data Grid 7","cpe":"cpe:/a:redhat:jboss_data_grid:7","status":"affected","packages":["hadoop"],"package_count":1,"fixed":[],"advisories":[],"note":"Out of support scope","provider":"redhat-vex","source":"CVE-2022-26612"},{"vendor":"Red Hat","product":"Red Hat JBoss Data Virtualization 6","cpe":"cpe:/a:redhat:jboss_data_virtualization:6","status":"affected","packages":["hadoop"],"package_count":1,"fixed":[],"advisories":[],"note":"Out of support scope","provider":"redhat-vex","source":"CVE-2022-26612"},{"vendor":"Red Hat","product":"Red Hat JBoss Enterprise Application Platform 7","cpe":"cpe:/a:redhat:jboss_enterprise_application_platform:7","status":"not_affected","packages":["hadoop-core"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2022-26612"},{"vendor":"Red Hat","product":"Red Hat JBoss Enterprise Application Platform Expansion Pack","cpe":"cpe:/a:redhat:jbosseapxp","status":"not_affected","packages":["hadoop"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2022-26612"},{"vendor":"Red Hat","product":"Red Hat JBoss Fuse 6","cpe":"cpe:/a:redhat:jboss_fuse:6","status":"affected","packages":["hadoop"],"package_count":1,"fixed":[],"advisories":[],"note":"Out of support scope","provider":"redhat-vex","source":"CVE-2022-26612"},{"vendor":"Red Hat","product":"Red Hat JBoss Fuse Service Works 6","cpe":"cpe:/a:redhat:jboss_fuse_service_works:6","status":"affected","packages":["hadoop"],"package_count":1,"fixed":[],"advisories":[],"note":"Out of support scope","provider":"redhat-vex","source":"CVE-2022-26612"},{"vendor":"Red Hat","product":"Red Hat JBoss Operations Network 3","cpe":"cpe:/a:redhat:jboss_operations_network:3","status":"affected","packages":["hadoop"],"package_count":1,"fixed":[],"advisories":[],"note":"Out of support scope","provider":"redhat-vex","source":"CVE-2022-26612"},{"vendor":"Red Hat","product":"Red Hat OpenShift Container Platform 4","cpe":"cpe:/a:redhat:openshift:4","status":"affected","packages":["openshift4/ose-metering-hadoop"],"package_count":1,"fixed":[],"advisories":[],"note":"Affected","provider":"redhat-vex","source":"CVE-2022-26612"},{"vendor":"Red Hat","product":"streams for Apache Kafka","cpe":"cpe:/a:redhat:amq_streams:1","status":"not_affected","packages":["hadoop"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2022-26612"}],"references":[{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2022/cve-2022-26612.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2022-26612"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2073923"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2022-26612"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-26612"}]}],"references":[{"type":"WEB","url":"https://lists.apache.org/thread/hslo7wzw2449gv1jyjk8g6ttd7935fyz"},{"type":"WEB","url":"https://security.netapp.com/advisory/ntap-20220519-0004/"},{"type":"WEB","url":"https://www.suse.com/security/cve/CVE-2022-26612"},{"type":"WEB","url":"https://www.suse.com/support/security/rating/"},{"type":"WEB","url":"https://bugzilla.suse.com/1198236"},{"type":"ADVISORY","url":"https://scout.docker.com/v/DHI-wlip-3k67-7wt2-khgq"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-26612"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-gx2c-fvhc-ph4j"},{"type":"ADVISORY","url":"https://inthewild.io/vuln/CVE-2022-26612"},{"type":"ADVISORY","url":"https://access.redhat.com/security/cve/CVE-2022-26612"},{"type":"PACKAGE","url":"https://github.com/apache/hadoop"},{"type":"WEB","url":"https://github.com/apache/hadoop/commits/rel/release-2.10.2/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/FileUtil.java"},{"type":"WEB","url":"https://github.com/apache/hadoop/commits/rel/release-3.2.3/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/FileUtil.java"},{"type":"WEB","url":"https://github.com/apache/hadoop/commits/rel/release-3.3.3/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/FileUtil.java"},{"type":"WEB","url":"https://github.com/apache/hadoop/commits/rel/release-3.4.0/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/FileUtil.java"},{"type":"WEB","url":"https://issues.apache.org/jira/browse/HADOOP-18317"},{"type":"WEB","url":"https://security.netapp.com/advisory/ntap-20220519-0004"},{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2022/cve-2022-26612.json"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2073923"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2022-26612"}],"sources":[{"provider":"csaf-bsi","source_id":"WID-SEC-W-2024-0794","url":"https://wid.cert-bund.de/portal/wid/securityadvisory?name=WID-SEC-2024-0794","license":"TLP:CLEAR, mirroring permitted","modified_at":"2026-08-11T22:00:00Z","relation":"upstream"},{"provider":"cvelistv5","source_id":"CVE-2022-26612","url":"https://www.cve.org/CVERecord?id=CVE-2022-26612","license":"CC-BY-4.0","modified_at":"2024-08-03T05:11:43.529Z","relation":"self"},{"provider":"csaf-suse","source_id":"CVE-2022-26612","url":"https://www.suse.com/security/cve/CVE-2022-26612/","license":"TLP:CLEAR, mirroring permitted","modified_at":"2025-04-25T03:42:50Z","relation":"self"},{"provider":"nvd","source_id":"CVE-2022-26612","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-26612","relation":"self"},{"provider":"osv","source_id":"DHI-wlip-3k67-7wt2-khgq","url":"https://osv.dev/vulnerability/DHI-wlip-3k67-7wt2-khgq","license":"Apache-2.0","modified_at":"2026-11-17T06:31:44.653011Z","relation":"self"},{"provider":"osv","source_id":"GHSA-gx2c-fvhc-ph4j","url":"https://osv.dev/vulnerability/GHSA-gx2c-fvhc-ph4j","license":"CC-BY-4.0","modified_at":"2025-10-01T14:55:55.727257Z","relation":"self"},{"provider":"redhat-vex","source_id":"CVE-2022-26612","url":"https://access.redhat.com/security/cve/CVE-2022-26612","license":"CC-BY-4.0","modified_at":"2025-07-10T05:29:23Z","relation":"self"}]}
