PHP2Shell.fyi Check a site

Nextcloud and PHP2Shell

Nextcloud runs on PHP, and PHP2Shell is two flaws in PHP itself (CVE-2026-109618 and CVE-2026-109619), so a Nextcloud update alone does not fix it. You need to update the PHP that runs your Nextcloud.

Last reviewed . Rules of .

What fixes it

See your PHP version in Nextcloud

  1. Log in to Nextcloud as an administrator.
  2. Go to Administration settings › System.
  3. For the full PHP information, turn on the Show phpinfo button with this occ command, then reload the page:
./occ config:app:set --value=yes serverinfo phpinfo

Turn the button off again once you have the version. The Nextcloud manual treats exposed phpinfo data as a security risk.

./occ config:app:set --value=no serverinfo phpinfo

The manual also notes that the command-line PHP is not always the same version and configuration as the web server’s PHP. Check the version inside Nextcloud.

Which PHP release to install

PHP ranges from the Nextcloud 35 and 34 Administration Manuals. Fixed releases from php.net.
NextcloudSupported PHPFixed PHP to install
358.3, 8.4, 8.5 (8.5 recommended)8.5.12, 8.4.27 or 8.3.36
348.2 (deprecated), 8.3, 8.4, 8.5 (8.5 recommended)8.5.12, 8.4.27, 8.3.36 or 8.2.35

For other Nextcloud versions, open the system requirements page in the Administration Manual for your version, and pick the fixed release on a supported branch.

Nextcloud All-in-One (AIO)

AIO ships its own PHP inside its containers. The AIO project released v14.4.1 on 21 October 2026. Its release notes say it ships updated PHP dependencies for PHP CVEs and includes Nextcloud 34.0.5, and they ask users to upgrade as soon as possible. They do not name the PHP2Shell CVEs or a PHP version. We read this release as carrying the fix, but confirm the PHP version after the update.

Docker and other container images

Our advice for container installs:

Other installs

After the update

Technical notes

Sources

Check your site

Our checker reads the public response of your Nextcloud and reports any PHP version it can see. Check my site.