Query and patch vulnerable images across your fleet.
Critical CVE drops. You need to:
- Find which deployments run the vulnerable image
- Patch all of them to the fixed version
With GitOps, this means grep + edit + commit + PR + wait. Takes hours.
With ConfigHub: query + patch + apply. Takes minutes.
# Scan only - find affected units
./cve-responder --vulnerable nginx:1.24 --scan
# Patch all affected units
./cve-responder --vulnerable nginx:1.24 --patched nginx:1.25
# Dry run - show what would change
./cve-responder --vulnerable nginx:1.24 --patched nginx:1.25 --dry-run
# Limit to production spaces
./cve-responder --vulnerable nginx:1.24 --patched nginx:1.25 --spaces "*-prod-*"
# Sync back to Git
./cve-responder --vulnerable nginx:1.24 --patched nginx:1.25 --sync-git --git-repo ~/my-manifests
- Query: Uses
cub unit list --where "Data CONTAINS 'image'"to find affected units across all spaces - Patch: Uses ConfigHub's
set-imagefunction to bulk update - Apply: Deploys the patched units to clusters
- Sync: Exports changes and creates a PR to Git (optional)
# ConfigHub CLI and auth
cub auth login
export CUB_TOKEN=$(cub auth get-token)
# For Git sync
gh auth login
go build -o cve-responder .
# A wild CVE appears
$ ./cve-responder --vulnerable log4j:2.14 --scan
Found 47 units with vulnerable image:
- prod-us/trade-service: log4j:2.14.1
- prod-eu/trade-service: log4j:2.14.1
- prod-asia/trade-service: log4j:2.14.1
- staging/trade-service: log4j:2.14.0
...
# Patch them all
$ ./cve-responder --vulnerable log4j:2.14 --patched log4j:2.17.1
Patching to log4j:2.17.1...
✓ prod-us/trade-service
✓ prod-eu/trade-service
✓ prod-asia/trade-service
✓ staging/trade-service
...
Patch complete: 47 succeeded, 0 failed
# Sync back to Git for audit trail
$ ./cve-responder --vulnerable log4j:2.14 --patched log4j:2.17.1 --sync-git --git-repo ~/manifests
Created PR for CVE patch on branch cve-patch-1702584000
| Variable | Description | Default |
|---|---|---|
CUB_TOKEN |
ConfigHub API token | required |
CUB_API_URL |
ConfigHub API URL | https://hub.confighub.com/api |