cybersecurity Request an audit

News / 25 November 2026

phpAfterShell: after PHP2Shell, a second critical PHP vulnerability calls for another update

PHP is the language behind a large share of websites and online shops, including those built with WordPress. Last month a serious vulnerability, PHP2Shell, was fixed. Researchers who studied the fix found a second road to the same result right next to it. Whoever updated in October has to update once more.

In short: the vulnerability is called phpAfterShell (CVE-2026-126714) and scores 9.2 out of 10. The versions that close it are PHP 8.2.36, 8.3.37, 8.4.28 and 8.5.13. No real attacks are known so far, but after PHP2Shell the first attempts appeared within hours.

The first hole was patched. Two steps away, in the same wall, there was a second one.

What phpAfterShell is

The vulnerability was made public on 19 November 2026, together with the fix. It was described by the research company Depthfirst, and the PHP project published its own advisory the same day.

The short explanation: PHP remembers each signed-in visitor's data in a session file. When it updated that file, it wrote over the old one without emptying it first. If the write was interrupted, the file was left with a new beginning and an old ending, and PHP could later read that mix as valid data. Under certain conditions, the PHP advisory says, this can lead to code running on the server with the rights the website runs under.

What is affected is the default way of keeping sessions in files, the setting most installations come with. According to the advisory the problem is not limited to one feature or one version, and the code in question is very old.

The link to PHP2Shell

PHP2Shell is the name given to vulnerabilities made public on 21 October. According to TechRadar's summary, Amazon reported an exploitation attempt four days before publication, and Cloudflare's chief executive spoke of thousands of attempts in the first ten hours.

That fix restricted what can happen at one particular moment of processing but left the way the session file is written unchanged. Depthfirst says that is exactly where it found the gap: "This gave us a new exploitation path that the php2shell patch did not address." So this is not a wrong fix, but one that closed one road and left the next one open.

The researchers make one more point worth keeping: AI tools help both in finding vulnerabilities and in repairing them, but a hurried fix can stop the known attack while leaving the deeper problem in place.

Which versions close it

  • Fixed versions: PHP 8.2.36, 8.3.37, 8.4.28 and 8.5.13, according to the PHP advisory.
  • PHP 8.6: the sources disagree. SecurityWeek lists it among the fixed versions, while the PHP advisory does not mention it and Depthfirst gives it as vulnerable. If you use it, check the PHP advisory directly.
  • Temporary measure: switching off the session.upload_progress.enabled option if you do not need it. The advisory says this reduces the risk but does not replace the update.
  • Real attacks: SecurityWeek writes that there appear to be no reports of exploitation. The researchers have not published all the technical detail.

What it means for a company in Europe

If you have a website or an online shop, the chances are high that it runs on PHP, even if you have never heard the word. You do not choose the PHP version from the WordPress dashboard. The hosting company or whoever runs the server sets it. That is why this update does not happen on its own when you press "Update" on the site.

The second lesson is that one update does not end the story. After every big vulnerability, researchers and attackers look closely at the same area of code. A second and a third are normal. What counts is having a way to find out and update quickly, not hoping the first was the last.

For a company in the EU the stakes are more than the website. A shop taken over through its server can leak customer data, and a personal data breach may have to be notified to your national data protection authority within 72 hours under GDPR. If your company falls under NIS2 in your country, handling vulnerabilities in the software you run is one of the minimum measures the directive sets.

What to do now

  • Find out which PHP version your site runs. You can see it in your hosting control panel or, in WordPress, under Tools, Site Health.
  • Ask your hosting company for one of the fixed versions. If you run your own server, update the PHP packages and restart the service.
  • If the site runs a PHP version that no longer receives updates, plan the move to a maintained one now. Every month of delay means vulnerabilities that will never be fixed.
  • Update the platform, theme and plugins the same day. A new PHP under an old WordPress solves half the problem.

Our security audit checks the versions visible from outside and the known vulnerabilities that match them, starting with the ones actively exploited. For shops there is a dedicated audit, and if the site has already been compromised, our guide to hacked WordPress sites tells you where to start. With Security Watch you hear within one working day when a vulnerability that concerns you appears.

Sources

Published on 25 November 2026. The fixed versions are those in the PHP project's official advisory. The PHP2Shell details come from TechRadar's summary; we did not read the original advisories for this article.

Cybersecurity news

All news

Request an audit

Find out what you expose, before someone else does.

Tell us who you are, confirm by email, and we will call you. Nothing is checked until you agree.

  1. You confirm by email, then we call you within two working days to understand your company and what should be checked.
  2. You get a fixed quote and a permission form that says exactly what we may test, and when.
  3. We do the work in the window you chose, and keep you posted.
  4. You get the report and a walkthrough call, then one retest of its findings within 30 days.

Only systems you own or may have checked / written permission first

Request an audit

No passwords or access details here. We ask for what we need after you sign the permission form.

After you send this, we email you a link to confirm it. We contact you only after you confirm.