FineShot.AI
•2 min read

phpAfterShell (CVE-2026-126714): 12 New PHP Bugs, Why php -v Lies, and How to Fix Them

On 19 November 2026, PHP fixed 12 new security bugs in one release, and four of them are rated critical (CVSS 9.2). The headline one is phpAfterShell (CVE-2026-126714). If you patched PHP in October for PHP2Shell, you are still exposed to all 12.

And a surprise from my demo: php -v still shows the same version after the fix. Here are the major bugs, how to check the right thing, and the fix.

Check your own system first. Every server is different, so don’t blindly copy commands or setting changes. Go to the official advisory for your system: Ubuntu · Debian · Red Hat · PHP changelog.

Watch the video

The major bugs one by one, the other six, and a real Ubuntu 26.04 demo: check, a quick mitigation and the fix.

The quick fix

Update PHP and restart PHP-FPM or Apache. On Docker, pull the new image and rebuild.

  • Ubuntu 26.04: 8.5.4-0ubuntu1.6 · 24.04: 8.3.6-0ubuntu0.24.04.14 · 22.04: 8.1.2-1ubuntu2.29
  • RHEL 7 / 8 / 9 / 10: fixed 20 to 23 Nov (sudo dnf update 'php*')

The major bugs

BugWhat happens
phpAfterShell (CVE-2026-126714)A half-written session file turns into attacker objects
Serializer mismatch (CVE-2026-115560)Upload progress data is read the wrong way
PHP-FPM request smuggling (CVE-2026-129289)No login needed, only with keep-alive to FPM
Timezone cache use-after-free (CVE-2026-129496)One request can crash a worker
FPM local root (CVE-2026-129291)A risky option is ON in the official Docker images

The other six are covered in the video. Redis and database session handlers are not affected by phpAfterShell itself.

Check your server: php -v is lying

Distros backport fixes without changing the version number, so php -v can’t tell you if you’re patched. Check the package and its changelog instead. What I ran on the test VM:

php -v | head -1                      # still 8.5.4 after the fix!
dpkg-query -W php8.5-fpm              # the package version is what changes
zgrep -c CVE-2026-126714 /usr/share/doc/php8.5-common/changelog.Debian.gz   # 0 = not fixed yet

Then the fix:

sudo apt update && sudo apt install --only-upgrade php8.5-cli php8.5-common php8.5-fpm php8.5-readline
sudo systemctl restart php8.5-fpm

After the upgrade the package went from 8.5.4-0ubuntu1.5 to 8.5.4-0ubuntu1.6, the changelog now names the CVE, and php -v still said 8.5.4.

Tested on a throwaway VM. Educational only, no exploit shown. Understand each command, try it on staging first, and act at your own risk.

Summary

  • The release: 12 PHP bugs on 19 Nov 2026, four rated 9.2. October’s PHP2Shell patch doesn’t cover them.
  • Check: the package version and changelog, not php -v.
  • Fix: update PHP, restart PHP-FPM / Apache, rebuild Docker images.

Watch the October story first: PHP2Shell · PHP2Shell + Fragnesia = Root

Sources: NVD · Red Hat RHSA-2026:102226 · depthfirst (phpAfterShell). phpAfterShell was found by depthfirst.


More on YouTube

Prefer watching? The full phpAfterShell walkthrough is on our YouTube channel: watch the video. For more hands-on breakdowns of security bugs, Linux servers and dev tools, subscribe at youtube.com/@fineshotai.