Intel

AIKIDO-2026-262277

php-cli is vulnerable to Remote Code Execution (RCE)

CVE-2026-109619Published Oct 21, 2026
October 21, 2026

99

CVE Score

Critical

Remote Code Execution (RCE)

Are you affected? Scan for Free

TL;DR

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, early INI diagnostics, and on PHP 8.5 fatal error backtraces.

How do I fix this?

Upgrade php-cli to the patch version. Until the update is installed, on RHEL and Amazon Linux 2, add session.upload_progress.enabled = 0 as /etc/php.d/99-upload-progress.ini because that directory is shared with FPM, lock php_admin_flag[session.upload_progress.enabled] = off in /etc/php-fpm.d/www.conf, and restart php-fpm. On Debian and Ubuntu, php-cli does not share its ini with FPM or Apache. 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. Remove per-request INI settings that warn before initialization. On PHP 8.5, also set fatal_error_backtraces = 0 in that same configuration and lock it with php_admin_flag. Leave the directive unset on older PHP 8 releases, where it does not exist. ini_set() can turn it back on unless it is locked. These settings block confirmed paths only, so the temporary mitigation may not be sufficient.

Who does this affect?

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.

Package

php-cli

Versions

5.4.0 - 8.2.34

Fixed in 8.2.35

8.3.0 - 8.3.35

Fixed in 8.3.36

8.4.0 - 8.4.26

Fixed in 8.4.27

8.5.0 - 8.5.11

Fixed in 8.5.12

Background info

php-cli is vulnerable to Remote Code Execution (RCE) in versions 5.4.0 - 8.2.34, 8.3.0 - 8.3.35, 8.4.0 - 8.4.26 and 8.5.0 - 8.5.11.

Links

Other

php.net/archive/2026.php#2026-10-20-1
https://www.php.net/archive/2026.php#2026-10-20-1
openwall.com/lists/oss-security/2026/10/21/16
http://www.openwall.com/lists/oss-security/2026/10/21/16
openwall.com/lists/oss-security/2026/10/21/17
http://www.openwall.com/lists/oss-security/2026/10/21/17
openwall.com/lists/oss-security/2026/10/21/23
http://www.openwall.com/lists/oss-security/2026/10/21/23
openwall.com/lists/oss-security/2026/10/21/7
http://www.openwall.com/lists/oss-security/2026/10/21/7
openwall.com/lists/oss-security/2026/10/22/14
http://www.openwall.com/lists/oss-security/2026/10/22/14
openwall.com/lists/oss-security/2026/10/22/15
http://www.openwall.com/lists/oss-security/2026/10/22/15
openwall.com/lists/oss-security/2026/10/22/16
http://www.openwall.com/lists/oss-security/2026/10/22/16
openwall.com/lists/oss-security/2026/10/22/19
http://www.openwall.com/lists/oss-security/2026/10/22/19
openwall.com/lists/oss-security/2026/10/22/2
http://www.openwall.com/lists/oss-security/2026/10/22/2
openwall.com/lists/oss-security/2026/10/22/20
http://www.openwall.com/lists/oss-security/2026/10/22/20
openwall.com/lists/oss-security/2026/10/23/4
http://www.openwall.com/lists/oss-security/2026/10/23/4
arcticwolf.com/resources/blog/php2shell-critical-php-vulnerabilities-enable-unauthenticated-remote-code-execution/
https://arcticwolf.com/resources/blog/php2shell-critical-php-vulnerabilities-enable-unauthenticated-remote-code-execution/
cert-portal.siemens.com/productcert/html/ssa-166980.html
https://cert-portal.siemens.com/productcert/html/ssa-166980.html
cert-portal.siemens.com/productcert/html/ssa-566435.html
https://cert-portal.siemens.com/productcert/html/ssa-566435.html
cert-portal.siemens.com/productcert/html/ssa-566512.html
https://cert-portal.siemens.com/productcert/html/ssa-566512.html
php2shell.delftintellab.com/
https://php2shell.delftintellab.com/
cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2026-109619
https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2026-109619
wiz.io/blog/php2shell-php-rce
https://www.wiz.io/blog/php2shell-php-rce

Get secure today,
quickly and for free.

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.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea