PHP patches seven critical flaws that can lead to code execution
Fixes are in PHP 8.2.36, 8.3.37, 8.4.28, 8.5.13 and 8.6.0; several bugs need specific application conditions.
Use-after-free in PHP magic-method backtraces may allow RCE
PHP can read freed memory while collecting arguments of a __call() or __callStatic() call for a backtrace. A remote attacker who can drive request data enough to hit a fatal error such as memory_limit, with fatal_error_backtraces on (the default) and zend.exception_ignore_args off, may corrupt memory, crash the PHP worker, or, if they know addresses, run code. This affects PHP 8.5 before 8.5.13; php.ini-production enables the setting that blocks it.
What to do: Upgrade PHP 8.5 to 8.5.13. Enabling zend.exception_ignore_args, as php.ini-production does, prevents the issue.
| Product | Affected | Fixed in |
|---|---|---|
| PHP | 8.5.* before 8.5.13 | 8.5.13 |
Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.
Use-after-free in magic method backtraces can lead to remote code execution. When collecting the arguments of a method call handled by __call() or __callStatic() for a backtrace, PHP can read stale values that may refer to freed memory. If a fatal error such as exceeding memory_limit occurs while an application enters such a call, with fatal_error_backtraces enabled (the default) and zend.exception_ignore_args disabled, a remote attacker who controls enough request data to influence memory allocation may cause memory corruption, crash the PHP worker or, with knowledge of memory addresses, execute arbitrary code. php.ini-production enables zend.exception_ignore_args, which prevents this. This issue affects PHP versions 8.5.* before 8.5.13.
Fixes are in PHP 8.2.36, 8.3.37, 8.4.28, 8.5.13 and 8.6.0; several bugs need specific application conditions.
Wiz reports no observed exploitation; PHP 8.1 and earlier receive no official fixes.
Fixed builds include PHP 8.6.0 and 8.5.13, plus 8.4.28, 8.3.37 and 8.2.36 for most issues.
The November 19 releases fix flaws that PHP says need non-default or uncommon setups, including session-handling remote code execution.
Fixed releases are PHP 8.5.13, 8.4.28, 8.3.37 and 8.2.36; two issues can reach ordinary WordPress hosts.
The top issue is a PHP-FPM request-smuggling flaw scored 9.2 that needs reused backend connections.
Fixes are in 8.2.36, 8.3.37, 8.4.28, 8.5.13 and 8.6.0; maintainers say the critical bugs need uncommon setups.
Today 915 readers · 1K views · 86 reads · all time 211K views