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 exists in the metaphone() function within ext/standard/metaphone.c of PHP. It uses a signed int variable to track the position in the input string. When processing strings longer than 2,147,483,647 bytes, the signed integer overflows, resulting in undefined behavior such as out-of-bounds reads. This can cause segmentation faults or access to unrelated memory, affecting the stability and availability of the PHP process. Affected versions include PHP 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 CVSS 4.0 base score is 6.3, indicating a medium severity vulnerability. No patch or official remediation level is currently documented.
Potential Impact
The vulnerability can cause a PHP process to crash or behave unpredictably due to out-of-bounds memory access triggered by an integer overflow in the metaphone() function. This primarily impacts the availability of PHP applications using the affected function with extremely large input strings. There is no evidence of exploitation in the wild, and the impact is limited to potential denial of service rather than code execution or data disclosure.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is released, avoid passing extremely large input strings (greater than 2,147,483,647 bytes) to the metaphone() function to prevent triggering the integer overflow. Monitor vendor communications for updates on patches or official mitigations.
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.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability exists in the metaphone() function within ext/standard/metaphone.c of PHP. It uses a signed int variable to track the position in the input string. When processing strings longer than 2,147,483,647 bytes, the signed integer overflows, resulting in undefined behavior such as out-of-bounds reads. This can cause segmentation faults or access to unrelated memory, affecting the stability and availability of the PHP process. Affected versions include PHP 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 CVSS 4.0 base score is 6.3, indicating a medium severity vulnerability. No patch or official remediation level is currently documented.
Potential Impact
The vulnerability can cause a PHP process to crash or behave unpredictably due to out-of-bounds memory access triggered by an integer overflow in the metaphone() function. This primarily impacts the availability of PHP applications using the affected function with extremely large input strings. There is no evidence of exploitation in the wild, and the impact is limited to potential denial of service rather than code execution or data disclosure.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is released, avoid passing extremely large input strings (greater than 2,147,483,647 bytes) to the metaphone() function to prevent triggering the integer overflow. Monitor vendor communications for updates on patches or official mitigations.
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
Threat ID: 6a000b48cbff5d861022ac7d
Added to database: 5/10/2026, 4:36:24 AM
Last enriched: 5/10/2026, 4:51:59 AM
Last updated: 5/10/2026, 10:45:34 AM
Views: 4
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.
External Links
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.