If you run PHP on a home server, NAS, VPS, or Docker host, php security starts with treating a critical PHP advisory as an inventory and exposure problem first. The service you remember patching may be fine. The older container behind a reverse proxy, the bundled PHP inside a NAS package, or a test subdomain can be the part that needs attention.
Unit 42's October 23 threat brief identifies critical PHP vulnerabilities tracked as CVE-2026-109618 and CVE-2026-109619, with an update dated October 23. The brief headline alone does not give us enough information to state affected version ranges, attack conditions, or indicators of compromise. Don't fill those gaps with assumptions. Check the PHP project's and your operating system or application vendor's advisory for the exact fixed releases.
What we can do immediately is work through a response that limits exposure, preserves useful evidence, and avoids the common mistake of patching one copy of PHP while leaving another reachable.
Start with exposure, not package names
A PHP command-line binary is not automatically an exposed service. Conversely, a server can have no useful php command in your shell while PHP-FPM, Apache's PHP module, a container, or an appliance package is serving web requests.
Make a short list of every place that can execute PHP:
- Public websites and APIs behind Nginx, Apache, Caddy, or a hosting panel.
- Admin tools such as file managers, database interfaces, CMS dashboards, and device-management pages.
- Self-hosted applications running in Docker, Podman, LXC, or a NAS app catalog.
- Internal-only services reachable through a reverse proxy, mesh network, or forwarded port.
- Old development sites, staging hostnames, and forgotten virtual hosts.
Put public services at the top. A web application with a DNS name and an open HTTPS port deserves attention before a PHP-based tool that only listens on a private LAN address. Then consider services exposed indirectly. A router port forward is obvious, but a reverse proxy, cloud tunnel, or a shared host can also make an application reachable from outside your network.
On a Linux host, begin with basic read-only checks:
php -v
php-fpm -v
ps aux | grep '[p]hp-fpm'
systemctl list-units --type=service --all | grep -i php
On Debian or Ubuntu systems, installed packages can help identify parallel versions:
dpkg -l | grep -E '^ii\s+(php|php[0-9])'
apt-cache policy php-cli php-fpm
On RPM-based systems, use:
rpm -qa | grep -i '^php'
These commands are a starting point, not proof that you found every runtime. PHP-FPM may be versioned, such as php8.3-fpm, and package naming differs across distributions. Record the actual version, package source, and service name for each result.
Check containers and appliance packages separately
Containers are where response efforts often split in two. Updating PHP packages on the Docker host does nothing to a PHP runtime inside an image.
List running containers and inspect the images they use:
docker ps --format 'table {{.Names}}\t{{.Image}}\t{{.Ports}}'
docker images
For each likely application, check its documentation and image release notes for a rebuilt image containing the vendor's fix. Pulling a tag and recreating the container is usually the right path, but confirm what the tag means. A floating latest tag makes it hard to know which build you were running before and after the change. A pinned image digest gives you a clearer record.
If you build your own images, inspect the base image and rebuild from the updated base. A Composer update alone does not update the PHP interpreter. It may address application dependencies, but it is a different layer of the stack.
NAS systems and appliance platforms need the same care. Their web applications may bundle PHP separately from the host operating system. Use the platform's supported update path where possible. Replacing files inside a vendor-managed application can leave it in an unsupported or partially updated state.
Write down three fields for every deployment: where it runs, how it is reachable, and how it receives updates. That small inventory is more useful during the next advisory than a page of terminal output.
Patch the exposed services first
Before changing anything, read the relevant upstream or vendor advisory. Confirm that your installed release is in scope and identify the fixed release. If a distribution backports security fixes, its package version may not resemble the upstream version number. The distribution's changelog or security tracker is the source to trust there.
Take a configuration backup or snapshot if your platform supports it. For an important service, capture the current container image ID, package version, configuration location, and recent logs. This gives you a rollback point and makes later investigation less speculative.
Then patch using the supported mechanism for that deployment:
- Use your operating system's package manager for distribution packages.
- Update the application package through the NAS or appliance interface when it owns the runtime.
- Pull, rebuild, and recreate the affected container image.
- Update a managed hosting application through its documented control path.
Restart the affected web server or PHP-FPM pool when the update requires it. A package can be updated on disk while old worker processes still have the previous runtime loaded. Check the running service afterward, then make a real request to the application. Confirm the expected site, API, or login page still works. Check the service journal for startup errors, missing extensions, and permission failures.
If a fix is not available yet, reduce reachability. Disable the affected public virtual host, stop the affected application, or restrict it to a trusted private network while you wait for a supported update. A temporary firewall rule can buy time, but document it and test that it does what you think. A web application firewall may reduce some unwanted traffic, yet it is not a substitute for a fixed runtime.
Inspect before logs disappear
Patching stops future attempts against the vulnerable code path. It does not tell you what happened before the patch.
We cannot infer exploitation signs for these specific CVEs from the brief headline, so use a general web-server and host review. Preserve relevant logs before rotation overwrites them. Look at the period since the service was last known patched, then extend the window if you find suspicious activity.
For Nginx or Apache, review access and error logs for unusual request volume, unexpected paths, repeated failures, unfamiliar user agents, and successful requests to administrative or upload endpoints. Check PHP-FPM, PHP error, and application logs too. A request that looks ordinary in an access log may have generated a revealing PHP error.
On the host, inspect recent service changes and new persistence points:
systemctl --failed
systemctl list-timers --all
crontab -l
sudo find /etc/cron* -type f -mtime -30 -ls
sudo find /var/www -type f -mtime -30 -ls
Treat these results as leads, not verdicts. A recently modified file may be a normal plugin update. Compare it with your deployment records, source repository, backup, or known-good container image. Do not execute a suspicious PHP file to see what it does.
Also look for unexpected users, SSH keys, scheduled tasks, altered web-server configuration, and outbound connections from the application host. If you find a credible sign of compromise, isolate the affected service from the network, preserve logs and relevant disk data, rotate secrets that service could read, and rebuild from known-good sources. Removing one suspicious file is rarely enough to establish trust again.
Confirm the way back in is still safe
Urgent patching often happens from a phone, Chromebook, or borrowed machine. That is exactly when people expose SSH temporarily and forget to close it.
Check router forwarding rules, reverse-proxy routes, cloud firewall rules, and the host firewall after the incident work. If you do not need SSH open to the internet, remove the inbound rule rather than leaving it as an emergency convenience. For systems behind CGNAT or a home router, an outbound bridge can provide a narrower remote route to permitted targets without opening an inbound SSH listener. We describe that design in more detail in our guide to SSH behind CGNAT.
Review authorized_keys, disable accounts that no longer need shell access, and confirm SSH host-key warnings are not being ignored. Host-key checking matters during an incident, when you may be connecting from an unfamiliar network and are more likely to accept a warning in a hurry. Keeping private keys local to the client also avoids turning an emergency web terminal into another place where credentials sit. Our browser-key guide explains the model we use.
Finally, record the patched version, the restarted service, the exposure you removed or kept, and the logs you reviewed. The next critical advisory will arrive sooner than anyone wants. A current inventory turns it from a late-night hunt into a short maintenance task.




Comments
No comments yet. Be the first.