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.
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.
The short version
- Bump bots edit manifests and lockfiles. PHP2Shell was fixed by changing a base image tag or an OS package, which is outside what Dependabot's security updates cover.
- Scanners tell you an image is vulnerable. Someone still has to find the Dockerfile and open the pull request.
- No tool in this list should merge a security fix into production alone. The good ones stop at a verified pull request.
- "Verified" has to mean more than green CI: the image builds, a staging copy behaves the same, and a later scan sees the fixed version running.
- Ask five questions of your setup (end of this article). Most teams fail question 4.
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:
-
FROM php:8.3.30-fpmbecomesFROM php:8.3.36-fpm - an
apt-get install php8.3-fpmline gets the fixed distribution build - a Bref layer ARN on Lambda moves to its new version
Then the image is rebuilt and every worker restarted. Nothing in composer.json changes. That's the test case for the table below.
What each group does
| Group | Examples | Changes it can make | How it prioritises | How it verifies | PHP2Shell |
|---|---|---|---|---|---|
| Dependency bump bots | Dependabot, Renovate | Versions in manifests and lockfiles; Docker tags as scheduled version updates | Advisory severity; schedule | The repository's CI | Not as a security update |
| Scanners | Amazon Inspector, Trivy, Grype | None | Severity; Inspector also shows which ECR images are in use | n/a | Finds it, fixes nothing |
| In-place image patchers | Copacetic | OS packages inside an existing image | Scanner report | Rescan | Only if PHP came from an OS package; the Dockerfile stays unfixed |
| AI code fixers | Copilot Autofix, CodeMender, Snyk and Aikido autofix | First-party code; some dependency upgrades | Code-scanning findings | Tests; the strongest add fuzzing or a sandboxed exploit | Not their target |
| Infrastructure-aware patch agents | Compass | Base image tags, OS package pins, Lambda layers, direct dependencies | Exploitation (KEV, EPSS), CVSS, internet exposure | CI, image build, staging canary | Yes, as a pull request |
Dependency bump bots
Dependabot and Renovate are the right tool for library versions. Their limits for this kind of bug:
- Coverage. GitHub says Dependabot security updates are "triggered only for dependencies that are specified in a manifest or lock file", and its supported ecosystems table lists Docker under version updates but not security updates.
- Transitive dependencies. Per GitHub's documentation, outside npm and some NuGet projects Dependabot "can't update an indirect or transitive dependency if doing so would also require updating the parent dependency".
- No view of production. A bump pull request is the same whether the code runs on the public login page or nowhere.
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:
- Follows OSV, the CVE list, CISA KEV, EPSS, Packagist, npm and the Ubuntu, Debian, Alpine and Amazon Linux trackers every hour.
- Matches every fifteen minutes against what each workload is made of: container images in task definitions, Lambda runtimes and layers, what Dockerfiles install, what manifests and lockfiles pin.
- Decides from exploitation and exposure. A finding that is in KEV, has EPSS of 0.1 or more, CVSS of 7.0 or more, or sits on an internet-facing workload gets its pull request without a click. The rest become one inbox item per repository for a person to approve.
- Edits deterministically: a version string replaced by the one the advisory names. One pull request per repository.
- Verifies in three steps: the repository's CI; the image build where a Dockerfile changed; and, if you name a staging twin, a canary that deploys the pull request's image to staging, compares health checks, 5xx rate and p95 latency with the five minutes before, then rolls staging back.
- Never merges. After a merge, the next scan that sees the fixed version running marks the finding deployed.
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.
Five questions for any patching setup
- Can it change what was actually vulnerable? For PHP2Shell that's a
FROMline, an apt pin or a layer ARN, not a manifest. - Does it know what's exposed? Urgency should come from exploitation data and internet exposure, not from the order pull requests were opened.
- 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.
- 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.
- 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.
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.
Sources
- GitHub: about Dependabot security updates, supported ecosystems
- Renovate: automerge
- AWS: Inspector ECR scanning
- Copacetic
- Snyk fix pull requests, Copilot Autofix, CodeMender
- PHP: GHSA-w8hw-w9fx-j79w, release announcements
- Compass: patching documentation
This article was first published on beamreach.ai. It was drafted with AI assistance and reviewed by the author.

