CVE-2023-0568: Array overrun in common path resolve code
Vulnerability summary
CVE-2023-0568 is a high (CVSS 8.1) Incorrect Calculation of Buffer Size vulnerability in php group php. EPSS estimates a 1.24% chance of exploitation in the next 30 days, higher than 69.2% of scored vulnerabilities. 1 public exploit is recorded.
Public exploit (reference, Date unknown)
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 15 · Related 8Timeline
- 16-02-2023PublishedVulnerability first disclosed.
- 18-03-2025Last modifiedVulnerability information updated.
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.
CVSS metrics
5 scores · 5 sources · 1 version- CVE.orgCNA7.5HighCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:HDiffers
- OSV · UbuntuEcosystem advisory · calculated8.1HighCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
- OSV · DebianEcosystem advisory · calculated8.1HighCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
- OSV · AlpineEcosystem advisory · calculated8.1HighCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS trend
Probability
1.24%
Chance of exploitation in the next 30 days
Percentile
69%
Versus all other CVEs
30-day change
No change 0.00 pp
From 1.24% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
1 foundExploit Reference (bugs.php.net)
Maturity: unknown
Weaknesses
CWE · root cause- CWE-131Incorrect Calculation of Buffer SizeThe product does not correctly calculate the size to be used when allocating a buffer.
- CWE-770Allocation of Resources Without Limits or ThrottlingThe product allocates a reusable resource or group of resources on behalf of an actor without imposing any intended restrictions on the size or number of resources that can be allocated.
Affected systems
Known conditions: network-reachable, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.
Ubuntu5 products
- php5All versions (No fix recorded)
- php7.0< 7.0.33-0ubuntu0.16.04.16+esm5
- php7.2< 7.2.24-0ubuntu0.18.04.17
- php7.4< 7.4.3-4ubuntu2.18
- php8.1< 8.1.2-1ubuntu2.11
Alpine4 products
- php7< 7.4.33-r1
- php8< 8.0.28-r0
- php81< 8.1.17-r0 | < 8.1.16-r0
- php82< 8.2.3-r0
Debian1 product
- php8.2< 8.2.4-1
Php1 product
- php≥ 8.0.0, < 8.0.28 | ≥ 8.1.0, < 8.1.16 | ≥ 8.2.0, < 8.2.3
Php group1 product
- php≥ 8.0.x, < 8.0.28 | ≥ 8.1.x, < 8.1.16 | ≥ 8.2.x, < 8.2.3
5 vendors · 12 products