Guide · Ilia Dubovskii · 25 November 2026

Automated Vulnerability Patching Compared: Dependabot, Renovate, Inspector, Copacetic, AI Fixers and Compass

Automated patching tools fall into five groups: dependency bump bots (Dependabot, Renovate), scanners that find but don't fix (Amazon Inspector, Trivy, Grype), in-place image patchers (Copacetic), AI code fixers (Copilot Autofix, CodeMender, Snyk and Aikido autofix), and infrastructure-aware patch agents (Compass). They answer different questions. When a runtime vulnerability such as PHP2Shell (CVE-2026-109618) lands, the differences that matter are what the tool is able to change, how it decides what is urgent, and how it proves the running workload is fixed.

The short version

1. The worked example: PHP2Shell

PHP2Shell is two memory-safety bugs in the PHP interpreter itself. Fixed releases (8.5.12, 8.4.27, 8.3.36, 8.2.35) shipped on 21 October 2026. For a containerised site the fix is one of:

Then the image is rebuilt and every worker restarted. Nothing in composer.json changes. That's the test case for the table below.

2. What each group does

Group Examples Changes it can make How it prioritises How it verifies PHP2Shell
Dependency bump botsDependabot, RenovateVersions in manifests and lockfiles; Docker tags as scheduled version updatesAdvisory severity; scheduleThe repository's CINot as a security update
ScannersAmazon Inspector, Trivy, GrypeNoneSeverity; Inspector also shows which ECR images are in usen/aFinds it, fixes nothing
In-place image patchersCopaceticOS packages inside an existing imageScanner reportRescanOnly if PHP came from an OS package; the Dockerfile stays unfixed
AI code fixersCopilot Autofix, CodeMender, Snyk and Aikido autofixFirst-party code; some dependency upgradesCode-scanning findingsTests; the strongest add fuzzing or a sandboxed exploitNot their target
Infrastructure-aware patch agentsCompassBase image tags, OS package pins, Lambda layers, direct dependenciesExploitation (KEV, EPSS), CVSS, internet exposureCI, image build, staging canaryYes, as a pull request

Dependency bump bots

Dependabot and Renovate are the right tool for library versions. Their limits for this kind of bug:

Renovate is more configurable: security pull requests can skip schedules, and automerge happens only after required checks pass. It still knows the repository, not the running workload.

Scanners

Amazon Inspector, Trivy and Grype answer "which images contain the vulnerable version?". Inspector also reports how many running tasks use an ECR image, which is the start of prioritising. None of them opens the fix. The work between a finding and a merged change (which repository, which file, which line) is what takes the hours.

In-place image patchers

Copacetic patches OS packages inside an existing container image without a rebuild. It's fast when you can't rebuild. The cost is drift: the Dockerfile still says the old version, so the next build brings the vulnerability back unless someone also fixes the source.

AI code fixers

Tools such as Copilot Autofix and CodeMender write patches to your own code. That's a different problem from PHP2Shell, where your code is fine and the runtime is not. Where they matter for runtime bugs is the upgrade that isn't a plain bump: a major version, a breaking change, a transitive dependency. Someone has to read the changelog and the call sites and adjust the code. A model does that reading well and is sometimes wrong, so the output needs the same verification as any other change.

Infrastructure-aware patch agents: Compass

Compass is our open-source (Apache 2.0) operations agent for AWS. Its patch feature starts from the running account instead of the repository:

What it doesn't do today (docs): bump a Lambda runtime or an AMI, move a transitive dependency, cross a major version, or write code changes. Those findings wait in the inbox with the reason stated. It's AWS-only, and Java isn't on its default product list.

3. Five questions for any patching setup

  1. Can it change what was actually vulnerable? For PHP2Shell that's a FROM line, an apt pin or a layer ARN, not a manifest.
  2. Does it know what's exposed? Urgency should come from exploitation data and internet exposure, not from the order pull requests were opened.
  3. Does the fix arrive as a pull request without someone opening a ticket? On the day of a KEV listing, the queue is the delay.
  4. How does it know the fix worked? Green CI says the code compiles. It doesn't say the image builds, the service still answers, or the fixed binary is the one running.
  5. What happens when a plain bump isn't possible? There should be a stated reason and an owner, not silence.

Patching closes the vulnerability but can't cover the days before a fix exists: PHP2Shell was exploited four days before the fixed releases. For that window see how to protect against *2Shell vulnerabilities.

4. Sources

5. FAQ

Does Dependabot fix PHP2Shell?

Not as a security update. PHP2Shell is in the PHP interpreter, and the fix is a base image tag, an OS package or a Lambda layer. GitHub's supported ecosystems table lists Docker under Dependabot version updates but not security updates.

What is the difference between a vulnerability scanner and a patching tool?

A scanner such as Amazon Inspector, Trivy or Grype reports which images contain a vulnerable version. A patching tool changes the source (the Dockerfile, the manifest, the layer version) and opens a pull request.

Should security patches be merged automatically?

For production, no tool in this comparison should merge alone. The safe pattern is a pull request opened automatically, verified by CI, an image build and a staging canary, and merged by a person.

How do I verify that a patch actually worked?

Check four things: CI passes, the image builds, a staging copy behaves the same as before (health checks, error rate, latency), and a later scan sees the fixed version running in production.

Last checked: 24 November 2026. Written by Ilia Dubovskii, founder of Beamreach; Compass is our open-source project, and its limits are listed below with everyone else's.

Related: *2Shell vulnerabilities · PHP2Shell · React2Shell · AWS canary credentials · Honeytokens vs GuardDuty · One Fake Password (talk)