Advice/Quick requirements related to the PHP vuln?

PHP2Shell (CVE-2026-109618 / CVE-2026-109619) affects Mail-in-a-Box on Ubuntu 22.04.
Roundcube, Nextcloud and Z-Push run on php8.0-fpm from ppa:ondrej/php. It’s critical, unauthenticated RCE in the interpreter itself, and I’ve already seen a php2shell-scan probe on my box. Unattended upgrades won’t pick up the fix by default, because it comes from the PPA.

PHP 8.0 is EOL. There’s no official 8.0 release with the fix. Ondřej has packaged PHP’s own source backport as 1:8.0.30-25.

sudo apt update
apt-cache policy php8.0-fpm        # candidate should be 1:8.0.30-25 or later
sudo apt install --only-upgrade 'php8.0*'
sudo systemctl restart php8.0-fpm  # restart, not reload, so every worker is replaced
zgrep CVE-2026-10961 /usr/share/doc/php8.0-fpm/changelog.Debian.gz
  • The last command must print a changelog entry naming both CVEs. No output means you’re not patched. php -v shows 8.0.30 either way.
  • If -25 isn’t on your mirror yet: sudo systemctl stop php8.0-fpm && sudo systemctl mask php8.0-fpm. Masking stops apt or a setup run from starting it again. SMTP, IMAP and /admin keep working. Webmail, Nextcloud/CalDAV/CardDAV and ActiveSync phones stop until you unmask it.
  • If you can’t patch or stop it: PHP’s interim mitigations are session.upload_progress.enabled=0 and an admin-level memory_limit=-1, then restart all workers. Both are partial.
  • Checking for attempts: grep the nginx access logs for php2shell-scan and the error log for Allowed memory size. Also look for repeated 500s after multipart POSTs, oversized PHPSESSID cookies and unexplained FPM worker restarts. That user agent is just one tool, so a clean grep means no indicators found, not that nobody tried.
2 Likes