PHP Just Patched a Critical Flaw. Ask Your Host Which Version Your Site Runs.
Published on: Nov 25, 2026
4 min read.
On November 19, 2026, the PHP project released security updates for every supported branch. One of those fixes closes a critical flaw nicknamed phpAfterShell. It is tracked as CVE-2026-126714. PHP’s maintainers rate it Critical, 9.2 out of 10 on the CVSS 4.0 scale.
If your business site runs on WordPress, it runs on PHP. Most owners never check which PHP version the server uses. This is the week to ask.
What Happened
PHP stores visitor session data in files by default. When a session is updated, PHP writes the new data into the existing file. If that write stops halfway, the file can keep the start of the new session and the end of the old one.
The next time PHP opens that session, it can read the mixed data as if it were valid. Carefully arranged content can make ordinary text look like an object. In the worst case, and when other conditions are also present, that can let an attacker run their own code on the server.
PHP says successful code execution needs three things. The attacker must be able to influence the session data. A write must stop at a useful point. The application must also have a suitable object chain that turns those objects into code execution. The flaw can also change session values, such as who is logged in.
One way to influence session data is a built in PHP feature called upload progress. When it is on, a file upload can write to the session before the site’s own code runs. The same problem can also appear when an application stores large user controlled strings in a session.
The security company Depthfirst found the flaw and reported it to the PHP project. Neither PHP nor Depthfirst reports any attacks using phpAfterShell. The fix empties the session file before each write and stops the write if that step fails. A cut off write can still lose session data. It can no longer leave old data behind for an attacker to use.
How This Differs From PHP2Shell
I wrote last month about PHP2Shell, two critical PHP flaws fixed on October 21. Those were CVE-2026-109618 and CVE-2026-109619. They involved memory corruption while PHP handled web requests. CISA later added both to its Known Exploited Vulnerabilities catalog, which means attackers were already using them.
phpAfterShell is a different flaw. It lives in the way PHP writes session files. Depthfirst says it found this issue while studying the PHP2Shell patch. That earlier patch limited which objects could load during upload progress. It did not change the file write. Servers that were updated on October 21 still need this November 19 update.
Who Is Affected?
This affects the files session handler, which PHP uses by default. Sessions kept in Redis, a database or another store are outside this specific file write defect.
According to the official PHP advisory, these versions need the update.
| PHP branch | Update to |
|---|---|
| PHP 8.5 | 8.5.13 |
| PHP 8.4 | 8.4.28 |
| PHP 8.3 | 8.3.37 |
| PHP 8.2 | 8.2.36 |
| PHP 8.6 | 8.6.0 already includes the fix |
| PHP 8.1 and older | No regular support. Move to a supported patched branch. |
The same November 19 releases also fix other PHP security flaws.
This flaw is in PHP, the language your WordPress site runs on. Updating WordPress, your theme or your plugins will not close it. Only a patched PHP version will. On many managed hosts, that update is the host’s job. On a VPS or a self managed server, it is usually yours or your developer’s.
Why This Matters for Your Business
A compromised site can redirect visitors to scam or malware pages. It can expose customer data from forms, orders or accounts. It can get flagged by Google, which hurts your search rankings.
You do not need to understand session files to act. You do need to know which PHP version serves your site, and whether it includes this fix.
How to Get Protected
1. Back up your site.
Save your files and your database. Keep a copy off the server and make sure you can restore it.
2. Check which PHP version you run now.
In your WordPress dashboard, open Tools, then Site Health, then Info, then Server. Look at the PHP version. You can also find it in your hosting panel, often under PHP Version, Select PHP Version or MultiPHP Manager.
3. Ask your host whether the fix is already in place.
Ask two things. Which PHP version is serving my site right now? Has it been patched for CVE-2026-126714? Some Linux packages include a fix without changing the version number you see, so a clear yes or no matters. If you use containers, ask whether the image has been rebuilt and redeployed.
4. Update PHP to a patched release.
If you are not protected, move to 8.5.13, 8.4.28, 8.3.37 or 8.2.36, or to 8.6.0. If you run PHP 8.1 or older, plan a move to a supported branch. Test that move on a staging copy first.
5. Confirm the version that serves web requests.
After the update, check Site Health again. The PHP version should match the patched release. If you manage the server yourself, restart PHP or Apache so every worker loads the new version.
6. Test the site.
Log in to WordPress. Open key pages. Submit a form. If you run a store, place a test order you can refund. Watch for login problems or error messages.
7. Use a temporary setting only if you cannot update yet.
If the update has to wait, and your site does not rely on upload progress, ask your host to turn off session.upload_progress.enabled and restart the PHP workers. PHP says this closes that input path. It does not replace the update, because apps that store untrusted data in sessions in other ways remain affected.
Let Me Handle the Update
Most site owners should not have to chase PHP versions on their own.
I build, host and secure WordPress and React sites for small businesses. I can also take over hosting and security for a site you already have. With my managed hosting and security maintenance you get
- security releases applied quickly
- updates tested on a staging copy before they go live
- daily backups stored off the server and a tested restore plan
- plugin, theme and core updates checked after each run
- 24/7 uptime and security monitoring
You run the business. I keep the site safe, current and online.
Want help checking your PHP version and applying this update? Contact me and I will review your site and work with your host if needed.