cve.bz

CVE-2023-0568 php php: Incorrect Calculation of Buffer Size

8.1 highExploit referenceEPSS 1.2%Fix available

High (8.1) in php php. EPSS 1.2% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

8.1 high
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
1.2% (unchanged from 1.2% a week ago; 1.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 70th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2025-03-18. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-770 Allocation of Resources Without Limits or Throttling
CWE-131 Incorrect Calculation of Buffer Size
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2023-0568 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2023-0568?via=ask-ai-copy and https://cve.bz/cve/CVE-2023-0568?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2023-0568 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
PHP Group PHPfrom 8.0.x before 8.0.28
PHP Group PHPfrom 8.1.x before 8.1.16
PHP Group PHPfrom 8.2.x before 8.2.3

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian10php7.37.3.31-1~deb10u3DLA-3345-1
Debian11php7.47.4.33-1+deb11u3DSA-5363-1
Debian12php8.28.2.4-1DEBIAN-CVE-2023-0568
Ubuntu18.04:LTSphp7.27.2.24-0ubuntu0.18.04.17UBUNTU-CVE-2023-0568 USN-5902-1
Ubuntu20.04:LTSphp7.47.4.3-4ubuntu2.18UBUNTU-CVE-2023-0568 USN-5902-1
Ubuntu22.04:LTSphp8.18.1.2-1ubuntu2.11UBUNTU-CVE-2023-0568 USN-5902-1
UbuntuPro:14.04:LTSphp5no fix listedUBUNTU-CVE-2023-0568
UbuntuPro:16.04:LTSphp7.07.0.33-0ubuntu0.16.04.16+esm5UBUNTU-CVE-2023-0568 USN-5905-1
Red Hatenterprise_linux:8::appstreamapcu-panel, php-pecl-apcu, php-pecl-apcu-devel and 2 more0:5.1.18-1.module+el8.10.0+22485+a3539972RHSA-2024:10952
Red Hatenterprise_linux:8::appstreamapcu-panel, php-pecl-apcu, php-pecl-apcu-devel and 2 more0:5.1.20-1.module+el8.6.0+13671+84712317RHSA-2023:5927
Red Hatenterprise_linux:8::appstreamlibzip, libzip-devel, libzip-tools and 3 more0:1.6.1-1.module+el8.10.0+22485+a3539972RHSA-2024:10952
Red Hatenterprise_linux:8::appstreamlibzip, libzip-devel, libzip-tools and 3 more0:1.7.3-1.module+el8.6.0+13671+84712317RHSA-2023:5927
Red Hatenterprise_linux:8::appstreamphp, php-gd, php-cli and 51 more0:7.4.33-2.module+el8.10.0+22485+a3539972RHSA-2024:10952
Red Hatenterprise_linux:8::appstreamphp, php-gd, php-cli and 47 more0:8.0.30-1.module+el8.8.0+20302+42d2b711RHSA-2023:5927
Red Hatenterprise_linux:8::appstreamphp-pear1:1.10.13-1.module+el8.10.0+22485+a3539972RHSA-2024:10952
Red Hatenterprise_linux:8::appstreamphp-pear1:1.10.13-1.module+el8.6.0+13671+84712317RHSA-2023:5927
Red Hatenterprise_linux:8::appstreamphp-pecl-rrd, php-pecl-rrd-debuginfo, php-pecl-rrd-debugsource0:2.0.1-1.module+el8.10.0+22485+a3539972RHSA-2024:10952
Red Hatenterprise_linux:8::appstreamphp-pecl-rrd, php-pecl-rrd-debuginfo, php-pecl-rrd-debugsource0:2.0.3-1.module+el8.6.0+13671+84712317RHSA-2023:5927
Red Hatenterprise_linux:8::appstreamphp-pecl-xdebug, php-pecl-xdebug-debuginfo, php-pecl-xdebug-debugsource0:2.9.5-1.module+el8.10.0+22485+a3539972RHSA-2024:10952
Red Hatenterprise_linux:8::appstreamphp-pecl-xdebug3, php-pecl-xdebug3-debuginfo, php-pecl-xdebug3-debugsource0:3.1.2-1.module+el8.6.0+13671+84712317RHSA-2023:5927
8 more for Red Hat in the JSON and on Red Hat's page.
SUSEEnterprise Storage 7, Enterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP2-LTSS and 7 morephp77.4.33-150200.3.51.1SUSE-SU-2023:0476-1
SUSELinux Enterprise High Performance Computing 15 SP1-LTSS, Linux Enterprise Server 15 SP1-LTSS, Linux Enterprise Server for SAP Applications 15 SP1php77.2.34-150000.4.109.1SUSE-SU-2023:0514-1
SUSELinux Enterprise Module for Legacy 15 SP4php7, php7-fpm, php7-fastcgi and 1 more7.4.33-150400.4.19.1SUSE-SU-2023:0513-1
SUSELinux Enterprise Module for Package Hub 15 SP4php7-embed7.4.33-150400.4.19.1SUSE-SU-2023:0513-1
SUSELinux Enterprise Module for Web and Scripting 12, Linux Enterprise Software Development Kit 12 SP5php747.4.33-1.53.1SUSE-SU-2023:0515-1
SUSELinux Enterprise Module for Web and Scripting 15 SP4php8, php8-fpm, php8-test and 3 more8.0.28-150400.4.26.1SUSE-SU-2023:0527-1
openSUSELeap 15.4php77.2.34-150000.4.109.1SUSE-SU-2023:0514-1
openSUSELeap 15.4php77.4.33-150200.3.51.1SUSE-SU-2023:0476-1
openSUSELeap 15.4php7, php7-fpm, php7-test and 3 more7.4.33-150400.4.19.1SUSE-SU-2023:0513-1
openSUSELeap 15.4php8, php8-fpm, php8-test and 3 more8.0.28-150400.4.26.1SUSE-SU-2023:0527-1
openSUSETumbleweedphp88.1.16-1.1openSUSE-SU-2024:12711-1
AlmaLinux8apcu-panel, php-pecl-apcu, php-pecl-apcu-devel5.1.18-1.module_el8.6.0+2750+78feabcbALSA-2024:10952
AlmaLinux8apcu-panel, php-pecl-apcu, php-pecl-apcu-devel5.1.20-1.module_el8.6.0+2739+efabdb8fALSA-2023:5927
AlmaLinux8libzip, libzip-devel, libzip-tools1.6.1-1.module_el8.10.0+3935+28808425ALSA-2024:10952
AlmaLinux8libzip, libzip-devel, libzip-tools1.6.1-1.module_el8.6.0+3239+bedf0508ALSA-2024:10952
AlmaLinux8libzip, libzip-devel, libzip-tools1.7.3-1.module_el8.6.0+2739+efabdb8fALSA-2023:5927
AlmaLinux8libzip, libzip-devel, libzip-tools1.7.3-1.module_el8.6.0+3061+6878dd1bALSA-2023:5927
AlmaLinux8libzip, libzip-tools1.6.1-1.module_el8.6.0+2750+78feabcbALSA-2024:10952
AlmaLinux8php, php-gd, php-cli and 24 more7.4.33-2.module_el8.10.0+3935+28808425ALSA-2024:10952
AlmaLinux8php, php-gd, php-cli and 22 more8.0.30-1.module_el8.8.0+3655+3335cff6ALSA-2023:5927
AlmaLinux8php-pear1:1.10.13-1.module_el8.10.0+3935+28808425ALSA-2024:10952
AlmaLinux8php-pear1:1.10.13-1.module_el8.6.0+2739+efabdb8fALSA-2023:5927
AlmaLinux8php-pecl-apcu, php-pecl-apcu-devel5.1.18-1.module_el8.10.0+3935+28808425ALSA-2024:10952
23 more for AlmaLinux in the JSON.
Rocky Linux8libzip0:1.6.1-1.module+el8.10.0+1604+6558efc7RLSA-2024:10952
Rocky Linux8libzip0:1.7.3-1.module+el8.6.0+790+fc63e43fRLSA-2023:5927
Rocky Linux8php0:7.4.33-2.module+el8.10.0+1912+72767185RLSA-2024:10952
Rocky Linux8php0:8.0.30-1.module+el8.8.0+1550+d8f1b18fRLSA-2023:5927
Rocky Linux8php-pear1:1.10.13-1.module+el8.10.0+1604+6558efc7RLSA-2024:10952
Rocky Linux8php-pear1:1.10.13-1.module+el8.7.0+1067+0a7071ccRLSA-2023:5927
Rocky Linux8php-pecl-apcu0:5.1.18-1.module+el8.10.0+1604+6558efc7RLSA-2024:10952
Rocky Linux8php-pecl-apcu0:5.1.20-1.module+el8.6.0+790+fc63e43fRLSA-2023:5927
Rocky Linux8php-pecl-rrd0:2.0.1-1.module+el8.10.0+1604+6558efc7RLSA-2024:10952
Rocky Linux8php-pecl-rrd0:2.0.3-1.module+el8.6.0+790+fc63e43fRLSA-2023:5927
Rocky Linux8php-pecl-xdebug0:2.9.5-1.module+el8.10.0+1604+6558efc7RLSA-2024:10952
Rocky Linux8php-pecl-xdebug30:3.1.2-1.module+el8.6.0+790+fc63e43fRLSA-2023:5927
9 more for Rocky Linux in the JSON.
Alpinev3.15php77.4.33-r1ALPINE-CVE-2023-0568
Alpinev3.16php88.0.28-r0ALPINE-CVE-2023-0568
Alpinev3.16php818.1.17-r0ALPINE-CVE-2023-0568
Alpinev3.17, v3.18, v3.19php818.1.16-r0ALPINE-CVE-2023-0568
Alpinev3.18, v3.19, v3.20 and 2 morephp828.2.3-r0ALPINE-CVE-2023-0568
Azure Linux2php8.1.16-1AZL-13587
Azure Linux3php8.2.3-1AZL-63073

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Moderate.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8php:8.0-8080020231006102311.0b4eb31dFixed 2023-10-19RHSA-2023:5927
Red Hat Enterprise Linux 8php:7.4-8100020241113075828.f7998665Fixed 2024-12-11RHSA-2024:10952
Red Hat Enterprise Linux 9php-0:8.0.30-1.el9_2Fixed 2023-10-19RHSA-2023:5926
Red Hat Enterprise Linux 9php:8.1-9030020231221080340.9Fixed 2024-01-24RHSA-2024:0387
Red Hat Enterprise Linux 6phpOut of support scope
Red Hat Enterprise Linux 7phpOut of support scope
Red Hat Enterprise Linux 8phpWill not fix

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2023-0568.

ICS advisories (CISA)

AdvisoryTitlePublishedSectorsAffectedFixed
ICSA-26-027-02Festo Didactic SE MES PC2024-02-27Commercial Facilities, Communications, Critical Manufacturing, EnergyFesto Didactic SE MES PC shipped with Windows 10none listed
ICSA-24-046-11Siemens SCALANCE XCM-/XRM-3002024-02-13MultipleSCALANCE XCH328 (6GK5328-4TS01-2EC2), SCALANCE XCM324 (6GK5324-8TS01-2AC2), SCALANCE XCM328 (6GK5328-4TS01-2AC2) and 8 morenone listed

From CISA's ICS advisories (CSAF), provided under CISA's notification. Only the facts are shown; each advisory is on CISA's page. Credits.

Attack patterns (CAPEC)

  • CAPEC-47 Buffer Overflow via Parameter Expansion Likelihood: Medium · Severity: High
  • CAPEC-100 Overflow Buffers Likelihood: High · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-770 (20).

References

Check your stackJSON