Skip to content
7.5 High

CVE-2023-0568 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…

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

Product Affected versions Fixed in
PHP 8.2 8.2.x → < 8.2.3 8.2.3
PHP 8.1 8.1.x → < 8.1.16 8.1.16
PHP 8.0 8.0.x → < 8.0.28 8.0.28

References

Timeline

  1. Published
  2. Last modified
The 103 CVEs of PHP →
Track this CVE