PHP can access freed memory when collecting the arguments of a method handled by __call() or __callStatic() for a backtrace. On PHP 8.5 and later, an...
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| Ubuntu:Pro:14.04:LTSphp5 |
All versions→ Not listed |
Not listed |
| Ubuntu:Pro:16.04:LTSphp7.0 |
All versions→ Not listed |
Not listed |
| Ubuntu:Pro:18.04:LTSphp7.2 |
All versions→ Not listed |
Not listed |
| Ubuntu:Pro:20.04:LTSphp7.4 |
All versions→ Not listed |
Not listed |
| Ubuntu:22.04:LTSphp8.1 |
All versions→ Not listed |
Not listed |
| Ubuntu:24.04:LTSphp8.3 |
All versions→ Not listed |
Not listed |
| Ubuntu:26.10php8.5 |
All versions→ Not listed |
Not listed |
| Ubuntu:26.04:LTSphp8.5 |
All versions→ Not listed |
Not listed |
This record does not list fixed versions. Check the article or the vendor advisory in the references for whether and where it is fixed.
Original description The description as published by the source.
PHP can access freed memory when collecting the arguments of a method handled by __call() or __callStatic() for a backtrace. On PHP 8.5 and later, an unauthenticated attacker may be able to trigger this through a crafted request that causes a fatal error while the application enters such a method. Successful exploitation can execute arbitrary code with the privileges of the PHP worker. The demonstrated remote attack requires fatal_error_backtraces=1 and zend.exception_ignore_args=0. Fatal error backtraces are enabled by default in PHP 8.5. PHP's built-in default also includes arguments, but php.ini-production sets zend.exception_ignore_args=1 and prevents this attack path.
Source: OSV.dev (Open Source Vulnerabilities) OSV
References
- report ubuntu.com
- report cve.org
- report github.com