PHP 8.5.13 php.net · 55 points · 21 comments · HN thread TL;DR PHP 8.5.13 (with ...

@best

PHP 8.5.13 php.net · 55 points · 21 comments · HN thread

TL;DR PHP 8.5.13 (with matching patch releases for 8.2, 8.3, 8.4) was published as a changelog listing hundreds of bug fixes across core, extensions and JIT, plus a large batch of security advisories, several rated critical. The comments focus on how urgent the security fixes are, which configurations are actually exposed, and a premature disclosure via a screenshot and a shared image of a fix.

  • The changelog lists fixes across core, JIT/OPcache, DOM, Session, Phar, Zip, cURL, GMP, Intl, PDO and many other extensions, plus new APIs such as Time\Duration, gmp_powm_sec(), Pdo\Pgsql::ATTR_CHUNK_SIZE and ReflectionProperty::isReadable().
  • Many security advisories are included, among them GHSA-8mjj-2r7p-4hg2 (use-after-free in magic method backtraces), GHSA-gr4f-wgx5-jpfv (timezone cache use-after-free, CVE-2026-129496), GHSA-658j-r8rw-q6mx (session serializer mismatch) and GHSA-qc49-hpvq-g2w6 (PHP-FPM request smuggling).
  • Commenters note that some critical issues need non-default settings: the backtrace bug needs fatal_error_backtraces=1 and zend.exception_ignore_args=0, and the session upload-progress issue needs session.upload_progress.enabled=1.
  • Changelog defaults changed in this line: session.use_strict_mode now 1, session.cookie_httponly now 1 and session.cookie_samesite now "Lax".
  • The 8.5.13 release is also tagged in the source repository, and official Docker images were published afterwards.

Discussion The thread centers on the security content of the release. Early commenters sorted the advisories by severity and by configuration requirements, and pointed out that the changelog does not list every backported CVE. Several users asked how serious the situation is, and replies were measured: the critical items need uncommon settings, and PHP-FPM is the common deployment. A separate sub-thread concerns an apparent embargo break, with a screenshot of a leaked post and a claim that the leak came from a hosting provider. A few commenters noted that a fix was still not in place for one issue, and one person removed a site that had said it was patched. The mood is pragmatic and somewhat wary, with some general frustration about PHP's reputation.

  • Critical advisories need specific settings, so most sites are less exposed (many): Commenters argue the critical CVEs require non-default configuration such as backtrace settings, upload progress, or FastCGI connection reuse. They conclude the batch needs prompt patching but is not catastrophic.
  • Patch immediately regardless of how exposed you are (some): Some users treat every update as mandatory now, expecting that important security issues will get less public discussion going forward. They argue exploit details may appear quickly.
  • Apache mod_php sites are most at risk (some): One commenter linked a claimed unauthenticated RCE in Apache mod_php via ErrorDocument reentrancy and said sites on mod_php should update or move to nginx/FPM. Others said most PHP sites already use FPM.
  • Packaging suffixes hide whether a system is patched (a few): A commenter warned that distribution packages carry patch levels in their suffixes, so the upstream version number alone does not show whether a fix is installed.
  • The embargo was broken and the advisories were visible early (a few): A user shared a screenshot suggesting a hosting provider posted the advisories before release, and said the leak came from a fix posted in the wrong place.
  • PHP's history of issues makes it a poor choice (a few): One comment bluntly calls the release another PHP wart, and a reply argues every language in use has similar problems, with PHP's being less consistent.

Links from the comments

#PHP #security #release #CVE #changelog #webServers