Skip to main content
CleanStart

Official Go Docker Image vs CleanStart Hardened Go Image

5 min read
Contents

This comparison focuses on the official Docker Hub Go image (golang:1.26.5) because it is one of the most widely used base images for building Go applications.

Key Takeaways

  • Both images provide the same Go runtime (Go 1.26.5).
  • The CleanStart image is 57% smaller (129.1 MB vs. 297.9 MB).
  • It includes 168 fewer installed packages (39 vs. 207) and 374 fewer executable binaries (81 vs. 455).
  • Trivy reported 1,267 known CVEs in the official golang:1.26.5 image and zero in the CleanStart image at the time of analysis.
  • The CleanStart image includes SLSA-aligned provenance and Sigstore signatures to support software supply chain verification.

If you're building Go applications with Docker, there's a good chance your Dockerfile starts with the official Go image from Docker Hub.

It's a trusted starting point for thousands of developers. But before that image becomes part of your application, it's worth asking a simple question:

What exactly are you bringing into your software supply chain?

To answer that, we compared the official golang:1.26.5 Docker image with the equivalent CleanStart Go image.

Both images were analyzed using Trivy with the same scanning methodology to compare their software footprint, vulnerability profile, and software supply chain metadata.

Comparison Baseline

Compared Item

Value

Runtime

Go 1.26.5

Public Image

golang:1.26.5

CleanStart Image

cleanstart-go

Scanner

Trivy

Scan Method

Same configuration for both images

Scan Date

Aug 6, 2026

Side-by-Side Comparison

The results below compare both images using the same Go runtime (1.26.5), making this a like-for-like evaluation of their software composition and security posture.


Metric

golang:1.26.5

cleanstart-go

Go Version

1.26.5

1.26.5

Image Size

297.9 MB

129.1 MB

Installed Packages

207

39

Executables

455

81

Total CVEs

1267

0

Critical

18

0

High

103

0

Medium

421

0

Low

686

0

Shell

Package Manager

SBOM

Provenance

SLSA provenance, unsigned

SLSA L3, 

Cryptographically verified

Signature

Not detected

Cosign keyless, Rekor-logged (verified)

Summary comparison. The CleanStart Go image reports 39 installed packages against 207, 81 executables against 455, zero known CVEs against 1,267, and an image size of 129.1 MB against 297.9 MB.

At a glance

cleanstart-go vs golang:1.26.5

Installed packages

39

from 207

168 fewer · 81%

Executables

81

from 455

374 fewer · 82%

Known CVEs

0

from 1,267

1,267 fewer · 100%

Image size

129.1MB

from 297.9 MB

168.8 MB · 57%

Both images run Go 1.26.5. Scanned with Trivy using the same configuration on 6 August 2026. CVE counts reflect results at the time of analysis.

The biggest difference wasn't the Go runtime, it was everything surrounding it. The official image contained more than five times as many installed packages and executable binaries, resulting in a significantly larger software footprint.

What the Scan Revealed

1. Over Five Times as Many Installed Packages

The official golang:1.26.5 image contains 207 installed packages, while the CleanStart image contains 39.

Every installed package becomes part of your software inventory. More packages mean more dependencies to track, monitor, update, and patch throughout the lifecycle of your application.

That's 168 fewer packages included in the CleanStart image, resulting in a significantly smaller software footprint.

2. More Than Five Times as Many Executables

The official Go image includes 455 executable binaries, compared to 81 in the CleanStart image.

Not every executable introduces risk, but every additional binary expands the software footprint inside the container. Production images generally benefit from including only what the application actually requires, reducing operational complexity and potential attack surface.

If you'd like to understand how executable count contributes to attack surface, read our guide on Attack Surface Reduction in Containers: Measuring What Really Matters.

3. 1,267 Known Vulnerabilities vs Zero Vulnerabilities

Trivy reported:

  • 18 Critical 
  • 103 High 
  • 421 Medium 
  • 686 Low 

for a total of 1,267 known vulnerabilities in the official Go image at the time of analysis.

The equivalent CleanStart Go image reported zero known CVEs.

The important takeaway isn't simply the vulnerability count. Every identified vulnerability eventually requires investigation, prioritization, patching, exception handling, or formal risk acceptance. Starting with fewer known vulnerabilities reduces that operational burden before an application is ever deployed.

