{"id":"CVE-2020-7063","state":"PUBLISHED","title":"Files added to tar with Phar::buildFromIterator have all-access permissions","description":"In PHP versions 7.2.x below 7.2.28, 7.3.x below 7.3.15 and 7.4.x below 7.4.3, when creating PHAR archive using PharData::buildFromIterator() function, the files are added with default permissions (0666, or all access) even if the original files on the filesystem were with more restrictive permissions. This may result in files having more lax permissions than intended when such archive is extracted.","publishedAt":"2020-02-27T20:25:15.606Z","updatedAt":"2024-09-16T16:49:14.274Z","severity":{"score":5.5,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N","source":"php"},"assigner":"php","products":["PHP Group PHP"],"affected":[{"vendor":"PHP Group","product":"PHP","versions":[{"version":"7.3.x","status":"affected","lessThan":"7.3.15","versionType":"custom"},{"version":"7.4.x","status":"affected","lessThan":"7.4.3","versionType":"custom"},{"version":"7.2.x","status":"affected","lessThan":"7.2.28","versionType":"custom"}]}],"references":["https://bugs.php.net/bug.php?id=79082","http://lists.opensuse.org/opensuse-security-announce/2020-03/msg00023.html","https://security.gentoo.org/glsa/202003-57","https://lists.debian.org/debian-lts-announce/2020/03/msg00034.html","https://usn.ubuntu.com/4330-1/","https://www.debian.org/security/2020/dsa-4717","https://www.debian.org/security/2020/dsa-4719","https://www.tenable.com/security/tns-2021-14"],"weaknesses":["CWE-281"],"ingestedAt":"2026-10-29T19:47:41.446Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2020/7xxx/CVE-2020-7063.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2020-7063","state":"PUBLISHED","datePublished":"2020-02-27T20:25:15.606Z","dateUpdated":"2024-09-16T16:49:14.274Z","assignerShortName":"php","assignerOrgId":"dd77f84a-d19a-4638-8c3d-a322d820ed2b","dateReserved":"2020-01-15T00:00:00.000Z"},"containers":{"cna":{"title":"Files added to tar with Phar::buildFromIterator have all-access permissions","descriptions":[{"lang":"en","value":"In PHP versions 7.2.x below 7.2.28, 7.3.x below 7.3.15 and 7.4.x below 7.4.3, when creating PHAR archive using PharData::buildFromIterator() function, the files are added with default permissions (0666, or all access) even if the original files on the filesystem were with more restrictive permissions. This may result in files having more lax permissions than intended when such archive is extracted."}],"affected":[{"vendor":"PHP Group","product":"PHP","versions":[{"version":"7.3.x","status":"affected","lessThan":"7.3.15","versionType":"custom"},{"version":"7.4.x","status":"affected","lessThan":"7.4.3","versionType":"custom"},{"version":"7.2.x","status":"affected","lessThan":"7.2.28","versionType":"custom"}]}],"references":[{"url":"https://bugs.php.net/bug.php?id=79082","tags":["x_refsource_MISC"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2020-03/msg00023.html","name":"openSUSE-SU-2020:0341","tags":["vendor-advisory","x_refsource_SUSE"]},{"url":"https://security.gentoo.org/glsa/202003-57","name":"GLSA-202003-57","tags":["vendor-advisory","x_refsource_GENTOO"]},{"url":"https://lists.debian.org/debian-lts-announce/2020/03/msg00034.html","name":"[debian-lts-announce] 20200326 [SECURITY] [DLA 2160-1] php5 security update","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://usn.ubuntu.com/4330-1/","name":"USN-4330-1","tags":["vendor-advisory","x_refsource_UBUNTU"]},{"url":"https://www.debian.org/security/2020/dsa-4717","name":"DSA-4717","tags":["vendor-advisory","x_refsource_DEBIAN"]},{"url":"https://www.debian.org/security/2020/dsa-4719","name":"DSA-4719","tags":["vendor-advisory","x_refsource_DEBIAN"]},{"url":"https://www.tenable.com/security/tns-2021-14","tags":["x_refsource_CONFIRM"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"LOCAL","availabilityImpact":"NONE","baseScore":5.5,"baseSeverity":"MEDIUM","confidentialityImpact":"HIGH","integrityImpact":"NONE","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-281","description":"CWE-281 Improper Preservation of Permissions","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"php","dateUpdated":"2021-07-22T17:07:11.000Z","orgId":"dd77f84a-d19a-4638-8c3d-a322d820ed2b"},"credits":[{"lang":"en","value":"Reported by dr at loopia dot rs"}],"datePublic":"2020-02-17T00:00:00.000Z","source":{"defect":["https://bugs.php.net/bug.php?id=79082"],"discovery":"EXTERNAL"},"workarounds":[{"lang":"en","value":"Use different Phar class functions to compose the archive, such as addFile(), or reset file permissions upon extracting files from the archive."}],"x_generator":{"engine":"Vulnogram 0.0.9"},"x_legacyV4Record":{"CVE_data_meta":{"ASSIGNER":"security@php.net","DATE_PUBLIC":"2020-02-17T16:21:00.000Z","ID":"CVE-2020-7063","STATE":"PUBLIC","TITLE":"Files added to tar with Phar::buildFromIterator have all-access permissions"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"PHP","version":{"version_data":[{"version_affected":"<","version_name":"7.3.x","version_value":"7.3.15"},{"version_affected":"<","version_name":"7.4.x","version_value":"7.4.3"},{"version_affected":"<","version_name":"7.2.x","version_value":"7.2.28"}]}}]},"vendor_name":"PHP Group"}]}},"credit":[{"lang":"eng","value":"Reported by dr at loopia dot rs"}],"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"In PHP versions 7.2.x below 7.2.28, 7.3.x below 7.3.15 and 7.4.x below 7.4.3, when creating PHAR archive using PharData::buildFromIterator() function, the files are added with default permissions (0666, or all access) even if the original files on the filesystem were with more restrictive permissions. This may result in files having more lax permissions than intended when such archive is extracted."}]},"generator":{"engine":"Vulnogram 0.0.9"},"impact":{"cvss":{"attackComplexity":"LOW","attackVector":"LOCAL","availabilityImpact":"NONE","baseScore":5.5,"baseSeverity":"MEDIUM","confidentialityImpact":"HIGH","integrityImpact":"NONE","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N","version":"3.1"}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-281 Improper Preservation of Permissions"}]}]},"references":{"reference_data":[{"name":"https://bugs.php.net/bug.php?id=79082","refsource":"MISC","url":"https://bugs.php.net/bug.php?id=79082"},{"name":"openSUSE-SU-2020:0341","refsource":"SUSE","url":"http://lists.opensuse.org/opensuse-security-announce/2020-03/msg00023.html"},{"name":"GLSA-202003-57","refsource":"GENTOO","url":"https://security.gentoo.org/glsa/202003-57"},{"name":"[debian-lts-announce] 20200326 [SECURITY] [DLA 2160-1] php5 security update","refsource":"MLIST","url":"https://lists.debian.org/debian-lts-announce/2020/03/msg00034.html"},{"name":"USN-4330-1","refsource":"UBUNTU","url":"https://usn.ubuntu.com/4330-1/"},{"name":"DSA-4717","refsource":"DEBIAN","url":"https://www.debian.org/security/2020/dsa-4717"},{"name":"DSA-4719","refsource":"DEBIAN","url":"https://www.debian.org/security/2020/dsa-4719"},{"name":"https://www.tenable.com/security/tns-2021-14","refsource":"CONFIRM","url":"https://www.tenable.com/security/tns-2021-14"}]},"source":{"defect":["https://bugs.php.net/bug.php?id=79082"],"discovery":"EXTERNAL"},"work_around":[{"lang":"en","value":"Use different Phar class functions to compose the archive, such as addFile(), or reset file permissions upon extracting files from the archive."}]}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://bugs.php.net/bug.php?id=79082","tags":["x_refsource_MISC","x_transferred"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2020-03/msg00023.html","name":"openSUSE-SU-2020:0341","tags":["vendor-advisory","x_refsource_SUSE","x_transferred"]},{"url":"https://security.gentoo.org/glsa/202003-57","name":"GLSA-202003-57","tags":["vendor-advisory","x_refsource_GENTOO","x_transferred"]},{"url":"https://lists.debian.org/debian-lts-announce/2020/03/msg00034.html","name":"[debian-lts-announce] 20200326 [SECURITY] [DLA 2160-1] php5 security update","tags":["mailing-list","x_refsource_MLIST","x_transferred"]},{"url":"https://usn.ubuntu.com/4330-1/","name":"USN-4330-1","tags":["vendor-advisory","x_refsource_UBUNTU","x_transferred"]},{"url":"https://www.debian.org/security/2020/dsa-4717","name":"DSA-4717","tags":["vendor-advisory","x_refsource_DEBIAN","x_transferred"]},{"url":"https://www.debian.org/security/2020/dsa-4719","name":"DSA-4719","tags":["vendor-advisory","x_refsource_DEBIAN","x_transferred"]},{"url":"https://www.tenable.com/security/tns-2021-14","tags":["x_refsource_CONFIRM","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-04T09:18:03.000Z"}}]}}}