cve.bz

CVE-2026-7568 php php: Out-of-bounds Read

6.3 mediumEPSS 0.5%

Medium (6.3) in php php. EPSS 0.5% estimated probability of exploitation activity in the next 30 days.

On this page
In PHP versions 8.2.* before 8.2.31, 8.3.* before 8.3.31, 8.4.* before 8.4.21, and 8.5.* before 8.5.6, the metaphone() function in ext/standard/metaphone.c uses a signed int variable to track the current position within the input string. If a string longer than 2,147,483,647 bytes is passed, a signed integer overflow occurs, resulting in undefined behavior. This can lead to an out-of-bounds read, causing a segmentation fault or access to unrelated memory, and may affect the availability of the PHP process.

Severity

CVSS 4.0

6.3 medium
CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:L/VI:L/VA:L/SC:L/SI:L/SA:L/RE:L/U:Amber

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
0.5% (unchanged from 0.5% a week ago; 0.8% 30 days ago) estimated probability of exploitation activity in the next 30 days; 40th percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2026-05-11. 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-125 Out-of-bounds Read
CWE-190 Integer Overflow or Wraparound (Year 2038 problem, Y2K38, Y2038, Epochalypse)
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-2026-7568 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-7568?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-7568?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-2026-7568 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.2.* before 8.2.31
PHP Group PHPfrom 8.3.* before 8.3.31
PHP Group PHPfrom 8.4.* before 8.4.21
PHP Group PHPfrom 8.5.* before 8.5.6

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11php7.47.4.33-1+deb11u11DLA-4586-1
Debian12php8.28.2.31-1~deb12u1DEBIAN-CVE-2026-7568 DSA-6255-1
Debian13php8.48.4.21-1~deb13u1DEBIAN-CVE-2026-7568 DSA-6256-1
Debian14php8.48.4.21-1DEBIAN-CVE-2026-7568
Ubuntu22.04:LTSphp8.18.1.2-1ubuntu2.24UBUNTU-CVE-2026-7568
Ubuntu24.04:LTSphp8.38.3.6-0ubuntu0.24.04.9UBUNTU-CVE-2026-7568
Ubuntu25.10php8.48.4.11-1ubuntu1.2UBUNTU-CVE-2026-7568
Ubuntu26.04:LTSphp8.58.5.4-0ubuntu1.1UBUNTU-CVE-2026-7568
UbuntuPro:14.04:LTSphp5no fix listedUBUNTU-CVE-2026-7568
UbuntuPro:16.04:LTSphp7.07.0.33-0ubuntu0.16.04.16+esm20UBUNTU-CVE-2026-7568 USN-8734-1
UbuntuPro:18.04:LTSphp7.2no fix listedUBUNTU-CVE-2026-7568
UbuntuPro:20.04:LTSphp7.4no fix listedUBUNTU-CVE-2026-7568
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-2026:34354
Red Hatenterprise_linux:8::appstreamapcu-panel, php-pecl-apcu, php-pecl-apcu-devel and 2 more0:5.1.23-1.module+el8.10.0+20770+a5eca186RHSA-2026:22305
Red Hatenterprise_linux:8::appstreamlibzip, libzip-devel, libzip-tools and 3 more0:1.6.1-1.module+el8.10.0+22485+a3539972RHSA-2026:34354
Red Hatenterprise_linux:8::appstreamlibzip, libzip-devel, libzip-tools and 3 more0:1.7.3-1.module+el8.10.0+20770+a5eca186RHSA-2026:22305
Red Hatenterprise_linux:8::appstreamphp, php-gd, php-cli and 51 more0:7.4.33-4.module+el8.10.0+24352+91532d3eRHSA-2026:34354
Red Hatenterprise_linux:8::appstreamphp, php-gd, php-cli and 47 more0:8.2.31-1.module+el8.10.0+24323+abc2b0dbRHSA-2026:22305
Red Hatenterprise_linux:8::appstreamphp-pear1:1.10.13-1.module+el8.10.0+22485+a3539972RHSA-2026:34354
Red Hatenterprise_linux:8::appstreamphp-pear1:1.10.14-1.module+el8.10.0+20770+a5eca186RHSA-2026:22305
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-2026:34354
Red Hatenterprise_linux:8::appstreamphp-pecl-rrd, php-pecl-rrd-debuginfo, php-pecl-rrd-debugsource0:2.0.3-1.module+el8.10.0+20770+a5eca186RHSA-2026:22305
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-2026:34354
Red Hatenterprise_linux:8::appstreamphp-pecl-xdebug3, php-pecl-xdebug3-debuginfo, php-pecl-xdebug3-debugsource0:3.2.2-2.module+el8.10.0+20798+00eaeb41RHSA-2026:22305
16 more for Red Hat in the JSON and on Red Hat's page.
openSUSETumbleweedphp88.5.6-1.1openSUSE-SU-2026:10747-1
AlmaLinux8apcu-panel, php-pecl-apcu, php-pecl-apcu-devel5.1.18-1.module_el8.6.0+2750+78feabcbALSA-2026:34354
AlmaLinux8apcu-panel, php-pecl-apcu, php-pecl-apcu-devel5.1.23-1.module_el8.10.0+3796+30ed3ef7ALSA-2026:22305
AlmaLinux8libzip, libzip-devel, libzip-tools1.6.1-1.module_el8.10.0+3935+28808425ALSA-2026:34354
AlmaLinux8libzip, libzip-devel, libzip-tools1.6.1-1.module_el8.6.0+3239+bedf0508ALSA-2026:34354
AlmaLinux8libzip, libzip-devel, libzip-tools1.7.3-1.module_el8.10.0+3796+30ed3ef7ALSA-2026:22305
AlmaLinux8libzip, libzip-tools1.6.1-1.module_el8.6.0+2750+78feabcbALSA-2026:34354
AlmaLinux8php, php-gd, php-cli and 24 more7.4.33-4.module_el8.10.0+4209+2ed16ff0ALSA-2026:34354
AlmaLinux8php, php-gd, php-cli and 22 more8.2.31-1.module_el8.10.0+4189+0784d4ccALSA-2026:22305
AlmaLinux8php-pear1:1.10.13-1.module_el8.10.0+3935+28808425ALSA-2026:34354
AlmaLinux8php-pear1:1.10.14-1.module_el8.10.0+3796+30ed3ef7ALSA-2026:22305
AlmaLinux8php-pecl-apcu, php-pecl-apcu-devel5.1.18-1.module_el8.10.0+3935+28808425ALSA-2026:34354
AlmaLinux8php-pecl-rrd2.0.1-1.module_el8.10.0+3935+28808425ALSA-2026:34354
25 more for AlmaLinux in the JSON.
Rocky Linux8libzip0:1.6.1-1.module+el8.10.0+1604+6558efc7RLSA-2026:34354
Rocky Linux8libzip0:1.6.1-1.module+el8.10.0+1912+72767185RLSA-2026:34354
Rocky Linux8libzip0:1.7.3-1.module+el8.10.0+1596+477f03f8RLSA-2026:22305
Rocky Linux8libzip0:1.7.3-1.module+el8.10.0+1605+02e07af7RLSA-2026:22305
Rocky Linux8libzip0:1.7.3-1.module+el8.10.0+1911+f499711eRLSA-2026:22305
Rocky Linux8php-pear1:1.10.13-1.module+el8.10.0+1604+6558efc7RLSA-2026:34354
Rocky Linux8php-pear1:1.10.13-1.module+el8.10.0+1605+02e07af7RLSA-2026:34354
Rocky Linux8php-pear1:1.10.13-1.module+el8.10.0+1912+72767185RLSA-2026:34354
Rocky Linux8php-pear1:1.10.14-1.module+el8.10.0+1596+477f03f8RLSA-2026:22305
Rocky Linux8php-pear1:1.10.14-1.module+el8.10.0+1911+f499711eRLSA-2026:22305
Rocky Linux8php-pecl-apcu0:5.1.18-1.module+el8.10.0+1604+6558efc7RLSA-2026:34354
Rocky Linux8php-pecl-apcu0:5.1.18-1.module+el8.10.0+1912+72767185RLSA-2026:34354
29 more for Rocky Linux in the JSON.
Alpinev3.19php818.1.34-r0ALPINE-CVE-2026-7568
Alpinev3.22php828.2.31-r0ALPINE-CVE-2026-7568
Alpinev3.22php838.3.36-r0ALPINE-CVE-2026-7568
Alpinev3.22php848.4.27-r0ALPINE-CVE-2026-7568
Alpinev3.23, v3.24php838.3.31-r0ALPINE-CVE-2026-7568
Alpinev3.23, v3.24php848.4.21-r0ALPINE-CVE-2026-7568
Alpinev3.23, v3.24php858.5.6-r0ALPINE-CVE-2026-7568
Azure Linux3php8.3.31-1AZL-86361
Alpaquita23php818.1.34-r1BELL-CVE-2026-7568
Alpaquita25, streamphp838.3.31-r0BELL-CVE-2026-7568

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; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · openSUSE · Alpine · Alpaquita.

