PHP2Shell: finding and patching every PHP runtime in the homelab
PHP dropped a critical security release on Oct 21. Two unauthenticated RCEs (CVE-2026-109618 and CVE-2026-109619, collected under “PHP2Shell”, both CVSS 9.2) in the parts of PHP ev…
PHP dropped a critical security release on Oct 21. Two unauthenticated RCEs (CVE-2026-109618 and CVE-2026-109619, collected under "PHP2Shell", both CVSS 9.2) in the parts of PHP every request touches, memory management and error handling. Patched versions: 8.2.35, 8.3.36, 8.4.27, 8.5.12. Worst case is Apache mod_php, where an exploit ran before any application code. PHP-FPM is affected too.
I knew nextcloud was PHP. Everything else was a guess, so the first job was an inventory.
## The sweep
Loop over every running container on both docker hosts:
``` console
for c in $(docker ps --format "{{.Names}}"); do
docker exec $c php -v 2>/dev/null | head -1
done
```
Four PHP services, all ...
| j | Scroll down |
| k | Scroll up |
| g g | Scroll to top |
| Shift G | Scroll to bottom |
| d | Half-page down |
| u | Half-page up |
| j / ↓ | Next post (in feeds) |
| k / ↑ | Previous post (in feeds) |
| Enter / o | Open highlighted post |
| Shift O | Open in new tab |
| g h | Go to home |
| g s | Focus search |
| [ / Shift K | Previous post in series (or previous page) |
| ] / Shift J | Next post in series (or next page) |
| b | Toggle left sidebar |
| Shift B | Toggle right sidebar |
| s | Toggle reader mode (posts) / simple/rich view (feeds) |
| \ | Toggle dark/light mode |
| / | Focus search input |
| ⌘CtrlK | Focus search (alternative) |
| y y | Copy URL to clipboard |
| ? | Show this help |
| Esc | Close / clear highlight |