Show plain JSON{"containers": {"cna": {"affected": [{"platforms": ["Windows"], "product": "Apache Hadoop", "vendor": "Apache Software Foundation", "versions": [{"lessThan": "3.2.3", "status": "affected", "version": "unspecified", "versionType": "custom"}, {"status": "affected", "version": "3.3.1"}, {"status": "affected", "version": "3.3.2"}, {"lessThan": "All*", "status": "unaffected", "version": "3.4", "versionType": "custom"}]}], "credits": [{"lang": "en", "value": "This issue was reported by a member of GitHub Security Lab, Jaroslav Loba\u010devski (https://github.com/JarLob)."}], "descriptions": [{"lang": "en", "value": "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"}], "metrics": [{"other": {"content": {"other": "high"}, "type": "unknown"}}], "problemTypes": [{"descriptions": [{"description": "unpackEntries during TAR extraction follows symbolic links which allows writing outside expected base directory on Windows", "lang": "en", "type": "text"}]}], "providerMetadata": {"dateUpdated": "2022-05-19T19:06:26", "orgId": "f0158376-9dc2-43b6-827c-5f631a4d8d09", "shortName": "apache"}, "references": [{"tags": ["x_refsource_MISC"], "url": "https://lists.apache.org/thread/hslo7wzw2449gv1jyjk8g6ttd7935fyz"}, {"tags": ["x_refsource_CONFIRM"], "url": "https://security.netapp.com/advisory/ntap-20220519-0004/"}], "source": {"discovery": "UNKNOWN"}, "timeline": [{"lang": "en", "time": "2022-02-09T00:00:00", "value": "Issue was reported to Apache Hadoop security team."}, {"lang": "en", "time": "2022-02-17T00:00:00", "value": "First iteration of the fix was proposed."}, {"lang": "en", "time": "2022-02-21T00:00:00", "value": "Involved the Github Security team for reviewing the fix."}, {"lang": "en", "time": "2022-02-24T00:00:00", "value": "Second iteration of the fix was proposed."}, {"lang": "en", "time": "2022-03-08T00:00:00", "value": "Third iteration of the fix was proposed."}, {"lang": "en", "time": "2022-03-10T00:00:00", "value": "Issue was fixed and committed to the trunk branch."}, {"lang": "en", "time": "2022-04-01T00:00:00", "value": "Requested review of the announcement from the reporter."}, {"lang": "en", "time": "2022-04-07T00:00:00", "value": "Announcement review by the reporter completed."}], "title": "Arbitrary file write in FileUtil#unpackEntries on Windows", "x_generator": {"engine": "Vulnogram 0.0.9"}, "x_legacyV4Record": {"CVE_data_meta": {"ASSIGNER": "security@apache.org", "ID": "CVE-2022-26612", "STATE": "PUBLIC", "TITLE": "Arbitrary file write in FileUtil#unpackEntries on Windows"}, "affects": {"vendor": {"vendor_data": [{"product": {"product_data": [{"product_name": "Apache Hadoop", "version": {"version_data": [{"platform": "Windows", "version_affected": "<", "version_value": "3.2.3"}, {"platform": "Windows", "version_affected": "=", "version_value": "3.3.1"}, {"platform": "Windows", "version_affected": "=", "version_value": "3.3.2"}, {"platform": "Windows", "version_affected": "!>=", "version_name": "All", "version_value": "3.4"}]}}]}, "vendor_name": "Apache Software Foundation"}]}}, "credit": [{"lang": "eng", "value": "This issue was reported by a member of GitHub Security Lab, Jaroslav Loba\u010devski (https://github.com/JarLob)."}], "data_format": "MITRE", "data_type": "CVE", "data_version": "4.0", "description": {"description_data": [{"lang": "eng", "value": "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"}]}, "generator": {"engine": "Vulnogram 0.0.9"}, "impact": [{"other": "high"}], "problemtype": {"problemtype_data": [{"description": [{"lang": "eng", "value": "unpackEntries during TAR extraction follows symbolic links which allows writing outside expected base directory on Windows"}]}]}, "references": {"reference_data": [{"name": "https://lists.apache.org/thread/hslo7wzw2449gv1jyjk8g6ttd7935fyz", "refsource": "MISC", "url": "https://lists.apache.org/thread/hslo7wzw2449gv1jyjk8g6ttd7935fyz"}, {"name": "https://security.netapp.com/advisory/ntap-20220519-0004/", "refsource": "CONFIRM", "url": "https://security.netapp.com/advisory/ntap-20220519-0004/"}]}, "source": {"discovery": "UNKNOWN"}, "timeline": [{"lang": "en", "time": "2022-02-09T00:00:00", "value": "Issue was reported to Apache Hadoop security team."}, {"lang": "en", "time": "2022-02-17T00:00:00", "value": "First iteration of the fix was proposed."}, {"lang": "en", "time": "2022-02-21T00:00:00", "value": "Involved the Github Security team for reviewing the fix."}, {"lang": "en", "time": "2022-02-24T00:00:00", "value": "Second iteration of the fix was proposed."}, {"lang": "en", "time": "2022-03-08T00:00:00", "value": "Third iteration of the fix was proposed."}, {"lang": "en", "time": "2022-03-10T00:00:00", "value": "Issue was fixed and committed to the trunk branch."}, {"lang": "en", "time": "2022-04-01T00:00:00", "value": "Requested review of the announcement from the reporter."}, {"lang": "en", "time": "2022-04-07T00:00:00", "value": "Announcement review by the reporter completed."}]}}, "adp": [{"providerMetadata": {"orgId": "af854a3a-2127-422b-91ae-364da2661108", "shortName": "CVE", "dateUpdated": "2024-08-03T05:11:43.529Z"}, "title": "CVE Program Container", "references": [{"tags": ["x_refsource_MISC", "x_transferred"], "url": "https://lists.apache.org/thread/hslo7wzw2449gv1jyjk8g6ttd7935fyz"}, {"tags": ["x_refsource_CONFIRM", "x_transferred"], "url": "https://security.netapp.com/advisory/ntap-20220519-0004/"}]}]}, "cveMetadata": {"assignerOrgId": "f0158376-9dc2-43b6-827c-5f631a4d8d09", "assignerShortName": "apache", "cveId": "CVE-2022-26612", "datePublished": "2022-04-07T18:20:12", "dateReserved": "2022-03-07T00:00:00", "dateUpdated": "2024-08-03T05:11:43.529Z", "state": "PUBLISHED"}, "dataType": "CVE_RECORD", "dataVersion": "5.1"}