
Critical PHP Security Update: How to Protect Your WordPress Website
On October 21, 2026, the PHP project released emergency security updates for two critical vulnerabilities—CVE-2026-109618 and CVE-2026-109619—that can allow unauthenticated remote code execution. If your WordPress site runs an affected PHP build, updating WordPress plugins alone is not enough.
The PHP project says there are no complete mitigations and that updating is the safe choice. This guide explains how to confirm exposure, choose the correct patched release, test compatibility, and roll out the change without turning an urgent security fix into avoidable downtime.
What was released
The official PHP 2026 release archive lists patched releases for supported PHP branches:
PHP 8.5.12
PHP 8.4.27
PHP 8.3.36
PHP 8.2.35
The vulnerabilities are rated critical and may allow code execution without authentication. That phrase deserves attention, but it does not justify guessing about exploit details or applying random server rules. Confirm the runtime, patch it, and verify the site methodically.
Why WordPress site owners are affected
WordPress is executed by PHP. Themes, plugins, wp-admin, REST requests, cron events, form handlers, and checkout callbacks all depend on the PHP runtime supplied by the server. Keeping WordPress core current does not replace a PHP security update.
A vulnerable runtime can remain underneath a fully updated dashboard. Conversely, a hosting provider may already have applied a patched package while retaining the same major and minor version. The complete patch number—not simply “PHP 8.2” or “PHP 8.4”—is what matters.
Step 1: Identify the production PHP version
In WordPress, open Tools → Site Health → Info → Server and record the complete PHP version.
Check the hosting control panel for the PHP version assigned to the production domain.
If you manage the server, verify the web-facing PHP-FPM or Apache module—not only the command-line PHP binary.
Repeat the check for staging, cron workers, additional nodes, and containers that may use a different runtime.
On managed hosting, ask whether the provider has backported the security fixes if its displayed version differs from the upstream number. Request a written confirmation or advisory link rather than relying on “we handle security” as proof.
Step 2: Back up and create a rollback point
Create a restorable backup of both the database and site files. Confirm that the backup completed and that you know how to restore it. For ecommerce or membership sites, account for orders and registrations created between the backup and maintenance window.
If the site already shows database errors, fix those before changing runtimes. Webcurry’s safe WordPress database-connection diagnostic helps separate credential, server, and database failures.
Step 3: Test the patched PHP build on staging
Clone the production configuration closely enough that the test is meaningful. Switch staging to the patched PHP release and inspect the PHP error log before clicking through the site. Deprecation notices, fatal errors, missing extensions, and type errors often reveal compatibility problems faster than visual inspection.
Homepage, key landing pages, navigation, search, and logged-in views.
WordPress admin, page builder, media upload, and plugin settings.
Contact forms, email delivery, CAPTCHA, and CRM handoffs.
Cart, checkout, payment callbacks, refunds, taxes, and shipping calculations.
REST API, webhooks, scheduled events, WP-CLI tasks, and external integrations.
Image processing, PDFs, imports, exports, and large uploads.
For upload-specific failures, use the partial WordPress upload diagnostic rather than loosening permissions or PHP limits blindly.
Step 4: Check theme and plugin compatibility
Update supported plugins and themes before the PHP switch where their release notes require it. Remove abandoned extensions from staging tests, but do not combine a dozen unrelated production changes with the security rollout.
If the site slows down or wp-admin becomes unstable after a plugin update, follow Webcurry’s plugin isolation workflow. Test one variable at a time so the PHP upgrade remains auditable.
Step 5: Update production in a monitored window
Record baseline response times, error rate, checkout tests, and scheduled-task status.
Place the site in maintenance mode only if the hosting change requires it.
Apply the patched PHP release through the host or server package process.
Restart the relevant PHP workers if your environment does not do so automatically.
Clear opcode and application caches after confirming the new runtime is active.
Run the same critical-path tests used on staging.
Monitor PHP, web-server, CDN, payment, and application logs.
What not to rely on
A WordPress security plugin cannot patch the PHP interpreter.
Hiding the WordPress version does not fix a runtime vulnerability.
A CDN or web application firewall is not a complete substitute for the patched release.
Changing file permissions to 777 increases risk and is unrelated to this fix.
A successful homepage load does not prove checkout, cron, forms, or integrations work.
PHP 8.2 needs a second decision
The official PHP supported-versions page warns that PHP 8.2 reaches end of life on December 31, 2026. Updating to 8.2.35 addresses these vulnerabilities, but it should be paired with a plan to move to a newer supported branch after compatibility testing.
How to verify the repair
Recheck the complete production version from WordPress and the hosting layer. Confirm that no pool, worker, or secondary node still serves an older build. Review new 4xx and 5xx patterns, PHP fatal errors, payment callbacks, form submissions, scheduled events, and media processing for at least one normal business cycle.
If the patched runtime suddenly produces access errors, diagnose the exact rule rather than disabling protection. See Webcurry’s guide to finding the source of a WordPress 403 response.
Frequently asked questions
Which PHP versions contain the October 2026 security fixes?
The PHP project released patched versions 8.2.35, 8.3.36, 8.4.27, and 8.5.12. Confirm the exact version offered by your hosting provider and move to a supported patched branch rather than assuming that any PHP 8 version is safe.
Do these PHP vulnerabilities affect WordPress?
WordPress runs on PHP, so a vulnerable PHP runtime can expose the server even when WordPress core and plugins are current. Actual risk depends on the hosting environment and configuration, but the PHP project says the flaws can permit unauthenticated remote code execution and recommends updating immediately.
Can a WordPress security plugin fix the vulnerable PHP version?
No. A WordPress plugin operates above the PHP runtime and cannot patch vulnerabilities inside PHP itself. A firewall may reduce some exposure, but the PHP project says there are no complete mitigations; installing a patched PHP release is the safe response.
Should I change PHP versions directly on a live WordPress site?
Not without preparation. Back up files and the database, clone the site to staging, verify theme and plugin compatibility, test forms and checkout, and schedule the production change during a monitored maintenance window.
How can I check the PHP version used by WordPress?
In WordPress, open Tools → Site Health → Info → Server and look for the PHP version. Your hosting panel or a command-line check can confirm the runtime serving the production site.
What should I test after updating PHP?
Test the homepage, admin login, forms, checkout, payment callbacks, scheduled tasks, uploads, search, API integrations, and error logs. Clear relevant caches only after the new runtime is active, then monitor 5xx errors and PHP warnings.
Is PHP 8.2 still safe to use?
PHP 8.2.35 contains these fixes, but PHP 8.2 is scheduled to reach end of life on December 31, 2026. Treat the patch as urgent protection and plan a controlled move to a newer supported branch.
The practical takeaway
This is a patch-now issue, but not a patch-recklessly issue. Identify every active runtime, create a rollback point, test the patched branch on staging, update production, and verify business-critical workflows. Security updates work best when urgency is paired with evidence.
Comments