
Editorial illustration; the dashboard does not show a real website or incident.
Published on October 23, 2026.
Whenever a critical PHP vulnerability starts making the rounds in local dev groups and WhatsApp chats, two things happen almost immediately: hosting dashboards get flooded with panicked tickets, and people who have never touched a line of PHP start wondering if their WordPress site is already compromised.
The “PHP2Shell” warnings circulating right now refer to two critical flaws in PHP itself—tracked as CVE-2026-109618 and CVE-2026-109619—which the PHP project patched on October 21, 2026. Both issues can allow an attacker to execute arbitrary code on a vulnerable server without logging in first. That is serious enough to drop what you are doing and check your stack, even if a scary headline is not a diagnosis of your own site.
Why “I don’t write PHP” doesn’t get you off the hook
PHP is the server-side engine behind WordPress, WooCommerce, Drupal, Laravel, and a huge chunk of SME company portals in Malaysia. When someone opens your homepage, the browser never sees PHP directly—the web server hands the request to PHP, PHP talks to MySQL or MariaDB, assembles the HTML, and sends it back.
That means updating your WordPress plugins, changing your wp-admin password, or turning on HTTPS does nothing to fix a bug in the PHP binary underneath. The vulnerability lives one layer below your application code, in the runtime that executes it.
What CVE-2026-109618 and CVE-2026-109619 actually do
Without getting bogged down in C memory-allocator internals, both flaws stem from how PHP cleans up request state and memory when handling incoming traffic. One bug triggers when a request hits memory limits at an awkward point during execution; the other leaves a reference pointing to memory that was already freed from an earlier state.
Under the right request sequence, the PHP engine gets tricked into treating attacker-controlled input as executable instructions rather than plain data. Because this happens before WordPress or Laravel even finishes booting its authentication checks, the PHP Foundation classifies both as unauthenticated remote code execution (RCE) vulnerabilities.
If an attacker lands that exploit on an exposed server, the blast radius depends on what user permissions your PHP worker has:
- Dropping web shells or backdoors into
wp-content/uploadsor theme folders - Reading
wp-config.phpor.envfiles to harvest database passwords, SMTP credentials, and payment gateway keys - Injecting SEO spam, phishing pages, or credit-card skimmers into checkout flows
- Pivoting to other sites sharing the same cPanel or VPS user account
Checking the PHP version that actually serves your site
The PHP project released patched builds in PHP 8.5.12, 8.4.27, 8.3.36, and 8.2.35. PHP 8.1 and older are already past upstream end-of-life, so unless your Linux distro or hosting vendor explicitly backports security fixes (common on RHEL, AlmaLinux, or Ubuntu LTS), you are running unpatched software.
One trap I see developers fall into constantly: running php -v over SSH and assuming they are safe. On servers running MultiPHP (cPanel, DirectAdmin, Plesk) or multiple PHP-FPM pools, the CLI binary is often a completely different version from the worker serving Nginx or LiteSpeed.
Check what is actually running on the server:
# Check which PHP-FPM or LiteSpeed PHP binaries are active
ps aux | grep -E "php-fpm|lsphp"
# On Ubuntu/Debian, inspect the installed package version and changelog
apt policy php8.3-fpm
zcat /usr/share/doc/php8.3-fpm/changelog.Debian.gz | grep -i "CVE-2026-10961"
# On AlmaLinux / RHEL (check for vendor backports)
rpm -q --changelog php-fpm | grep -i "CVE-2026-10961"
If you are on WordPress without SSH access, open Tools > Site Health > Info > Server inside wp-admin to see the exact PHP version serving web requests.
How to patch without breaking production
If you manage your own VPS or cloud instance, update through your OS package manager or container base image—never grab random patches from forum links. Once the package upgrades, make sure the long-lived worker processes actually reload:
# Ubuntu / Debian with PHP-FPM
sudo apt update && sudo apt install --only-upgrade php8.3-fpm php8.3-common
sudo systemctl reload php8.3-fpm
# OpenLiteSpeed / LiteSpeed Enterprise (common on Malaysian shared/cloud hosts)
sudo systemctl restart lsws
If you are on managed or shared hosting, open a support ticket with a direct question: “Which exact PHP build is serving yourdomain.com, and has it been patched for CVE-2026-109618 and CVE-2026-109619?” A vague “our servers are protected by ModSecurity” is not an answer. Ask for the package version or patch date.
After the update, smoke-test the paths that usually break when a minor PHP update lands: login, contact forms, search, checkout, and any custom cron jobs. Do not silently roll back to an older vulnerable PHP version just because a dusty plugin throws a deprecation warning—fix or replace the plugin.
Why a WAF is only a seatbelt, not a fix
The PHP advisory notes a few temporary mitigations—tightening request size limits, disabling certain session upload-progress settings, and recycling workers—for teams waiting on a maintenance window. Similarly, putting Cloudflare WAF or ModSecurity in front of a site can block known exploit payloads.
Treat those as temporary breathing room, not a cure. A WAF inspects patterns it already recognizes; it cannot fix memory corruption inside the PHP engine itself, and attackers routinely find encoding tricks around signature rules.
Checking if someone got in before you patched
Patching closes the door, but it does not evict anyone who walked in yesterday. Before you call it done, run a quick sanity check on your server and WordPress install:
# Look for PHP files modified in the last 7 days inside uploads (there shouldn't be any)
find /var/www/html/wp-content/uploads -type f -name "*.php" -mtime -7
# List admin users via WP-CLI to spot rogue accounts
wp user list --role=administrator
Also check crontab -l for unfamiliar scheduled tasks, look at your web server access logs for sudden bursts of POST requests returning 500 errors, and compare core files with wp core verify-checksums. If you spot tampering, preserve the logs, rotate database and API secrets from a clean machine, and restore from a verified backup rather than trying to hand-delete suspicious files.
For related guides that complement this checklist, see:
- Moving a Website Without Losing Visitors: A Safer Migration Guide
- Your Website Has Backups—But Can You Actually Restore Them?
- Your Website Is Down, but the Server Is Fine: A Practical DNS Troubleshooting Guide
Write down your hosting provider, which PHP runtime serves each domain, where your off-site backups live, and who is responsible for OS updates. The next time a critical CVE drops on a weekday night, having that one-page inventory turns panic into a 15-minute checklist.