Upgrade to the fixed release for your branch: 8.5.12, 8.4.27, 8.3.36, 8.2.35.Vendor announcement
Restart php-fpm (or your web server) after upgrading so workers load the new binary.
Using distro packages? Distros backport fixes under their own version numbers. Check your distro's status for CVE-2026-109618 (and the other 1 CVE):Debian · Ubuntu · Red Hat · Alpine
This is exploited in the wild: after patching, check exposed systems for signs of compromise.