AppCradle
All articles

PHP security updates: verify your app before reopening traffic

Verify the patched PHP runtime, restart workers, test payment recovery and reconcile delayed events before calling an emergency update complete.

By AppCradle · Published

A white ceramic server receives a blue glass replacement module beside a cyan shield.

After an emergency PHP security update, verify the runtime actually serving requests, replace old worker processes, and check the application's critical paths before restoring normal traffic. A successful package installation is one piece of evidence. It does not establish that every replica is patched or that payments and background jobs have recovered correctly.

The PHP security advisory published on October 21, 2026 identifies two critical vulnerabilities, CVE-2026-109618 and CVE-2026-109619, that can permit unauthenticated remote code execution. The upstream fixed releases are PHP 8.2.35, 8.3.36, 8.4.27 and 8.5.12. Distribution packages may carry backported fixes: check the vendor's advisory and package revision instead of judging a distribution build by its upstream-looking version string alone. PHP states that partial mitigations do not make an unpatched installation safe.

This checklist is for app teams running a PHP backend, billing service or supporting website. It concentrates on the operational decision to reopen service and the evidence needed afterward. It is not an exploit test, a substitute for the current vendor advisory, or a claim that AppCradle runs on PHP.

1. Make an inventory of running PHP, not just repositories

Start with the services that can execute PHP. Include public APIs, administrative sites, customer portals, upload handlers, scheduled imports, queue workers and old deployments still receiving traffic. A static mobile client can depend on a PHP service without containing any PHP code itself.

Create one row per deployment role and environment:

FieldEvidence to record
Service and ownerWho can update, verify and approve recovery
Execution modeWeb handler, queue worker, scheduled command or other long-running process
Runtime sourceDistribution package, hosting provider or immutable container image
Patch evidenceVendor advisory, exact package revision or image digest
Running instancesExpected replica count and which instances have been replaced
Critical dependencyBilling, sessions, uploads, imports or another user-facing flow
Recovery statusIsolated, patched, verified or reopened, with a timestamp

A dependency manifest describes the application. It is not proof of the PHP interpreter inside a running container. Similarly, updating a base-image tag in source control does not replace containers already running from an earlier image.

For managed hosting, ask for confirmation of the affected service's running PHP build and update status. WordPress owners can inspect the runtime under Tools → Site Health → Info → Server, according to WordPress's announcement. Updating WordPress plugins alone does not apply a PHP runtime patch.

2. Verify the web runtime separately from the shell

A shell check is useful, but answers a limited question. Run these read-only checks inside the specific container or host you are inspecting:

php -v
php --ini
php -r 'printf("PHP=%s SAPI=%s\n", PHP_VERSION, PHP_SAPI);'

These commands report the command-line interpreter. A machine can use a different binary or configuration for web requests. PHP documents SAPI identification and runtime version reporting; use those values through an existing authenticated diagnostic path or an internal startup log for the actual web-serving process.

Do not publish a new diagnostic page on the open internet. Avoid exposing a full configuration dump merely to obtain a version: capture only the runtime identity and deployment evidence the reviewer needs. Keep that operational information out of public analytics events.

For a fleet, checking one successful response through a load balancer is insufficient. Confirm the rollout's expected instance count, the image or package on each instance, and the termination of older instances. Check that autoscaling and replacement jobs also use the patched artifact. Otherwise, a healthy pool can quietly add an old image again later.

For a distribution backport, attach the vendor's fixed-package statement to the record. A custom build needs a reproducible source and patch record. An unverified claim that a provider "usually patches automatically" is not a completion criterion.

3. Replace old processes and keep rollback patched

Use the deployment procedure appropriate to your runtime to restart or replace the relevant processes. Include web workers and any long-running PHP jobs, not only the reverse proxy. Verify that new processes started with the expected artifact and that old workers have exited; do not assume a reload command has completed the transition everywhere.

Laravel provides a concrete example of why background work needs separate attention: its queue documentation explains that workers retain application state in memory and must be restarted during deployment. The graceful restart mechanism depends on restart signals and a process manager starting replacements. Check the actual supervisor and runtime configuration rather than treating a command's exit status as proof that new workers are running.

Prepare a rollback artifact that also contains the security fix. If a new application build is incompatible, reverting the application code on a patched runtime may be appropriate after testing. Reintroducing the vulnerable runtime simply because it was yesterday's working image recreates the original problem.

If you cannot establish that a service is patched, keep it restricted or offline according to the applicable advisory and your incident procedure. Availability checks should not delay urgent containment. If there are signs of compromise, preserve evidence and activate incident response: installing a patch does not remove an attacker or establish that credentials and data were untouched.

4. Test the flows that can fail quietly

