Skip to content
This repository was archived by the owner on May 24, 2026. It is now read-only.
This repository was archived by the owner on May 24, 2026. It is now read-only.

security: base images not pinned by digest (supply chain risk) #16

Open

Description

@SimplicityGuy

Summary

The Dockerfile uses version tags for base images without digest pinning. Tags are mutable — a compromised Docker Hub account or a CDN-level MITM could serve a malicious image under the same tag.

Location

Dockerfile lines 1, 49 (after recent cleanup)

FROM alpine:3.23 AS builder
FROM docker:29.1.3-dind-alpine3.23 AS release

Risk

  • Supply chain attack via a compromised upstream image
  • Silent replacement of a pinned version with a backdoored build

Recommended Fix

Pin images by digest:

FROM alpine:3.23@sha256:<digest>
FROM docker:29.1.3-dind-alpine3.23@sha256:<digest>

Digests can be retrieved with:

docker buildx imagetools inspect alpine:3.23 --format '{{json .Manifest}}' | jq -r '.digest'
docker buildx imagetools inspect docker:29.1.3-dind-alpine3.23 --format '{{json .Manifest}}' | jq -r '.digest'

Consider automating digest updates via Dependabot or Renovate.

Severity

Medium

Activity

  1. added
    security
    on Feb 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    security

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions