CVEvulnerability

CVE-2023-0568

8.1 HIGH Published 2023-02-16 Modified 2026-06-17 Official page ↗
Status
Modified
Published
2023-02-16
Last modified
2026-06-17
Assigner
[email protected]
CVSS 3.1 ([email protected])
7.5 HIGH — CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
CVSS 3.1 ([email protected])
8.1 HIGH — CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Weaknesses
CWE-131, CWE-770

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.

Affected configurations

• php php (>= 8.0.0 < 8.0.28) • php php (>= 8.1.0 < 8.1.16) • php php (>= 8.2.0 < 8.2.3)

Related

Weakness · CWE (2)

  • CWE-131 Incorrect Calculation of Buffer Size weakness
  • CWE-770 Allocation of Resources Without Limits or Throttling weakness

References