PHP 8.6: Things are gonna get a lot more strict around here
Like a parent disciplining a misbehaving child, PHP’s annual update clamps down on loose default behaviors to curb malicious hacker horseplay.
PHP 8.6 has been released, bringing stricter security measures to the popular web scripting language. This version addresses over a dozen critical vulnerabilities uncovered since October, which could allow attackers to crash servers or execute arbitrary code. The core development team, along with the PHP Foundation, released patched versions of PHP 8.5.13, 8.4.28, 8.3.37, and 8.2.36, in addition to the new 8.6 release.
Key security enhancements include stricter session management settings, such as enabling Strict Mode, adding HttpOnly flag to session cookies, and restricting session cookies to same-site requests. These changes aim to prevent session hijacking and cross-site request forgery attacks. PHP will now also reject uninitialized session IDs, adding an extra layer of protection against unauthorized access.
The PHP engine will also become more stringent when encountering null values, potentially throwing errors instead of silently processing them. This will help thwart remote code execution (RCE) attempts, which often exploit null values. Other improvements include a native polling API, Duration class for event-driven networking, and a clamp() function to ensure value ranges.
Despite these enhancements, administrators should be cautious, as some PHP settings may require explicit configuration even after the update. The release of PHP 8.6 aims to make the language more secure, but it is just one component in a broader strategy to protect web applications from emerging threats.
Written by urgent.news from The Register Science's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.
Other reports of this story
- PHP 8.6: Things are gonna get a lot more strict around here theregister.com