Dev News Daily ENDE

PHP 8.5.13 fixes 17 security advisories, from session files to PHP-FPM request smuggling

The PHP project shipped security releases for all supported branches on 19 November: 8.5.13, 8.4.28, 8.3.37 and 8.2.36, published alongside PHP 8.6.0. Each announcement calls the release a security release and asks users of that branch to upgrade. In the advance notice the security team had rated the highest severity critical, adding that the critical issues need a non-default configuration or an uncommon setup.

The changelog for 8.5.13 lists 17 GitHub security advisories with CVE numbers. Several are memory-safety bugs that the entries say can lead to remote code execution: a use-after-free in backtraces of magic methods, one in the timezone cache, and two in session handling, where partially overwritten session files or a mismatch between session serializers can be abused. Others are a double free during DOM XML serialization, an out-of-bounds read and write in PHP-CGI while correcting PATH_INFO, and a use-after-free in SOAP when it processes DTD entity references.

PHP-FPM gets three fixes: a use-after-free in its epoll handling that could allow local privilege escalation, request smuggling through a request body that was never read, and cross-site scripting on the status page through unescaped user and script fields. The list also includes a downgrade of the signature algorithm that bypassed OpenSSL signatures on PHAR archives, mixed-case HTTPS and FTPS URLs that could send data in plain text, a denial of service through folded HTTP response headers and incorrect URI serialization for oversized input.

PHP 8.5.13 fixes 17 security advisories, from session files to PHP-FPM request smuggling
PHP 8.5.13 fixes 17 security advisories, from session files to PHP-FPM request smuggling — Dev News Daily

Why it matters

The fixes span the engine, the FastCGI process manager and common extensions, so they apply to most PHP deployments in some form, and the PHAR signature and session items touch code paths that applications rely on for trust. Images and hosting stacks that pin a PHP patch version need a rebuild to pick them up.

Written by Victoria Shinder.