CVE-2023-0568

Array overrun in common path resolve code

Published Feb 16, 2023 CVSS 3.1 · 7.5 High EPSS 1.2% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-3345-1 php7.3 security update
Debian DSA Debian DSA DSA-5363-1 php7.4 security update
EUVD EUVD EUVD-2023-12610 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.
Ubuntu USN Ubuntu USN USN-5902-1 PHP vulnerabilities
Ubuntu USN Ubuntu USN USN-5905-1 PHP vulnerabilities
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.  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.
Weaknesses

Sources

Status
PUBLISHED
Assigner
php
Published
Updated
Mar 18, 2025, 2:57 PM
Reserved
Jan 29, 2023, 7:46 AM
Status
Modified
Published
Feb 16, 2023, 7:15 AM
Modified
Jun 17, 2026, 5:25 AM
Severity
Moderate
Public date
Feb 15, 2023, 12:00 AM