REDHAT-BUG-2468566: Integer Overflow
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.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
php/ext/standard/metaphone.c (metaphone function)to a version that resolves this vulnerability.Fixed in 8.2.31 - Upgrade
Upgrade
php/ext/standard/metaphone.c (metaphone function)to a version that resolves this vulnerability.Fixed in 8.3.31 - Upgrade
Upgrade
php/ext/standard/metaphone.c (metaphone function)to a version that resolves this vulnerability.Fixed in 8.4.21 - Upgrade
Upgrade
php/ext/standard/metaphone.c (metaphone function)to a version that resolves this vulnerability.Fixed in 8.5.6
Event History
Frequently Asked Questions
What is the severity of REDHAT-BUG-2468566?
The severity of REDHAT-BUG-2468566 is high, rated at 7.
How do I fix REDHAT-BUG-2468566?
To fix REDHAT-BUG-2468566, upgrade your PHP version to 8.2.31, 8.3.31, 8.4.21, or 8.5.6 or later.
What is the main issue with REDHAT-BUG-2468566?
The main issue with REDHAT-BUG-2468566 is an integer overflow in the metaphone() function that affects string processing.
Which versions of PHP are affected by REDHAT-BUG-2468566?
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 are affected by REDHAT-BUG-2468566.
What impact could REDHAT-BUG-2468566 have on a system?
REDHAT-BUG-2468566 could potentially lead to application crashes or unexpected behavior when processing large strings.