VDB

CVE-2023-0568

CVE-2023-0568 PUBLISHED CVSS 7.5 HIGH

Array overrun in common path resolve code

Reported by php · Published February 16, 2023

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
php-embeddedAmazon Linux5.4.16-46.amzn2.0.6
php-snmpAmazon Linux5.4.16-46.amzn2.0.6
php8.1-embeddedAmazon Linux8.1.16-1.amzn2023.0.1
php-xmlrpcAmazon Linux5.4.16-46.amzn2.0.6
php-mbstringAmazon Linux5.4.16-46.amzn2.0.6
php8.1-commonAmazon Linux8.1.16-1.amzn2023.0.1
php8.1-ffiAmazon Linux8.1.16-1.amzn2023.0.1
php8.1-soapAmazon Linux8.1.16-1.amzn2023.0.1
php-cliAmazon Linux5.4.16-46.amzn2.0.6
php8.1-ldapAmazon Linux8.1.16-1.amzn2023.0.1
php-pdoAmazon Linux5.4.16-46.amzn2.0.6
php8.1-mysqlndAmazon Linux8.1.16-1.amzn2023.0.1

49 more packages have a fixed version. See every fix in Lookup.

Risk scores

CVSS 3.1
7.5
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H

Affected products

VendorProductVersions
PHP GroupPHP8.0.x, 8.1.x, 8.2.x
PHP GroupPHP8.0.x, 8.1.x, 8.2.x

Timeline

  • Feb 14, 2023 CVE Published
  • Feb 16, 2023 EPSS Score (30 in total, the first dated here)
  • Feb 16, 2023 PoC Published (2 in total, the first dated here)
  • May 22, 2026 Coalition ESS Score
  • Jun 2, 2026 Security Advisory (10 in total, the first dated here)
  • Nov 22, 2026 Distribution Patch (8 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2023-0568
vulnetix vdb fixes CVE-2023-0568

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2023-0568/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›