php is vulnerable to Remote Code Execution (RCE)
88
CVE Score
High
Remote Code Execution (RCE)
Affected versions of PHP are vulnerable to remote code execution when session upload progress writes data with one session serializer and application code switches to the php serializer before starting the session. The serializer mismatch can cause crafted session data to be interpreted unsafely.
No patched release is currently available. On RHEL and Amazon Linux 2, add session.upload_progress.enabled = 0 as /etc/php.d/99-upload-progress.ini. When httpd loads mod_php, also set php_admin_flag session.upload_progress.enabled off in the Apache config and restart httpd. When FPM is installed, lock php_admin_flag[session.upload_progress.enabled] = off in /etc/php-fpm.d/www.conf and restart php-fpm. On Debian and Ubuntu, add php_admin_flag[session.upload_progress.enabled] = off to /etc/php/<version>/fpm/pool.d/www.conf and restart php<version>-fpm, or set php_admin_flag session.upload_progress.enabled off in the Apache server config and restart apache2. ini_set() and FPM .user.ini do not apply in time. Applications that never change session.serialize_handler at runtime can keep upload progress enabled. Keep this mitigation in place until PHP publishes a fixed release.
You are affected if session.serialize_handler is configured as php_binary or php_serialize, application code changes it to php with ini_set() before calling session_start(), and session upload progress remains enabled. Applications that never change the session serialization handler at runtime are not exposed through this path.
5.4.0 - 8.5.12
No fix availablephp is vulnerable to Remote Code Execution (RCE) in versions 5.4.0 - 8.5.12.
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.