diff --git a/README.rst b/README.rst index b98a6ab..f278a66 100644 --- a/README.rst +++ b/README.rst @@ -80,6 +80,28 @@ Log of php80-fpm The log of php80-fpm can be found at `/opt/remi/php80/log/php-fpm/error-nextcloud.log` +PHP upload limits +================= + +Nextcloud runs with the PHP defaults ``post_max_size = 8M`` and +``upload_max_filesize = 2M``. They apply only to form uploads, like the user +avatar and the theming logo: normal file uploads use WebDAV ``PUT`` requests and +are not limited by them. + +Do not raise ``post_max_size`` over 32M: larger values weaken the mitigation for +the PHP vulnerabilities CVE-2026-109618 and CVE-2026-109619 +(see the `PHP advisory `_). + +PHP-FPM workers +=============== + +The Nextcloud pool sets ``pm.max_requests = 1``: each PHP-FPM worker serves +one request and is then replaced, so no state is left for the next request +(mitigation for CVE-2026-109619). The pool file +``/etc/opt/remi/php80/php-fpm.d/000-nextcloud.conf`` is ``%config(noreplace)``: +if it was edited locally, the update writes the new version to +``000-nextcloud.conf.rpmnew`` and the setting must be added by hand. + Cockpit API =========== diff --git a/root/etc/opt/remi/php80/php-fpm.d/000-nextcloud.conf b/root/etc/opt/remi/php80/php-fpm.d/000-nextcloud.conf index c5de1f7..0c7c57c 100644 --- a/root/etc/opt/remi/php80/php-fpm.d/000-nextcloud.conf +++ b/root/etc/opt/remi/php80/php-fpm.d/000-nextcloud.conf @@ -14,6 +14,8 @@ pm.max_children = 50 pm.start_servers = 5 pm.min_spare_servers = 5 pm.max_spare_servers = 35 +; Mitigation for CVE-2026-109619: one request per worker - NethServer/dev#8256 +pm.max_requests = 1 user = apache; group = apache