CVE-2023-0568

published 16 Feb 2023 · updated 14 Nov 2026

Array overrun in common path resolve code

7.5HighCVSS 7.5EPSS 1%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in PHP 8.0.28, PHP 8.1.16 and PHP 8.2.3.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
PHP GroupPHP>=8.0.x <8.0.28, >=8.1.x <8.1.16, >=8.2.x <8.2.38.0.28, 8.1.16, 8.2.3

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in PHP, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2023-0568 severity on Zeptric[![CVE-2023-0568](https://zeptric.io/badge/cve/CVE-2023-0568.svg)](https://zeptric.io/cve/CVE-2023-0568)