CVE-2023-0568

High

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.

SeverityHigh
CVSS7.5
Exploit probability—
ProductPhp
PublishedFeb 16, 2023
First seenFeb 16, 2023
Weakness typeCWE-131CWE-131

How to fix

Update
  • php php8.0.28, 8.1.16, 8.2.3 or later

Affected products

ProductAffected versionsFixed in
php php8.0.0 ≤ v < 8.0.28, 8.1.0 ≤ v < 8.1.16, 8.2.0 ≤ v < 8.2.38.0.28, 8.1.16, 8.2.3

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.