Skip to content

PHP2Shell + phpAfterShell builds for RunCloud, November 20, 2026

Latest

Choose a tag to compare

@seppegadeyne seppegadeyne released this 20 Nov 08:18

Unofficial patched builds of RunCloud's PHP 5.6 to 8.1 for Ubuntu 16.04 to 24.04, now with the fixes for PHP2Shell (CVE-2026-109618, CVE-2026-109619) and phpAfterShell (CVE-2026-126714).

phpAfterShell: PHP's default files session handler only truncated a session file before writing when the new data was shorter, so an interrupted write could leave a mix of the new and the old session, which PHP can later unserialize as objects (PHP advisory GHSA-fm2m-fjf5-v3cp, depthfirst). PHP fixed it on November 19, 2026 in 8.2.36, 8.3.37, 8.4.28 and 8.5.13 only.

What changed since v2026.10.21:

  • Every build now applies two patches in order: the PHP2Shell patch and php-X.Y-phpaftershell.patch, Ondřej Surý's unchanged backport of the upstream fix (patches/README.md).
  • 23 tarballs, file names phpXXrc-<version>-php2shell-phpaftershell-<codename>.tar.gz.
  • No 18.04 builds of 8.2 and 8.3 anymore: RunCloud ships 8.2.36 and 8.3.37 for 18.04 itself. If you installed ours, apt-mark unhold php82rc php83rc and apt-get install --only-upgrade php82rc php83rc.

Tested: each tarball has the same file list, linked libraries and built-in modules as its October build; the out-of-memory test still exits with 1; and strace shows ftruncate(fd, 0) before the session write, which the October builds did not do.

Not included: the other security fixes of November 19 (among them CVE-2026-129496, a timezone cache use-after-free). For those, use Surý's packages on a supported Ubuntu (check the changelog).

Upgrade: bash deploy-core.sh <tag> <tarball>, the same as before; the first backup (RunCloud's original files) is kept. Not affiliated with RunCloud or the PHP project; provided as is.