CVE & CISA-KEV Catalog

CVE-2023-0568

HIGH
7.5
CVSS v3
NVD

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.

How to fix

Remediation Available
phpAmazon
Fixed in:0:5.4.16-46.amzn2.0.6
Fixed in:0:5.4.16-46.amzn2.0.6
Fixed in:0:5.4.16-46.amzn2.0.6
php-bcmathAmazon
Fixed in:0:5.4.16-46.amzn2.0.6
Fixed in:0:5.4.16-46.amzn2.0.6
Fixed in:0:5.4.16-46.amzn2.0.6
php-cliAmazon
Fixed in:0:5.4.16-46.amzn2.0.6
Fixed in:0:5.4.16-46.amzn2.0.6
Fixed in:0:5.4.16-46.amzn2.0.6
php-commonAmazon
Fixed in:0:5.4.16-46.amzn2.0.6
Fixed in:0:5.4.16-46.amzn2.0.6
Fixed in:0:5.4.16-46.amzn2.0.6
php-dbaAmazon
Fixed in:0:5.4.16-46.amzn2.0.6
Fixed in:0:5.4.16-46.amzn2.0.6
Fixed in:0:5.4.16-46.amzn2.0.6
php-debuginfoAmazon
Fixed in:0:5.4.16-46.amzn2.0.6
Fixed in:0:5.4.16-46.amzn2.0.6
Fixed in:0:5.4.16-46.amzn2.0.6
php-develAmazon
Fixed in:0:5.4.16-46.amzn2.0.6
Fixed in:0:5.4.16-46.amzn2.0.6
Fixed in:0:5.4.16-46.amzn2.0.6
php-embeddedAmazon
Fixed in:0:5.4.16-46.amzn2.0.6
Fixed in:0:5.4.16-46.amzn2.0.6
Fixed in:0:5.4.16-46.amzn2.0.6
php-enchantAmazon
Fixed in:0:5.4.16-46.amzn2.0.6
Fixed in:0:5.4.16-46.amzn2.0.6
Fixed in:0:5.4.16-46.amzn2.0.6
php-fpmAmazon
Fixed in:0:5.4.16-46.amzn2.0.6
Fixed in:0:5.4.16-46.amzn2.0.6
Fixed in:0:5.4.16-46.amzn2.0.6
php-gdAmazon
Fixed in:0:5.4.16-46.amzn2.0.6
Fixed in:0:5.4.16-46.amzn2.0.6
Fixed in:0:5.4.16-46.amzn2.0.6
php-intlAmazon
Fixed in:0:5.4.16-46.amzn2.0.6
Fixed in:0:5.4.16-46.amzn2.0.6
Fixed in:0:5.4.16-46.amzn2.0.6
php-ldapAmazon
Fixed in:0:5.4.16-46.amzn2.0.6
Fixed in:0:5.4.16-46.amzn2.0.6
Fixed in:0:5.4.16-46.amzn2.0.6
php-mbstringAmazon
Fixed in:0:5.4.16-46.amzn2.0.6
Fixed in:0:5.4.16-46.amzn2.0.6
Fixed in:0:5.4.16-46.amzn2.0.6
php-mysqlndAmazon
Fixed in:0:5.4.16-46.amzn2.0.6
Fixed in:0:5.4.16-46.amzn2.0.6
Fixed in:0:5.4.16-46.amzn2.0.6
php-odbcAmazon
Fixed in:0:5.4.16-46.amzn2.0.6
Fixed in:0:5.4.16-46.amzn2.0.6
Fixed in:0:5.4.16-46.amzn2.0.6
php-pdoAmazon
Fixed in:0:5.4.16-46.amzn2.0.6
Fixed in:0:5.4.16-46.amzn2.0.6
Fixed in:0:5.4.16-46.amzn2.0.6
php-pgsqlAmazon
Fixed in:0:5.4.16-46.amzn2.0.6
Fixed in:0:5.4.16-46.amzn2.0.6
Fixed in:0:5.4.16-46.amzn2.0.6
php-processAmazon
Fixed in:0:5.4.16-46.amzn2.0.6
Fixed in:0:5.4.16-46.amzn2.0.6
Fixed in:0:5.4.16-46.amzn2.0.6
php-pspellAmazon
Fixed in:0:5.4.16-46.amzn2.0.6
Fixed in:0:5.4.16-46.amzn2.0.6
Fixed in:0:5.4.16-46.amzn2.0.6
php-recodeAmazon
Fixed in:0:5.4.16-46.amzn2.0.6
Fixed in:0:5.4.16-46.amzn2.0.6
Fixed in:0:5.4.16-46.amzn2.0.6
php-snmpAmazon
Fixed in:0:5.4.16-46.amzn2.0.6
Fixed in:0:5.4.16-46.amzn2.0.6
Fixed in:0:5.4.16-46.amzn2.0.6
php-soapAmazon
Fixed in:0:5.4.16-46.amzn2.0.6
Fixed in:0:5.4.16-46.amzn2.0.6
Fixed in:0:5.4.16-46.amzn2.0.6
php-xmlAmazon
Fixed in:0:5.4.16-46.amzn2.0.6
Fixed in:0:5.4.16-46.amzn2.0.6
Fixed in:0:5.4.16-46.amzn2.0.6
php-xmlrpcAmazon
Fixed in:0:5.4.16-46.amzn2.0.6
Fixed in:0:5.4.16-46.amzn2.0.6
Fixed in:0:5.4.16-46.amzn2.0.6
php8.1Amazon
Fixed in:0:8.1.16-1.amzn2023.0.1
Fixed in:0:8.1.16-1.amzn2023.0.1
Fixed in:0:8.1.16-1.amzn2023.0.1
php8.1-bcmathAmazon
Fixed in:0:8.1.16-1.amzn2023.0.1
Fixed in:0:8.1.16-1.amzn2023.0.1
Fixed in:0:8.1.16-1.amzn2023.0.1
php8.1-bcmath-debuginfoAmazon
Fixed in:0:8.1.16-1.amzn2023.0.1
Fixed in:0:8.1.16-1.amzn2023.0.1
Fixed in:0:8.1.16-1.amzn2023.0.1
php8.1-cliAmazon
Fixed in:0:8.1.16-1.amzn2023.0.1
Fixed in:0:8.1.16-1.amzn2023.0.1
Fixed in:0:8.1.16-1.amzn2023.0.1
php8.1-cli-debuginfoAmazon
Fixed in:0:8.1.16-1.amzn2023.0.1
Fixed in:0:8.1.16-1.amzn2023.0.1
Fixed in:0:8.1.16-1.amzn2023.0.1