Run functional checks in an isolated environment using the same patched runtime artifact, representative non-sensitive data and sandbox payment credentials. Do not replay production customer requests as a convenient test suite. After rollout, use authorized operational checks and passive production observation to confirm recovery.

A homepage returning 200 proves little about a renewal, file upload or background import. Choose a small set of meaningful scenarios:

FlowCheckFailure that a basic uptime probe could miss
AuthenticationA session can be created and used; an expired session is rejectedLogin succeeds but the next request loses the session
Authorized API requestThe correct account receives its own dataA cache or session change mixes request context
File processingA normal allowed file succeeds; invalid input fails cleanlyParsing limits or extensions differ from the old runtime
Sandbox paymentA completed payment grants the intended entitlement oncePayment succeeds externally but access remains unavailable
Background jobA queued item reaches its expected terminal stateWeb traffic works while workers are stopped
Scheduled importA known fixture imports once with correct totalsA restarted scheduler duplicates or skips a period

Treat this as a functional checklist, not proof that the security vulnerabilities are absent. Patch verification comes from the running build and advisory evidence. Do not send exploit payloads to production to try to replace that evidence.

Capture a result, timestamp and owner for each check. For a failure, record the affected workflow and observed behavior without copying secrets, personal data or complete payment payloads into a shared report.

5. Recover delayed payment events without repeating the purchase

During an outage, the payment provider and your app can disagree temporarily because the provider completed an operation while your endpoint was unavailable. Resolve the authoritative payment state before initiating another charge. The pending-payment recovery article covers that decision in more detail.

For Stripe integrations, the webhook documentation says live event deliveries can retry for up to three days, delivery order is not guaranteed, and duplicate events can occur. A manual resend does not cancel automatic retries. Other providers have different retention and retry behavior; check your integration's documentation rather than adopting Stripe's window universally.

Use a bounded recovery list: provider event ID, business object, expected effect, processing state and reconciliation outcome. Keep it in the restricted operational system that owns the workflow. Before replaying anything, verify that duplicate delivery is safe and that the consumer can resume interrupted work.

Do not mark an event completed before its intended effect is durably recorded. Conversely, a successful effect followed by a crash must not grant the entitlement or send the same fulfillment twice on retry. The implementation may use transactional state, an outbox and an idempotent downstream operation; choose the mechanism around the actual side effect.

Test these two cases explicitly in the sandbox:

  1. Deliver the same event twice. The second delivery must not create a second business effect.
  2. Interrupt processing after the durable business change but before acknowledgement. Recovery must recognize what already happened and finish safely.

A distinct event may refer to the same business transition, so event-ID deduplication alone may not cover every duplicate side effect. Reconcile against the billing object and the operation your application intended to perform. A newer subscription state must not be overwritten blindly by a late, older notification.

6. Separate a reporting gap from lost revenue

Write down when service was restricted, when the patched runtime became active, when user traffic resumed and when delayed processing caught up. Those are different boundaries.

Use three views for the recovery review:

  • Provider activity: payments, refunds and subscription changes that actually occurred.
  • Application processing: events accepted, pending, completed or failed, plus current entitlements.
  • Reporting coverage: the periods and sources already imported into the business dashboard.

For example, a successful provider payment during maintenance can become visible in the app later. Assigning it to the recovery date in one report and the transaction date in another creates a discrepancy without creating a second payment. A missing import is an unknown interval, not a zero-revenue day.

Use the revenue discrepancy guide to align dates and definitions, and the combined store revenue guide when comparing store sources. AppCradle's imported business reports can support that comparison. They do not certify that a PHP server is patched or replace the payment provider's transaction and event records.

Avoid interpreting a burst of delayed processing as a sudden increase in demand. Report the outage window, processing lag and completeness alongside the totals. Keep operational event IDs in restricted logs, not in Google Analytics.

7. Use an explicit reopening decision

Before restoring normal traffic, the responsible owner should be able to answer:

  • Which advisory and vendor build establish that every in-scope serving instance is patched?
  • Have old workers exited, and can autoscaling recreate only patched instances?
  • Do the isolated critical-path checks pass with the deployed runtime artifact?
  • Are delayed events recoverable without repeating payments or entitlements?
  • Is the rollback path patched, and is there a clear condition for restricting traffic again?

Reopen incrementally where the architecture supports it. Observe errors, latency, worker restarts, queue age and confirmed user outcomes against the pre-change baseline. Define service-specific limits and an observation window; a universal "wait five minutes" rule is not evidence that your billing cycle or queue has recovered.

Close the incident only after distinguishing runtime remediation, application recovery and backlog reconciliation. Record any remaining investigation separately. Bring the verified business impact and follow-up owners into the weekly metrics review, so a technically successful patch does not leave an unexplained revenue gap or a customer without access.

See the bigger picture.

Bring your store reports together and spend more time understanding what they mean.

Try for free