CVE-2023-0568

Array overrun in common path resolve code

State
Published
Severity
7.5 High
Published
Feb 16, 2023
Updated
Mar 18, 2025
Reserved
Jan 29, 2023

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.17.5 HighCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:Hphp

Weaknesses

  • CWE-131 Incorrect Calculation of Buffer Size

Affected Products

ProductVersions
PHPPHP Group
  • 8.0.x to before 8.0.28Affected
  • 8.1.x to before 8.1.16Affected
  • 8.2.x to before 8.2.3Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.