This vulnerability affects an unusually large number of packages. The highest-confidence fixes are shown above; the full list is longer. Check the referenced advisories for complete coverage.

TridentStack Control can deploy fixes like this automatically across your Windows, macOS, and Linux fleet. See how it works

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3 Vector

Exploitability

Attack VectorNetwork
Attack ComplexityHigh
Privileges RequiredNone
User InteractionRequired
ScopeUnchanged

Impact

ConfidentialityHigh
IntegrityHigh
AvailabilityHigh

CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H

Exploit Intelligence

1.24%probability of exploitation in 30 days
68thpercentile

Moderate risk: more likely to be exploited than 68% of all known CVEs.

References

Other references1

Related Vulnerabilities

Other CWE-131 vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2023-36824High7.477%-Fix
CVE-2020-8450High7.372%-Fix
CVE-2026-42945Critical8.168%-Fix
CVE-2020-6113High7.865%--
CVE-2020-6116High7.828%--
CVE-2005-3120Critical9.823%-Fix

Common questions

How do I fix CVE-2023-0568?

Published advisories record a fix for 254 affected products. The "How to fix" section on this page lists the fixed version and source advisory for each one, so apply the entry matching what you actually run.

Is CVE-2023-0568 being actively exploited?

Not that we know of. CVE-2023-0568 is not in the CISA Known Exploited Vulnerabilities catalog. Its EPSS score of 1.2% is the estimated probability that it will be exploited in the next 30 days. That is higher than 68% of all scored CVEs.

How severe is CVE-2023-0568?

CVE-2023-0568 has a CVSS v3 base score of 7.5, rated high. CVSS rates the technical impact if the vulnerability is exploited, not how likely that is, so weigh it alongside the exploit-prediction score when you decide what to patch first.

What does CVE-2023-0568 affect?

Published advisories record a fix for php (Amazon), php-bcmath (Amazon), php-cli (Amazon), php-common (Amazon), and 250 more. Only products with a sourced advisory are listed, so treat this as what we can cite rather than a complete inventory.

Embed a live status badge for CVE-2023-0568
CVE-2023-0568 severity badge

Markdown

[![CVE-2023-0568](https://tridentstack.com/cve/badge/CVE-2023-0568.svg)](https://tridentstack.com/cve/CVE-2023-0568)

HTML

<a href="https://tridentstack.com/cve/CVE-2023-0568"><img src="https://tridentstack.com/cve/badge/CVE-2023-0568.svg" alt="CVE-2023-0568"></a>

Check your Linux endpoints for this class of vulnerability

TridentStack Control continuously scans Linux endpoints for known vulnerabilities and deploys the fixes from the same console. 200 endpoints free forever, no credit card.

Patch your fleet freeStart freeThis CVE lookup is free and always will be.

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2026-06-17.