{"api_version":"1","generated_at":"2026-04-23T00:59:22+00:00","cve":"CVE-2021-21706","urls":{"html":"https://cve.report/CVE-2021-21706","api":"https://cve.report/api/cve/CVE-2021-21706.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2021-21706","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-21706"},"summary":{"title":"CVE-2021-21706","description":"In PHP versions 7.3.x below 7.3.31, 7.4.x below 7.4.24 and 8.0.x below 8.0.11, in Microsoft Windows environment, ZipArchive::extractTo may be tricked into writing a file outside target directory when extracting a ZIP file, thus potentially causing files to be created or overwritten, subject to OS permissions.","state":"PUBLIC","assigner":"security@php.net","published_at":"2021-10-04 04:15:00","updated_at":"2021-11-03 20:24:00"},"problem_types":["CWE-22"],"metrics":[],"references":[{"url":"https://security.netapp.com/advisory/ntap-20211029-0007/","name":"https://security.netapp.com/advisory/ntap-20211029-0007/","refsource":"CONFIRM","tags":[],"title":"CVE-2021-21706 PHP Vulnerability in NetApp Products | NetApp Product Security","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://bugs.php.net/bug.php?id=81420","name":"N/A","refsource":"CONFIRM","tags":[],"title":"PHP :: Sec Bug #81420 :: ZipArchive::extractTo may extract outside of destination dir","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-21706","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-21706","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[{"source":"LEGACY","value":"reported by vi at hackberry dot xyz","lang":""}],"nvd_cpes":[{"cve_year":"2021","cve_id":"21706","vulnerable":"-1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"microsoft","cpe5":"windows","cpe6":"-","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2021","cve_id":"21706","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"php","cpe5":"php","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2021-21706","qid":"150475","title":"PHP Path Traversal Vulnerability (CVE-2021-21706)"},{"cve":"CVE-2021-21706","qid":"38851","title":"Hypertext Preprocessor (PHP) Security Update"},{"cve":"CVE-2021-21706","qid":"501144","title":"Alpine Linux Security Update for php7"},{"cve":"CVE-2021-21706","qid":"501663","title":"Alpine Linux Security Update for php7"},{"cve":"CVE-2021-21706","qid":"501666","title":"Alpine Linux Security Update for php8"},{"cve":"CVE-2021-21706","qid":"502331","title":"Alpine Linux Security Update for php81"},{"cve":"CVE-2021-21706","qid":"752898","title":"SUSE Enterprise Linux Security Update for php7 (SUSE-SU-2022:4069-1)"},{"cve":"CVE-2021-21706","qid":"752901","title":"SUSE Enterprise Linux Security Update for php74 (SUSE-SU-2022:4068-1)"}]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"security@php.net","DATE_PUBLIC":"2021-09-21T11:32:00.000Z","ID":"CVE-2021-21706","STATE":"PUBLIC","TITLE":"ZipArchive::extractTo may extract outside of destination dir"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"PHP","version":{"version_data":[{"platform":"Windows","version_affected":"<","version_name":"7.3.x","version_value":"7.3.31"},{"platform":"Windows","version_affected":"<","version_name":"7.4.x","version_value":"7.4.24"},{"platform":"Windows","version_affected":"<","version_name":"8.0.X","version_value":"8.0.11"}]}}]},"vendor_name":"PHP Group"}]}},"credit":[{"lang":"eng","value":"reported by vi at hackberry dot xyz"}],"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"In PHP versions 7.3.x below 7.3.31, 7.4.x below 7.4.24 and 8.0.x below 8.0.11, in Microsoft Windows environment, ZipArchive::extractTo may be tricked into writing a file outside target directory when extracting a ZIP file, thus potentially causing files to be created or overwritten, subject to OS permissions."}]},"generator":{"engine":"Vulnogram 0.0.9"},"impact":{"cvss":{"attackComplexity":"HIGH","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":5.3,"baseSeverity":"MEDIUM","confidentialityImpact":"NONE","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N","version":"3.1"}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-24 Path Traversal: '../filedir'"}]}]},"references":{"reference_data":[{"refsource":"MISC","url":"https://bugs.php.net/bug.php?id=81420","name":"https://bugs.php.net/bug.php?id=81420"},{"refsource":"CONFIRM","name":"https://security.netapp.com/advisory/ntap-20211029-0007/","url":"https://security.netapp.com/advisory/ntap-20211029-0007/"}]},"source":{"defect":["https://bugs.php.net/bug.php?id=81420"],"discovery":"EXTERNAL"}},"nvd":{"publishedDate":"2021-10-04 04:15:00","lastModifiedDate":"2021-11-03 20:24:00","problem_types":["CWE-22"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"REQUIRED","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"HIGH","availabilityImpact":"NONE","baseScore":6.5,"baseSeverity":"MEDIUM"},"exploitabilityScore":2.8,"impactScore":3.6},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:N/AC:M/Au:N/C:N/I:P/A:N","accessVector":"NETWORK","accessComplexity":"MEDIUM","authentication":"NONE","confidentialityImpact":"NONE","integrityImpact":"PARTIAL","availabilityImpact":"NONE","baseScore":4.3},"severity":"MEDIUM","exploitabilityScore":8.6,"impactScore":2.9,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":true}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"AND","children":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:php:php:*:*:*:*:*:*:*:*","versionStartIncluding":"7.3.0","versionEndExcluding":"7.3.31","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:php:php:*:*:*:*:*:*:*:*","versionStartIncluding":"7.4.0","versionEndExcluding":"7.4.24","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:php:php:*:*:*:*:*:*:*:*","versionStartIncluding":"8.0.0","versionEndExcluding":"8.0.11","cpe_name":[]}]},{"operator":"OR","children":[],"cpe_match":[{"vulnerable":false,"cpe23Uri":"cpe:2.3:o:microsoft:windows:-:*:*:*:*:*:*:*","cpe_name":[]}]}],"cpe_match":[]}]}},"legacy_mitre":{"record":{"CveYear":"2021","CveId":"21706","Ordinal":"196395","Title":"CVE-2021-21706","CVE":"CVE-2021-21706","Year":"2021"},"notes":[{"CveYear":"2021","CveId":"21706","Ordinal":"1","NoteData":"In PHP versions 7.3.x below 7.3.31, 7.4.x below 7.4.24 and 8.0.x below 8.0.11, in Microsoft Windows environment, ZipArchive::extractTo may be tricked into writing a file outside target directory when extracting a ZIP file, thus potentially causing files to be created or overwritten, subject to OS permissions.","Type":"Description","Title":null},{"CveYear":"2021","CveId":"21706","Ordinal":"2","NoteData":"2021-10-04","Type":"Other","Title":"Published"},{"CveYear":"2021","CveId":"21706","Ordinal":"3","NoteData":"2021-10-29","Type":"Other","Title":"Modified"}]}}}