BlogSafe.org

PHP CVEs

Vulnerabilities in the PHP language itself, and which PHP versions they affect.

← Back to CVE list

CVE-2023-0568

HIGH 8.1 CVSS 3.1
Published
February 16, 2023
Last modified
June 17, 2026
NVD status
Modified
Reported by
security@php.net
Weakness
CWE-131, CWE-770
CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

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 products and versions

  • PHP — From 8.0.0 (including) to 8.0.28 (excluding)
  • PHP — From 8.1.0 (including) to 8.1.16 (excluding)
  • PHP — From 8.2.0 (including) to 8.2.3 (excluding)

References