Security alert · Critical
PHP: actively exploited memory corruption allows unauthenticated remote code execution
· 3 minutes read · Centoculus Security Team
Known since · attacks confirmed since
Affected: PHP (affected and fixed versions: see the PHP security advisory)
What happened
A memory corruption vulnerability has been disclosed in PHP and is tracked as CVE-2026-109618. According to the published data, it allows an unauthenticated attacker to execute code remotely on an affected system. The vulnerability has a CVSS base score of 9.8 (critical) and is being actively exploited. The US cybersecurity agency CISA has added it to its Known Exploited Vulnerabilities catalog and has issued an alert calling for immediate patching. In some security research the issue is referred to as "PHP2Shell".
The PHP project has published a security advisory on GitHub, which is linked below.
Who is affected
Anyone running PHP on a server is potentially affected. This includes web servers with PHP-FPM or mod_php, hosting servers with several PHP versions installed through a hosting panel, and websites and web shops built on PHP-based software such as common CMS and shop systems. Servers that are reachable from the internet are at the highest risk.
The source data does not list the exact affected and fixed versions. Check the PHP security advisory linked below to see which versions are affected and which releases contain the fix.
What to do now
- Make an inventory of every server and hosting account that runs PHP, including all PHP versions installed in parallel (for example through Plesk, cPanel or other hosting panels).
- Open the PHP security advisory linked below and note the fixed versions for each PHP branch you use.
- Update PHP to a fixed version using your distribution's package manager, your hosting panel or your usual update process. If your distribution provides backported fixes, check its security notice for the patched package version.
- Restart all services that load PHP so the new version is actually in use, for example PHP-FPM and the web server (Apache, Nginx with PHP-FPM, LiteSpeed).
- If you cannot update immediately, reduce internet exposure of the affected systems where possible and follow the mitigations in the vendor advisory. CISA advises discontinuing use of the product if mitigations are unavailable.
- Because the flaw is actively exploited, check systems that were exposed before patching for signs of compromise: review web server and PHP-FPM logs for unusual requests or errors, look for recently created or modified PHP files in web directories, unexpected cron jobs, new user accounts and unknown running processes. CISA also refers to forensic triage requirements in its guidance.
- If you find indications of compromise, isolate the system, preserve logs and evidence, and rotate credentials stored on the server (database passwords, API keys, SSH keys).
How to check whether you are affected
Run php -v on the command line and, where used, php-fpm -v (the binary may be named after its version, such as php-fpm8.x). On servers with several PHP versions, check each one, including those configured per site in your hosting panel. A small page calling phpinfo() shows the version a specific website actually uses; remove it again afterwards. Compare the versions you find with the affected and fixed versions in the PHP advisory. Also confirm that services were restarted after the update, since a running PHP-FPM process may still use the old code.
Sources
More sources (8)
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog
- https://www.cisa.gov/news-events/alerts/2026/10/21/critical-vulnerabilities-php-require-immediate-patching
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2026-109618
- https://github.com/php/php-src/security/advisories/GHSA-w8hw-w9fx-j79w
- https://arcticwolf.com/resources/blog/php2shell-critical-php-vulnerabilities-enable-unauthenticated-remote-code-execution/
- https://cert-portal.siemens.com/productcert/html/ssa-566512.html
- https://php2shell.delftintellab.com
- https://www.wiz.io/blog/php2shell-php-rce
Related posts
Alerts ·
OpenSSH on Alpine Linux: login without password via overlong passwords
On Alpine Linux servers with the standard openssh-server package, attackers can log in to accounts without a password, such as key-only accounts. OpenSSH 10.6p2 and updated Alpine packages fix it.
Alerts ·
APT flaw on Debian and Ubuntu lets MitM attackers swap packages and run code as root
A flaw in APT lets an attacker who can modify package downloads replace a verified package and run code as root. Debian and Ubuntu published advisories on November 4. Update APT on all servers.
Alerts ·
Ruby on Rails Active Storage: critical file write flaw via ImageMagick uploads
A critical flaw in Ruby on Rails Active Storage lets unauthenticated attackers write arbitrary files on the server through a crafted upload when ImageMagick processes it. Update to Rails 8.1.4.1 or 8.0.5.2.