CVE-2023-0568

Summary

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 Software

VendorProductVersion RangeStatus
PHP GroupPHP8.0.x < 8.0.28affected
PHP GroupPHP8.1.x < 8.1.16affected
PHP GroupPHP8.2.x < 8.2.3affected

Weaknesses

  • CWE-131: CWE-131 Incorrect Calculation of Buffer Size

ADP Enrichment

CVE Program Container

Additional References

CISA ADP Vulnrichment

  • SSVC:
  • Exploitation: none
    • Automatable: no
    • Technical Impact: total

References