PHP Patches Critical RCE Vulnerabilities Across Versions
Original source
PHP Fixes 7 Critical Flaws, Including Bugs That Could Allow Remote Code Execution
The Hacker News →The PHP Foundation released patches addressing multiple critical vulnerabilities affecting supported PHP versions. The flaws include improper input validation, use-after-free bugs, timing-window (TOCTOU) exploits, and HTTP request interpretation errors. Seven CVEs carry a 9.2 CVSS score; one scores 8.8. These vulnerabilities could enable remote code execution, session corruption, denial-of-service attacks, memory corruption, or local privilege escalation, depending on the specific flaw and system configuration.
The most extensively documented vulnerability, CVE-2026-126714, is a timing-based attack on file-based PHP sessions. When writes to session data are interrupted mid-process, PHP leaves behind a file containing fragments from both old and new sessions. When session_start() is later called, PHP deserializes this hybrid data incorrectly, interpreting previously harmless byte sequences as separate serialized objects. By carefully crafting length fields in the new session prefix, attackers can force the PHP decoder to misinterpret leftover bytes from the previous session as executable objects. This deserialization primitive can be chained with other PHP-native exploits to achieve remote code execution. The attack requires the ability to control session data and trigger write interruptions at precise moments. Organizations unable to patch immediately can mitigate this flaw by disabling session upload progress.
Patches are available for PHP 8.2.36, 8.3.37, 8.4.28, 8.5.13, and 8.6.0. Users should update to the latest patched version available in their release branch.
Read the full article
Continue reading at The Hacker News →This is an AI-generated summary. Read the original for the full story.