Every PHP 8.1 release up to 8.1.34 is vulnerable to PHP2Shell, and there is no new official release: PHP 8.1 reached end of life on 31 December 2025. Some distributions and panels ship builds with PHP’s backport under the same version number. Use one as a bridge and plan the move to PHP 8.3 or newer.
On this page
Affected and fixed PHP 8.1 versions
| Vulnerable | All PHP 8.1 releases (up to 8.1.34) |
|---|---|
| First fixed release | None. PHP published a source backport, not a release |
| Branch status | End of life (31 Dec 2025) |
Because the backport doesn’t change the version number, a patched PHP 8.1 still reports 8.1.34. Version checks, including ours, will say vulnerable. For PHP 8.1, the package changelog or build date is the authority.
Builds that carry the backport
These builds include PHP’s backport for 8.1 under the same version number.
| Platform | Package | How to tell it’s fixed | Guide |
|---|---|---|---|
| Ubuntu 22.04 LTS | php8.1 | 8.1.2-1ubuntu2.28 | Steps |
| cPanel EasyApache 4 | ea-php81 | Patched rebuild reported: changelog must list both CVE IDs | Steps |
| Plesk (Linux) | PHP 8.1 handler | Build date 21 Oct 2026 or later (reported) | Steps |
| DirectAdmin CustomBuild | php81 | Rebuilt after updating CustomBuild | Steps |
Some managed hosts also patched old versions for their customers: did my host patch?
Check which PHP 8.1 you run
The PHP that serves your website can differ from the one php -v shows in a terminal. How to find the one that matters. Then check that build:
# Debian / Ubuntu packages: the changelog should list both CVE IDs
zgrep -E 'CVE-2026-10961(8|9)' /usr/share/doc/php8.1-common/changelog.Debian.gz
# cPanel EasyApache 4
/opt/cpanel/ea-php81/root/usr/bin/php -v
rpm -q --changelog ea-php81-php-common | grep -E 'CVE-2026-10961(8|9)'
# Plesk
/opt/plesk/php/8.1/bin/php -v && /opt/plesk/php/8.1/bin/php -i | grep -i 'build date'
# DirectAdmin
/usr/local/php81/bin/php -v Paste the version into the checker and it will say vulnerable for any 8.1.x, since it only sees the number. That’s expected: rely on the changelog or build date above.
Docker images for PHP 8.1
The official Docker php:8.1 images get no updated tags for end-of-life branches. If your containers run PHP 8.1, rebuild them on php:8.3 or newer. Docker & Kubernetes guide
The November 2026 PHP security release
PHP released no 8.1 build on 19 November 2026. Several of the bugs fixed that day are older than PHP 8.1: PHP's advisories trace the session file bug (CVE-2026-126714) back to PHP 4.1.0 and the PHP-FPM request smuggling bug (CVE-2026-129289) to 5.6.0. Some vendors have shipped backports; check your package changelog for the CVE IDs, and see PHP 8.1 and older for the options.
Until your PHP has the fixes, keep session upload progress off in the php.ini your web server uses, and make sure your web server doesn't reuse FastCGI connections (how to check):
session.upload_progress.enabled = 0 How long PHP 8.1 is supported
End of life since 31 December 2025. PHP 8.1 reached end of life on 31 December 2025. A patched build only covers PHP2Shell; future PHP bugs won’t be backported. Move to 8.3 or newer: step-by-step upgrade plan.
Rather not do it yourself? We patch and verify one server, from €79; old PHP upgrades are scoped on a call.
Other branches: PHP 8.5 · PHP 8.4 · PHP 8.3 · PHP 8.2 · PHP 7.4 · all fixed versions