4. Same Go Runtime. Different Software Foundation.

Both images include Go 1.26.5.

From a developer's perspective, you're building applications on the same language runtime.

The difference lies in everything surrounding that runtime:

  • The number of installed packages 
  • The number of executable binaries 
  • The overall image size 
  • The vulnerability profile 

This makes the comparison a true apple-to-apple evaluation, showing how two images built for the same purpose can differ significantly in their software composition.

5. Supply Chain Trust Goes Beyond an SBOM

Both images provide an SBOM, making it possible to inventory the software components contained within each image.

However, an SBOM tells you what is inside an image. It doesn't tell you how the image was built or whether its origin can be independently verified.

The CleanStart image also includes:

  • SLSA-aligned provenance 
  • Sigstore signatures 

These capabilities help answer questions that vulnerability scanners alone cannot:

  • Where did this image originate? 
  • How was it built? 
  • Can its provenance be independently verified
  • Has the image been cryptographically signed? 

As software supply chain security evolves, understanding what's inside an image is only part of the story. Being able to verify where it came from and how it was built is becoming equally important.

Conclusion

At first glance, both images appear to offer the same thing: Go 1.26.5.

But once you look inside, the differences become clear.

Compared to the official Docker Hub image, the CleanStart Go image contains:

  • 57% smaller image size (297.9 MB vs. 129.1 MB) 
  • 81% fewer installed packages (207 vs. 39) 
  • 82% fewer executable binaries (455 vs. 81) 
  • Zero known CVEs at the time of analysis (compared to 1,267) 
  • SLSA-aligned provenance and Sigstore signatures to support software supply chain verification 

The purpose of this comparison isn't to suggest that every package or executable is inherently a risk. Rather, it's to highlight that every additional software component becomes part of your software supply chain and contributes to the ongoing effort required to inventory, monitor, patch, and verify what you deploy.

Whether your priority is reducing attack surface, simplifying vulnerability management, or strengthening software supply chain security, it's worth asking a simple question before choosing a base image: What exactly am I bringing into my software supply chain?

Try the CleanStart Community Images

Curious how your own applications compare?

Pull the equivalent CleanStart Community Image, scan it with Trivy, and compare the results in your own environment.

The Community Images are freely available for popular languages and runtimes and are built with a minimal software footprint, near-zero known vulnerabilities at release, SBOMs, SLSA-aligned provenance, and Sigstore signatures.

Explore the Community Images → images.cleanstart.com

Continue the Investigation

If you found this comparison useful, you may also enjoy these technical deep dives:

Frequently Asked Questions

The official Go Docker image is widely used and maintained. However, our scan of golang:1.26.5 identified 1,267 known CVEs at the time of analysis. Organizations should evaluate whether the software footprint and vulnerability profile align with their security requirements.

Yes, it does include the SBOM

The official image is designed as a general-purpose development environment and includes many supporting packages beyond the Go runtime itself. These additional components contribute to a larger software footprint.

CleanStart reduces unnecessary software components and builds verified images with a minimal software footprint, resulting in zero known CVEs at the time of analysis.

The answer depends on your organization's requirements. If your priorities include reducing software footprint, minimizing known vulnerabilities, and strengthening software supply chain verification, evaluating hardened and verifiable container images is worth considering. This comparison provides the observable characteristics of both images to help inform that decision.

Related Blogs

See All
Public redis image vs cleanstart image
6 min read

Official Redis Docker Image vs CleanStart Redis Image

Compare official Redis Docker image with CleanStart Redis. See image size, packages, executables, CVEs, SBOMs, provenance, & more in this technical comparison.

Read more
Minimus alternate
Cyber Security
9 min read

Minimus Is Shutting Down: What to Look for in Your Next Container Image Provider

Minimus is shutting down. Learn what to look for in a hardened container image provider and why verified software artifacts matter for your next foundation.

Read more
Docker hardened images free what enterprises should evaluate
Cyber Security
11 min read

Are Docker Hardened Images Free? What Enterprises Should Evaluate Before Adoption

Docker Hardened Images are now available for free, but secure container delivery requires more than image access. Learn what enterprises should evaluate around verification, maintenance, compliance, and trust.

Read more