High
Array overrun in common path resolve code
Type: advisorySources: OSV
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2023-0568
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 8 Nov 2026, 02:32 UTC · Revision 1
Source evidence
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.
osv:CVE-2023-0568
Complete source record
{
"id": "60b2adeb8f631f76177df8bc0b3c79a26fe0acd1495c6c225c97f6b92a5627ba",
"url": "https://osv.dev/vulnerability/CVE-2023-0568",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "Array overrun in common path resolve code",
"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.",
"evidence": "osv:CVE-2023-0568",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2023-0568",
"aliases": [
"BIT-libphp-2023-0568",
"BIT-php-2023-0568",
"BIT-php-min-2023-0568",
"CVE-2023-0568"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/php/php-src",
"type": "GIT",
"events": [
{
"introduced": "5dc92c2117cafc61daaaaa240fd46c3ac33872a4"
},
{
"fixed": "12b5ba0b1d87d2dfdb4ee213cb5d122c921f3f2f"
},
{
"introduced": "381ba9f5d0edd0c9c8ec1dea7e21d513ad08b115"
},
{
"fixed": "aa5f9f05194e534b9644ebdcfd073c1493d17d56"
},
{
"introduced": "70ee6c20ad97e02c2b8098aeea96fefbbc3ac5c2"
},
{
"fixed": "cde956a2b0592f5fd9591e423abc22f07be9d4b6"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:php:php:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "8.0.0"
},
{
"fixed": "8.0.28"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:php:php:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "8.1.0"
},
{
"fixed": "8.1.16"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:php:php:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "8.2.0"
},
{
"fixed": "8.2.3"
}
],
"source": "CPE_RANGE"
}
]
}
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-0568.json"
}
}
],
"modified": "2026-10-28T02:30:52.787332303Z",
"provider": "osv",
"references": [
"https://bugs.php.net/bug.php?id=81746",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/0xxx/CVE-2023-0568.json",
"https://nvd.nist.gov/vuln/detail/CVE-2023-0568",
"https://security.netapp.com/advisory/ntap-20230517-0001/",
"https://github.com/php/php-src"
],
"provider_metadata": {
"cwe_ids": [
"CWE-131"
],
"cna_assigner": "php",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/0xxx/CVE-2023-0568.json"
}
},
"related_cves": [
{
"value": "CVE-2023-0568",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 521816,
"published_at": "2023-02-16T06:34:04.101+00:00"
}