Skip to content
Patching CVEs

Patching CVEs

Finding vulnerabilities only helps if they are fixed quickly. Our commitment:

When we learn about a fixable CVE in one of our images, a patched, hardened and signed release is ready within one hour.

“Fixable” means an upstream fix exists: a newer Go module, npm package or base image without the vulnerability. For CVEs without a fix, see No fix available.

When the clock starts

The hour starts when the CVE reaches us, through any of these:

SourceHow it shows up
Pull request or commit scanA new row in the Trivy table of the Security scan check (Pull request and commit scans)
Release gateA hardened release fails on the vulnerability gate (Hardened releases and signing)
PromotionA non-zero count in the Container image security (Trivy) table of a promotion pull request (CVE results in release notes)
RuntimeTrivy Operator’s daily rescan of running images, in the VulnerabilityReport and the Grafana dashboards (CVE scanning)
Advisory or reportA security advisory for a dependency we use, or a report sent to the contact in security.txt

The hour, step by step

Everything that makes this fast is already in place: one shared release workflow, digest-pinned base images, and scans that confirm the fix automatically. A hardened release usually takes under 15 minutes.

MinutesStepDone when
0–10Triage. Identify the image, the CVE, the affected package and its fixedVersion. Check which components use the same package.The list of repositories to patch is known.
10–30Fix. Upgrade the Go module or npm package, or bump the digest-pinned base image. One pull request per repository.The pull request’s security scan no longer shows the CVE.
30–50Release. Merge and run Bump release with hardened: true. The release gate fails while any medium, high or critical CVE remains, so a green release is the proof.The release is published with Image hardening: Verified.
50–60Hand over for deployment. The release opens the staging GitOps pull request. Production and customer environments follow through a promotion pull request, whose CVE table shows the fix.The patched version is ready to deploy.

When several repositories share the vulnerable dependency, patch them in parallel: each has its own pull request and release.

Typical fixes

  • Go module. go get <module>@<fixed version> && go mod tidy. Upgrade even when govulncheck reports the code as unreachable: the image gate counts it regardless.
  • OS package. Update the base image’s tag and digest in the Dockerfile. CI caches layers, so an apk upgrade layer can stay stale until the FROM digest changes.
  • Go toolchain. A CVE in the standard library is fixed by a newer Go patch release: update the builder image and the go directive together.
  • Third-party image (ingress, storage, monitoring). Upgrade the chart or image version in GitOps; we don’t rebuild other vendors’ images.

After the release

  1. Deploy through GitOps: merge the staging pull request, then promote.
  2. Production admission accepts the new version only because it is a hardened release; test with kubectl set image ... --dry-run=server before promoting (see Kyverno policies).
  3. Trivy Operator scans the new image as soon as its Pods start. The finding drops off the Trivy Operator - Vulnerabilities dashboard and the VulnerabilityReport.
  4. Customer environments receive the patch through a promotion pull request in their own GitOps repository, with the CVE table showing the result.

No fix available

A hardened release fails on medium, high and critical CVEs even without a fix, and there is no ignore file. When upstream has not released a fix:

  1. Remove the package if the image doesn’t need it. Hardened images contain only what the service runs, so this is often possible.
  2. Switch to a base image or library that doesn’t carry the vulnerability.
  3. Otherwise, the current release keeps running and the next release waits for the fix. Track the upstream advisory and patch within the hour once a fix is published.

Why we can be this fast

  • One release workflow. Scanning, SBOM, signing and attestation are the same for every repository; patching never needs pipeline work.
  • Small images. Few packages means few CVEs, and a fix rarely touches more than one dependency.
  • Automatic proof. The release gate fails until the CVE is gone, so we don’t need a manual check to know a patch worked.
  • Safe deployment. Signed and attested releases, Kyverno admission and GitOps pull requests make it low-risk to ship a patch the moment it is ready.