PHP released fixes on 21 Oct 2026 for two critical bugs that can allow remote code execution without a login. Here is who is affected and what to do.
The flaws may also expose secrets. SecurityWeek reports that the two flaws can also be used to read sensitive memory of the PHP process, and that memory may hold credentials, API keys and other secrets. PHP's maintainers say every PHP setup that handles web requests is potentially at risk (PHP-FPM, Apache with mod_php, php-cgi, FrankenPHP and LiteSpeed), and the flaws reach back to nearly all releases, to PHP 5.4. Several security firms (Amazon, Hadrian, Patchstack, Cloudflare and Vega, which saw a public proof of concept in use) report exploitation attempts, mostly through PHP's session upload-progress path, and watchTowr says none of the attempts it saw had succeeded. Governments are urging immediate patching. Our precaution, not a confirmed case: **after you update, consider rotating the database passwords and API keys stored on any server that ran an affected PHP and faced the internet.** Updating PHP is still the real fix.