CVE-2023-0568
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.
| Package | Ecosystem | Fixed in |
|---|---|---|
| php-embedded | Amazon Linux | 5.4.16-46.amzn2.0.6 |
| php-snmp | Amazon Linux | 5.4.16-46.amzn2.0.6 |
| php8.1-embedded | Amazon Linux | 8.1.16-1.amzn2023.0.1 |
| php-xmlrpc | Amazon Linux | 5.4.16-46.amzn2.0.6 |
| php-mbstring | Amazon Linux | 5.4.16-46.amzn2.0.6 |
| php8.1-common | Amazon Linux | 8.1.16-1.amzn2023.0.1 |
| php8.1-ffi | Amazon Linux | 8.1.16-1.amzn2023.0.1 |
| php8.1-soap | Amazon Linux | 8.1.16-1.amzn2023.0.1 |
| php-cli | Amazon Linux | 5.4.16-46.amzn2.0.6 |
| php8.1-ldap | Amazon Linux | 8.1.16-1.amzn2023.0.1 |
| php-pdo | Amazon Linux | 5.4.16-46.amzn2.0.6 |
| php8.1-mysqlnd | Amazon Linux | 8.1.16-1.amzn2023.0.1 |
49 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| PHP Group | PHP | 8.0.x, 8.1.x, 8.2.x |
| PHP Group | PHP | 8.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