AILINCOM logo AILINCOM
The PHP2Shell vulnerability poses a threat not only to websites
Cover generated by AI
Crius

Crius

Oct 23, 2026
Main category
Digital technologies and IT · Cybersecurity
Additional categories
Technologies and engineering · CybersecurityDigital technologies and IT · Programming Languages

The PHP2Shell vulnerability poses a threat not only to websites

PHP2Shell: The Vulnerability Affects More Than Just Web Hosting

PHP2Shell poses a threat not only to web hosting providers, but also to a wide range of devices and services that use PHP, including NAS interfaces, firewalls, Nextcloud containers, and outdated Pi-hole installations. Currently, QNAP is still working on a fix, while OPNsense and pfSense have already released patches, and Docker images are being rebuilt. Below are recommendations for detecting PHP in your network and mitigating vulnerabilities.

Updates and Patches

Patches for PHP2Shell were released on Wednesday evening, and many hosting providers have already implemented them. The situation is more complicated in home networks, as PHP may be used in components not always recognized as PHP applications, such as NAS web interfaces, firewalls, Nextcloud containers, or older Pi-hole versions.

According to the PHP project, two vulnerabilities—CVE-2026-109618 and CVE-2026-109619—allow unauthenticated code execution and have a CVSS 4.0 score of 9.2. Fixes are available in PHP versions 8.5.12, 8.4.27, 8.3.36, and 8.2.35. There will be no updates for PHP 8.1 and earlier.

Current Situation

Attempts to exploit both vulnerabilities have been observed since Wednesday evening, but no successful attacks have been reported so far. The German BSI has also not confirmed any exploitation cases. QNAP has not received reports of attacks on its devices. The risk lies in the fact that the vulnerabilities can be exploited before a login window appears, and many home lab services are accessible from the internet via port forwarding.

QNAP

QNAP has published security bulletin QSA-26-18. The affected versions include QTS 6.1.0, QTS 5.2.11 and earlier, QuTS hero h6.1.0, h6.0.x and h5.2.11 and earlier, as well as QuTScloud c5.2.9 and earlier. Note Station 3, QNE, QVR Surveillance on ARM32, and TVR OS are also impacted. No fixed versions are available yet; the status is "In Progress." Download Station and PHP Extensions will not receive fixes due to end of support.

Until an update is released, it is recommended to disconnect NAS devices from the internet: disable port forwarding and UPnP on your router, turn off unnecessary services in the Publish Services section, use VPN for remote access, and restrict management port access to the local network in QuFirewall. If the built-in web server is not in use, it should be disabled. The update does not affect PHP inside Container Station containers.

Synology

As of October 22, Synology has not published an official notice regarding PHP2Shell. The latest DSM bulletin is dated September 18. Web Station users with PHP profiles are advised to monitor updates in the Package Center. Until a patch is released, the same recommendations as for QNAP apply: avoid port forwarding and use VPN for remote access. Disabling session.upload_progress.enabled in the PHP profile closes one attack vector but does not fully resolve the issue.

OPNsense and pfSense

The web interfaces of OPNsense and pfSense run on PHP, and both projects quickly released updates. OPNsense provided hotfix 26.7.7 for the Community Edition with PHP 8.5.12 and 26.4.2p3 for the Business Edition with PHP 8.3.36. After updating, it is recommended to restart the captive portal.

Netgate supplies new PHP versions for pfSense Plus 26.07 and 26.03.1, as well as for CE 2.9.0 with PHP 8.5.12; CE 2.8.1 receives PHP 8.3.36. Updates are installed via SSH or console using pfSense-upgrade -c and pkg upgrade. After updating, a reboot is recommended. By default, the interface is only accessible from the local network, and the captive portal is disabled. If the interface was exposed to the internet, the update should be applied immediately.

Nextcloud, WordPress, and Other Containers

Patched tags of official PHP images, such as php:8.4.27-fpm, are available on Docker Hub. Nextcloud All-in-One ships with the new PHP starting from version 14.4.1. Official images for Nextcloud, WordPress, phpMyAdmin, Joomla, and Matomo have also been rebuilt. LinuxServer.io developers reported that all their PHP containers are affected, and new builds will be released after Alpine patches are available.

A running container continues to use the old image until it is recreated. For Docker Compose, this is done with the commands docker compose pull and then docker compose up -d. The php -v command via docker exec will show the current PHP version. If it is 8.5.12, 8.4.27, 8.3.36, 8.2.35, or newer in the same branch, the container is protected.

Linux Servers and Raspberry Pi

If PHP is installed directly on the system, fixes are delivered through distribution package updates. Ubuntu has released patched packages but kept the old version number, as Canonical applies fixes via backport. In Ubuntu 24.04, the patch is php8.3 version 8.3.6-0ubuntu0.24.04.13. Debian distributes fixes through security updates. After updating, all services using PHP must be restarted. For Apache with mod_php, a full Apache restart is required; for PHP-FPM, restart the FPM service.

Pi-hole users need not worry: starting from version 6, Pi-hole no longer requires lighttpd or PHP. If you are using Pi-hole 5, PHP is installed, which is a reason to upgrade.

Temporary Measures in php.ini

Various php.ini settings are being shared online as temporary measures. The PHP project recommends setting memory_limit=-1 as the main configuration for CVE-2026-109618, but notes that this is not a complete solution. For CVE-2026-109619, there is no universal configuration that fully protects against the vulnerability. Such changes only buy time until an update is available.

The most effective protection is a home lab where PHP services are not directly accessible from the internet, and remote access is only possible via VPN, such as WireGuard or Tailscale.


Five Steps for Checking and Securing Your Systems:

  1. Inventory all devices and services running PHP.

  2. Check for available updates and patches.

  3. Recreate containers with updated images.

  4. Restart services after updating.

  5. Restrict access to PHP services to the local network or via VPN only.

#updates#vulnerability#containers#QNAP#php2shell#synology
0 —

Comments (0)

Hot

AI accelerates the growth of cyber risks in construction

Dec 4, 202612/4/26 · 0 reactions

Scientists have developed transparent and flexible wood.

Dec 4, 202612/4/26 · 0 reactions

Metal fuel paves the way to hypersonic speeds

Dec 3, 202612/3/26 · 0 reactions
Recommended
Cybersecurity

AI accelerates the growth of cyber risks in construction

Construction companies are actively adopting artificial intelligence, but they are also facing an increase in cyber risks and data leaks due to unauthorized use of AI. Despite these concerns, only a few are implementing formal security measures.

Materials Science

Scientists have developed transparent and flexible wood.

Scientists have developed a chemical method to densify wood, making it transparent and flexible without mechanical compression. This material could serve as an eco-friendly alternative to plastic, though the technology still requires further refinement before it can be used on an industrial scale.

Materials Science

Metal fuel paves the way to hypersonic speeds

Chinese engineers have tested metallic powder as an alternative to kerosene for jet engines, which could enable aircraft to reach hypersonic speeds. While the technology faces technical and operational challenges, it opens up new possibilities for the future of aviation.