CVE-2026-7568: CWE-190 Integer Overflow or Wraparound in PHP Group PHP
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.
AI Analysis
Technical Summary
The vulnerability CVE-2026-7568 involves a signed integer overflow in the metaphone() function within PHP's ext/standard/metaphone.c. Specifically, a signed int variable used to track the current position in the input string can overflow if the input string exceeds 2,147,483,647 bytes. This overflow leads to undefined behavior, including out-of-bounds memory reads, which may cause segmentation faults or access to unrelated memory regions. The vulnerability affects PHP versions 8.2.0 up to but not including 8.2.31, 8.3.0 up to but not including 8.3.31, 8.4.0 up to but not including 8.4.21, and 8.5.0 up to but not including 8.5.6. Red Hat has released security updates for their Enterprise Linux distributions that include fixes for this issue.
Potential Impact
Exploitation of this vulnerability can cause a denial of service by crashing the PHP process due to out-of-bounds memory access resulting from the integer overflow. This affects the availability of applications relying on the vulnerable PHP versions. There is no indication of code execution or data disclosure from the provided information.
Mitigation Recommendations
Security updates addressing CVE-2026-7568 have been released by Red Hat for affected PHP versions. Users should apply the official patches provided in these updates to remediate the vulnerability. Patch status is confirmed by vendor advisories. No additional mitigation actions are specified or required beyond applying the official fixes.
CVE-2026-7568: CWE-190 Integer Overflow or Wraparound in PHP Group PHP
Description
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.
CVSS v4.0
Score 6.3medium
Affected software
pkg:github/php/php-srcRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability CVE-2026-7568 involves a signed integer overflow in the metaphone() function within PHP's ext/standard/metaphone.c. Specifically, a signed int variable used to track the current position in the input string can overflow if the input string exceeds 2,147,483,647 bytes. This overflow leads to undefined behavior, including out-of-bounds memory reads, which may cause segmentation faults or access to unrelated memory regions. The vulnerability affects PHP versions 8.2.0 up to but not including 8.2.31, 8.3.0 up to but not including 8.3.31, 8.4.0 up to but not including 8.4.21, and 8.5.0 up to but not including 8.5.6. Red Hat has released security updates for their Enterprise Linux distributions that include fixes for this issue.
Potential Impact
Exploitation of this vulnerability can cause a denial of service by crashing the PHP process due to out-of-bounds memory access resulting from the integer overflow. This affects the availability of applications relying on the vulnerable PHP versions. There is no indication of code execution or data disclosure from the provided information.
Mitigation Recommendations
Security updates addressing CVE-2026-7568 have been released by Red Hat for affected PHP versions. Users should apply the official patches provided in these updates to remediate the vulnerability. Patch status is confirmed by vendor advisories. No additional mitigation actions are specified or required beyond applying the official fixes.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- php
- Date Reserved
- 2026-04-30T21:08:49.047Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
- Vendor Advisory Urls
- [{"url":"https://access.redhat.com/security/cve/CVE-2026-7568","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:23388","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:22649","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:22305","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:22142","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:22143","vendor":"Red Hat"}]
Threat ID: 6a000b48cbff5d861022ac7d
Added to database: 05/10/2026, 04:36:24 UTC
Last enriched: 07/16/2026, 09:12:42 UTC
Last updated: 07/31/2026, 19:23:00 UTC
Views: 179
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.