How to fix container image CVEs automatically
Short answer
To fix container CVEs automatically, rebuild the image with fixed versions of exactly the vulnerable packages, then rescan it and run it to confirm it is better and still works, and repeat whenever new fixes are published. OCImend does all of this online, for free: paste the image, pull the fixed one.
original26
-fixed0
The loop
- 01Scanwhich packages have fixes
- 02Fixone click, online
- 03Rescanfewer CVEs, none new
- 04Smoke teststarts like the original
- 05Watchrepeat when fixes land
What an automatic fix can and cannot do
| Finding | Automatic fix | Why |
|---|---|---|
| OS package with a fixed version | yes | fixed in the new image |
| OS package, no fix yet | later | watch: rebuilt when the distribution ships it |
| Go / npm / pip dependency | no | needs a rebuild from source; the report lists the version |
| End-of-life base | no | move to a supported base; alternatives are measured |
Why a gate matters
An upgrade can pull in a new vulnerable dependency or break start-up. A fix is only useful if it is measured: fewer known CVEs, none introduced, and the container still starts.
Questions
Does fixing change my application?
No. Only vulnerable system packages change. Your application, its settings and how it starts stay as they were.
What if no fix is available?
Watch the image: it is re-checked daily and the fixed image is rebuilt when the distribution ships a fix. Meanwhile a slimmer base often removes most findings.
Is it free?
Yes. Fixing public images online is free, with no sign-up. Private images are fixed too and handed back to you, never published.
Sources
More guides
- Migrating container images from FIPS 140-2 to FIPS 140-3
- How to check the time-zone data of Go, Java, Node.js and Python (tzdata 2026e, part 2)
- tzdata 2026e: on 1 November, containers with old time-zone data put four Canadian clocks an hour off
- How to build FIPS-enabled containers (FIPS 140-3)
- OCImend FIPS containers: what you get and how they are verified
- A container vulnerability pipeline that ends in a fix, not a report
- "No fix available": what to do about unfixable container CVEs
- Base image or your layers? Finding which Dockerfile step introduced a CVE
- EU Cyber Resilience Act for container images: SBOM, VEX and 24-hour reporting
- Rolling out a patched container image without changing your registry or your manifests