Red Hat

Red Hat rates this Important.

Red Hat's statement

This issue can be exploited by passing an excessively large string, exceeding 2,147,483,647 bytes, to the metaphone() function. This function is used for searching and matching words based on their phonetic sound. The large string can lead to a signed integer overflow that allows an attacker to cause an out-of-bounds read, resulting in a denial of service. Due to these reasons, this vulnerability has been rated with an important severity.

Red Hat's mitigation

To mitigate this vulnerability, validate the length of any user-controlled input before passing it to the metaphone() function. Also, verify the PHP and web server configuration to ensure memory limits and maximum request sizes are restricted to below ~2 GiB.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10php8.4-0:8.4.21-1.el10_2Fixed 2026-06-02RHSA-2026:22649
Red Hat Enterprise Linux 10php-0:8.3.31-1.el10_2Fixed 2026-06-04RHSA-2026:23388
Red Hat Enterprise Linux 8php:8.2-8100020260521052503.f7998665Fixed 2026-06-01RHSA-2026:22305
Red Hat Enterprise Linux 8php:7.4-8100020260604072603.f7998665Fixed 2026-07-01RHSA-2026:34354
Red Hat Enterprise Linux 9php:8.3-9080020260521113736.9Fixed 2026-06-01RHSA-2026:22142
Red Hat Enterprise Linux 9php:8.2-9080020260521080715.9Fixed 2026-06-01RHSA-2026:22143
Red Hat Enterprise Linux 9php-0:8.0.30-6.el9_8Fixed 2026-06-30RHSA-2026:33449
Red Hat Enterprise Linux 6phpNot affected
Red Hat Enterprise Linux 7phpNot affected
Red Hat Hardened ImagesphpNot affected

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-2026-7568.

Attack patterns (CAPEC)

  • CAPEC-540 Overread Buffers Likelihood: Low · Severity: High
  • CAPEC-92 Forced Integer Overflow Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON