28 October 2026 / Security operations / 8 chapters

Back up before changing packages

From Patching php2shell across a mixed PHP fleet

Before any package changed, the agent saved the original packages and the PHP and web server configuration on the server itself. If an updated build broke a site, we needed to get back to the exact previous state quickly, without hunting for an old package version in the middle of an incident.

That rollback route matters more than usual this month. Tenable's php2shell FAQ notes that PHP developers confirmed a regression in 8.4.27 and 8.5.12 that can crash PHP processes in some applications using the SimpleXML extension. PHP developers traced it to a separate garbage collector fix in those releases, outside the security patches, and as of 26 October the fix had been merged but not released. If you've moved to 8.4.27 and run anything that parses XML, it's worth checking those paths specifically.

Rolling back would put the vulnerability back, so I wouldn't treat it as the response to that kind of breakage. What the backup gives you is a known starting point for comparisons and a way out if a build is simply wrong. For a crash in one application path, I'd rather work on that path with the patched build in place.

All articles