{"id":"CVE-2023-0568","state":"PUBLISHED","title":"Array overrun in common path resolve code","description":"In PHP 8.0.X before 8.0.28, 8.1.X before 8.1.16 and 8.2.X before 8.2.3, core path resolution function allocate buffer one byte too small. When resolving paths with lengths close to system MAXPATHLEN setting, this may lead to the byte after the allocated buffer being overwritten with NUL value, which might lead to unauthorized data access or modification.","publishedAt":"2023-02-16T06:34:04.101Z","updatedAt":"2025-03-18T14:57:10.966Z","severity":{"score":7.5,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","source":"php"},"assigner":"php","products":["PHP Group PHP"],"affected":[{"vendor":"PHP Group","product":"PHP","defaultStatus":"affected","versions":[{"version":"8.0.x","status":"affected","lessThan":"8.0.28","versionType":"semver"},{"version":"8.1.x","status":"affected","lessThan":"8.1.16","versionType":"semver"},{"version":"8.2.x","status":"affected","lessThan":"8.2.3","versionType":"semver"}],"repo":"https://github.com/php/php-src"}],"references":["https://bugs.php.net/bug.php?id=81746","https://security.netapp.com/advisory/ntap-20230517-0001/"],"weaknesses":["CWE-131"],"ingestedAt":"2026-10-29T20:05:36.141Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2023/0xxx/CVE-2023-0568.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2023-0568","state":"PUBLISHED","datePublished":"2023-02-16T06:34:04.101Z","dateUpdated":"2025-03-18T14:57:10.966Z","assignerShortName":"php","assignerOrgId":"dd77f84a-d19a-4638-8c3d-a322d820ed2b","dateReserved":"2023-01-29T07:46:39.833Z"},"containers":{"cna":{"title":"Array overrun in common path resolve code","descriptions":[{"lang":"en","value":"In PHP 8.0.X before 8.0.28, 8.1.X before 8.1.16 and 8.2.X before 8.2.3, core path resolution function allocate buffer one byte too small. When resolving paths with lengths close to system MAXPATHLEN setting, this may lead to the byte after the allocated buffer being overwritten with NUL value, which might lead to unauthorized data access or modification."}],"affected":[{"vendor":"PHP Group","product":"PHP","defaultStatus":"affected","versions":[{"version":"8.0.x","status":"affected","lessThan":"8.0.28","versionType":"semver"},{"version":"8.1.x","status":"affected","lessThan":"8.1.16","versionType":"semver"},{"version":"8.2.x","status":"affected","lessThan":"8.2.3","versionType":"semver"}],"repo":"https://github.com/php/php-src"}],"references":[{"url":"https://bugs.php.net/bug.php?id=81746"},{"url":"https://security.netapp.com/advisory/ntap-20230517-0001/"}],"metrics":[{"cvssV3_1":{"attackComplexity":"HIGH","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":7.5,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","version":"3.1"},"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-131","description":"CWE-131 Incorrect Calculation of Buffer Size","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"php","orgId":"dd77f84a-d19a-4638-8c3d-a322d820ed2b","dateUpdated":"2023-05-17T19:06:34.405Z"},"credits":[{"lang":"en","type":"finder","user":"00000000-0000-4000-9000-000000000000","value":"Niels Dossche"}],"datePublic":"2023-02-13T05:40:00.000Z","impacts":[{"capecId":"CAPEC-100","descriptions":[{"lang":"en","value":"CAPEC-100 Overflow Buffers"}]}],"source":{"discovery":"EXTERNAL"},"x_generator":{"engine":"Vulnogram 0.1.0-dev"}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://bugs.php.net/bug.php?id=81746","tags":["x_transferred"]},{"url":"https://security.netapp.com/advisory/ntap-20230517-0001/","tags":["x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-02T05:17:49.834Z"}},{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2025-03-18T14:56:58.407023Z","id":"CVE-2023-0568","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-03-18T14:57:10.966Z"}}]}}}