Cloud and Security·6 min read

    PHP2Shell: How modern architecture helps teams patch faster

    PHP2Shell shows why patch speed matters. See how Signal and immutable deployments help teams find affected services and roll out a controlled fix.

    By John Cattrall

    PHP2Shell, CVE-2026-109618 and CVE-2026-109619: architecture decides how fast a critical fix reaches production

    On 2026-10-21, PHP released fixes for two critical vulnerabilities known as PHP2Shell. They can allow unauthenticated remote code execution on affected web deployments. Organisations running PHP need to identify affected services and apply the fixes urgently. PHP security advisory.

    The fix is available. The next question is how quickly your team can get it into production everywhere it is needed.

    This is where architecture makes a practical difference. With an immutable deployment system, you build and test a replacement image, then roll it out through an established pipeline. You have a record of what changed and a way to check which version is running. There is less to discover or reconstruct during the incident.

    At AwareAI, that deployment approach sits alongside Signal, our infrastructure discovery and assessment product. Signal helps answer where attention is needed; the deployment system provides the route to making the change. Both matter when a critical runtime fix lands.

    What needs patching

    PHP2Shell covers CVE-2026-109618 and CVE-2026-109619. The flaws concern memory handling within PHP itself. Updating a CMS or its plugins alone does not replace the affected runtime.

    The PHP project lists these fixed releases:

    PHP branchFixed release
    8.58.5.12
    8.48.4.27
    8.38.3.36
    8.28.2.35

    For older branches, check your distribution or support vendor. PHP has also provided limited source backports for 7.4, 8.0 and 8.1. Those do not restore ongoing upstream support. PHP security advisory.

    Amazon reports an exploitation attempt against its honeypots on 2026-10-17, before public disclosure. Investigations should therefore reach back at least that far. Patching also needs to be accompanied by checks for earlier compromise. Amazon Threat Intelligence.

    Why immutable deployments make a difference

    Three deployment models for applying a runtime fix: servers patched in place, container images and managed runtimes
    Three deployment models, with different responsibilities for applying and verifying a runtime fix.

    On servers maintained in place, a runtime upgrade changes an existing environment. Years of manual changes can leave different extensions, configuration overrides and dependencies on each machine. The team has to account for those differences while keeping the service available.

    An immutable deployment gives the team a more controlled unit of change. The runtime, application and dependencies are assembled into a versioned image. The patched image is tested before deployment, then replaces the previous one. Production receives the same artifact that passed those tests.

    That removes several sources of delay: reconstructing server configuration, repeating manual updates and checking whether each machine received the same change. A running image's identifier also gives the team something precise to compare with the approved release.

    Servers patched in placeImmutable container imagesManaged runtimes
    Applying the fixUpdate packages across the affected fleetRebuild, test and deploy a replacement imageProvider update, with customer action where required
    Controlling differencesMaintain consistent configuration across serversDeploy the same tested image to each instanceUse supported runtimes and check update settings
    Verifying completionCheck running versions on each serverMatch running image identifiers to the patched releaseCheck provider rollout status and application health
    RecoveryUse the documented recovery procedureRedeploy a known imageFollow the service's runtime recovery options

    Containers still need an update process. A stale image remains stale until it is rebuilt and deployed. The advantage comes from combining immutable images with automated builds, useful tests and a repeatable rollout.

    Managed services can remove more of the work. Google's PHP2Shell guidance says supported App Engine Standard runtimes update automatically; App Engine Flexible requires redeployment. Cloud Run depends on the image and update settings. Google Cloud guidance.

    AWS Lambda follows a similar division: managed runtimes update automatically by default, while container-based functions need a rebuilt image and redeployment. AWS Lambda runtime updates.

    How we build at AwareAI

    How a runtime fix reaches production at AwareAI: Signal checks exposure, container fixes go through Git, CI and rollout, managed runtimes follow the provider update process
    Signal identifies where attention is needed. Container fixes pass through Git, CI and deployment; provider-managed runtimes follow the provider's update process.

    Our approach combines managed services, immutable containers and deployments controlled through versioned configuration. The aim is to make a runtime fix use the same tested process as an application release.

    Managed runtimes where they fit. We use managed services to reduce the infrastructure our team has to maintain. The provider's responsibilities and update policy need to be explicit, and the runtime must remain on a supported version.

    Replacement images for container workloads. A runtime or library update goes into the build definition. The pipeline builds a new image, runs the tests and deploys the replacement. The deployed artifact is traceable to its source and build.

    GitOps for everything we run. Our infrastructure and deployment configuration are declared in Git. Automated controllers keep production aligned with that configuration, so changes follow a reviewed, traceable path from commit to deployment.

    Source automatically documents our systems, helping the team understand their structure and dependencies when assessing and deploying a security fix.

    Supported runtimes. We keep our runtimes current and on supported versions, so security fixes can move through that same release process.

    For a critical container-runtime fix, the sequence is concrete: update the base image, build, test, deploy and verify that the old instances have been replaced. Test coverage needs to include the business functions the service supports, not just whether it starts.

    Recovery is more predictable when a previous image is available, but reverting a security patch can restore the vulnerability too. The release procedure must account for that exposure if the patched application fails.

    This is the approach behind our Application Development and Managed AI Operations services: design the update process as part of the system, then use it for routine releases as well as urgent fixes.

    Signal: finding where action is needed

    A fast deployment pipeline only helps once you know which services need a fix. During a runtime incident, that means finding the affected workloads, their owners and the environments in which they run.

    Signal is AwareAI's team of AI agents for continuous infrastructure discovery and assessment. It discovers infrastructure across cloud accounts and watches for drift and risk, giving teams a current view of their estate to work from when an advisory arrives.

    We run Signal against AwareAI's own cloud accounts. For PHP2Shell, checking our exposure took minutes: there was no PHP runtime anywhere in our estate. That result tells us where we stood for this incident; the same discovery process helps us identify affected services when another runtime needs a fix.

    That view helps scope the investigation. Which services need checking? Which account contains them? Has infrastructure changed since the last assessment? A newly discovered service or an old demonstration environment can be just as relevant as the main production application.

    Amazon Inspector continuous scanning is enabled for our ECR repositories. Our container images are automatically rescanned when a relevant new CVE is published, adding package-level findings to the infrastructure view. Together, Signal and image scanning help us connect an affected component to a deployed workload and take it through the patch process.

    Signal and immutable deployments address successive parts of the response: identify the services that need attention, make a controlled change, and verify the running result. Finding an affected image is useful; tracing it through to a completed deployment makes the finding actionable.

    What to do now

    If you run PHP, start with an inventory of affected services and agree who will patch each one. Apply the relevant fixed release or a vendor package containing both fixes. Verify that the running services have picked up the update.

    Where an immediate update is blocked, follow the current PHP and hosting-provider guidance for temporary controls. Those controls address particular attack paths and do not provide complete remediation. PHP security advisory.

    Review logs, unexpected process execution and file changes for signs of compromise, using the earlier investigation window described by Amazon. Keep that investigation separate from the question of whether the runtime is now patched. Amazon investigation guidance.

    For the next incident, measure the time from identifying exposure to verifying the last replacement instance. Use the delays to improve the inventory, tests and deployment pipeline. A modern immutable system gives those improvements a repeatable process to build on.

    Running PHP and unsure whether you’re affected? AwareAI can help assess your exposure and plan the remediation. Message us here or contact us: Talk to us.

    Further reading: From pilot to production: scaling AI across ASEAN, Why cheaper AI models don't always cost less.

    #PHP2Shell#CVE2026109618#CVE2026109619#PatchManagement#Containers#GitOps#Signal#AWS#AwareAI

    Ready to apply this to your business?

    Talk to us