CVE Program
CNA-CVE-2023-0568
Array overrun in common path resolve code
Details
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 packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| PHP | php | From 8.0 before 8.0.28 (fixed in 8.0.28) From 8.1 before 8.1.16 (fixed in 8.1.16) From 8.2 before 8.2.3 (fixed in 8.2.3) |