PHP has published a patch update. What should administrators prioritize, especially if some applications are still on older versions?
PHP has a patch out. What should admins check?
Answers
Check the official release and security advisory against every PHP version you run, then prioritize web-facing installations. The announcement describes critical remote code execution vulnerabilities, so this is not a patch I'd leave sitting in the normal queue.
Check your distribution or hosting provider's packages too. Version numbers and availability can differ when a vendor backports fixes, so use its advisory to confirm what's actually patched.
Reply to this answer
After updating the package, check the running services, not just the command-line version. Apache or PHP-FPM workers may still be using the old code until they're restarted or replaced.
Coordinate the restart and verify the version serving requests afterward. A successful package update alone doesn't prove the live application is patched.
Reply to this answer
For PHP 5 or 7 applications, don't assume the current patch gives you a direct upgrade path. Check whether your vendor offers a fix for that installation, and plan the migration separately. Moving an old app to a newer PHP release can involve application and dependency changes.
If a vulnerable legacy app can't be patched promptly, restricting access or taking it offline may be necessary while the migration is worked out.
Reply to this answer
Add your answer
Answers are reviewed before publication.
Tivaro-3x:
A web application firewall may buy some time, but it isn't a substitute for patching or removing the vulnerable service.