PHP 8.2.35

1051 points · 552 comments on HN · read original →

Points and comments are a snapshot, not live.

PHP released security updates to fix multiple critical remote code execution vulnerabilities.

PHP 8.2.35, along with 8.3.36, 8.4.27, and 8.5.12, patches two security advisories (GHSA-w8hw and GHSA-6wmf) affecting all PHP installations serving web requests, including PHP-FPM, Apache mod_php, php-cgi, FrankenPHP, and LiteSpeed. The vulnerabilities involve multipart request body parsing and session.upload_progress, enabling remote code execution via longjmp() and out-of-memory conditions.

What commenters are saying

Commenters shared practical mitigation steps for WordPress servers while awaiting distro packages: disable session.upload_progress.enabled, block multipart/form-data requests at the web server level (breaking file uploads), check SAPI type, set pm.max_requests=1 in FPM pools, and lower max_input_nesting_level and post_max_size. The Ondřej Surý PPA packages were reported as building and available. Some commenters criticized PHP's use of setjmp/longjmp as inherently dangerous, comparing it unfavorably to exceptions in other languages.