php8.1 is vulnerable to Remote Code Execution (RCE)
99
CVE Score
Critical
Remote Code Execution (RCE)
Affected versions of PHP are vulnerable to unauthenticated remote code execution. Request-owned session, error, or extension state can survive after its memory is freed, and a later request on the same worker can use that state before initialization resets it. Confirmed paths include session upload progress and early INI diagnostics.
This PHP release branch is end-of-life and has no upstream release with this fix. PHP published a minimal source backport, which is not the same fix as 8.2.35, 8.3.36, 8.4.27, or 8.5.12. Install a distribution update that includes that backport, or upgrade to a supported PHP release. Until the update is installed, on Debian and Ubuntu, add php_admin_flag[session.upload_progress.enabled] = off to /etc/php/8.1/fpm/pool.d/www.conf and restart php8.1-fpm, or lock Apache with php_admin_flag session.upload_progress.enabled off and restart apache2. On Amazon Linux 2023, add session.upload_progress.enabled = 0 as /etc/php.d/99-upload-progress.ini, lock php_admin_flag[session.upload_progress.enabled] = off in /etc/php-fpm.d/www.conf, and restart php-fpm. On Elastic Beanstalk, write that drop-in from .ebextensions or a platform hook. ini_set() and FPM .user.ini do not apply in time. Remove per-request INI settings that warn before initialization. This blocks the confirmed session paths only, so the temporary mitigation may not be sufficient.
You are affected if you are using a version that falls within the vulnerable range and the install serves untrusted web requests from a worker that handles more than one request. Session upload progress is enabled by default.
8.1.0 - 8.1.34
No fix availablephp8.1 is vulnerable to Remote Code Execution (RCE) in versions 8.1.0 - 8.1.34.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.