# Advice/Quick requirements related to the PHP vuln?

**URL:** <https://discourse.mailinabox.email/t/advice-quick-requirements-related-to-the-php-vuln/17058>\
**Category:** Maintenance\
**Created:** [October 21, 2026, 2:52am UTC](https://discourse.mailinabox.email/t/advice-quick-requirements-related-to-the-php-vuln/17058 "2026-10-21T02:52:56Z")\
**Posts on this page:** 1\
**Showing post:** 27

<div class="post-metadata">

**Author:** ![mveplus](https://discourse.mailinabox.email/user_avatar/discourse.mailinabox.email/mveplus/32/708_2.png) [@mveplus](https://discourse.mailinabox.email/u/mveplus)\
**Post date:** [October 22, 2026, 7:40am UTC](https://discourse.mailinabox.email/t/advice-quick-requirements-related-to-the-php-vuln/17058/27 "2026-10-22T07:40:19Z")

</div>

**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`.

```auto
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.

---

_[View the full topic](https://discourse.mailinabox.email/t/advice-quick-requirements-related-to-the-php-vuln/17058)._
