English · Revisão 2
Artigo

PHP2Shell: update PHP on exposed servers now

Two critical flaws disclosed in October 2026 allow remote code execution without signing in on vulnerable systems. Exploitation has been reported. Check the PHP version serving your site and apply the vendor update.

2 views

Official PHP programming language logo
PHP logo by Colin Viebrock, CC BY-SA 4.0.

Why this still deserves immediate attention

The PHP project released fixes on October 21, 2026, for CVE-2026-109618 and CVE-2026-109619, known collectively as PHP2Shell. The flaws affect request processing and can allow an attacker without an account to run code on the server with the privileges of the PHP process. This can expose data and credentials accessible to the application, allow unauthorized changes or disrupt services. The Canadian Centre for Cyber Security reported that CISA added both flaws to its Known Exploited Vulnerabilities catalog on October 26.

The fix belongs in the PHP runtime that serves the site. Updating WordPress, Laravel or Composer dependencies alone leaves the runtime unpatched. Include shared hosting, containers, publicly reachable staging environments and instances behind load balancers in your inventory.

1. Identify the PHP version serving the site

Terminal · check command-line PHP and its configuration

php -v
php --ini

The php -v command reports the command-line runtime. The site may use another version through PHP-FPM, an Apache module, FastCGI or a container image. Confirm the version in the service configuration, hosting dashboard or container that serves the application. Avoid publishing a phpinfo() page to check it.

Example package check on Debian or Ubuntu with PHP 8.3 and FPM

dpkg-query -W php8.3-fpm php8.3-cli php8.3-common

2. Update and verify the fix on every instance

The table lists the first fixed releases from the PHP project. Install the latest security update for your supported branch or platform vendor. For distributions that backport fixes, compare the full package version with the official advisory. For example, Canonical fixed both flaws on Ubuntu 24.04 in package 8.3.6-0ubuntu0.24.04.13. For unsupported branches, migrate to a supported version or confirm whether your vendor still supplies a fix.

PHP branchFirst fixed release from the PHP project
8.58.5.12
8.48.4.27
8.38.3.36
8.28.2.35
A row of equipment in server racks
Illustrative server photograph by CSIRO via Wikimedia Commons, CC BY 3.0. The card cover is cropped for display.

Update through the distribution, hosting or image vendor. Reload or restart PHP processes as required by your environment, or rebuild and deploy patched containers. Verify the effective version on every instance and test the site. For managed hosting, ask for the version or fixed package identifier and confirmation that it is already serving requests.

3. Reduce exposure and investigate signs of compromise

If you cannot update immediately, temporarily restrict access to exposed services and follow your vendor’s guidance. A firewall or proxy can reduce exposure, but the update fixes the runtime. If you see unexplained file changes, unexpected processes or unusual outbound connections, isolate suspected instances, preserve logs and start incident response. After containment, assess whether to restore from a trusted baseline and rotate potentially exposed credentials. Patching does not remove an existing compromise.

Technical sources and image credits

Referência: PHP Project — October 21 security releases and later updates

Referência: CTIR Gov (Brasil) — Alerta 93/2026

Referência: Canadian Centre for Cyber Security — AL26-026, Update 2

Referência: Canonical — Ubuntu Security Notice USN-8948-1

Referência: Red Hat — RHSB-2026-013

Referência: PHP Project — supported versions

Referência: PHP logo — Colin Viebrock, php.net

Referência: PHP logo license — CC BY-SA 4.0

Referência: Server racks — CSIRO, Wikimedia Commons

Referência: CSIRO photograph license — CC BY 3.0

Comments

There are no approved comments yet.

Sign in to comment

Powered by Usina Docs · pre-alpha · f54465d

Imagem em tamanho original