Skip to content

Dockerfile pins haproxy:3.2.4-alpine (frozen Aug 2025), so every published image ships openssl 3.5.1-r0 / musl 1.2.5-r10 — 2 Critical + 19 High #178

Closed

Description

@RoninATX

Every currently-published tag (v0.4.2, latest, master, nightly) ships an alpine package set from August 2025 and scans 2 Critical + 19 High, all fixable. The weekly rebuild cron is working correctly — it just can't help, because the base it rebuilds from never changes.

Root cause

Dockerfile line 1 pins a patch-level base tag:

FROM haproxy:3.2.4-alpine

haproxy:3.2.4-alpine is frozen — upstream haproxy does not rebuild historical patch tags, so its alpine package layer is permanently stuck at whatever shipped on 2025-08-13. The rolling haproxy:3.2-alpine tag is maintained and currently resolves to a different digest with fully patched packages.

The two tags today:

haproxy:3.2.4-alpine (pinned) haproxy:3.2-alpine (rolling)
digest sha256:436a5691… sha256:66e25cc9…
haproxy 3.2.4 (2025-08-13) 3.2.21 (2026-07-03)
libssl3 / libcrypto3 3.5.1-r0 3.5.7-r0
musl 1.2.5-r10 1.2.6-r2

Reproduce:

$ docker run --rm --entrypoint sh haproxy:3.2.4-alpine -c \
    'haproxy -v | head -1; apk list -I | grep -E "^(libssl3|musl)-"'
HAProxy version 3.2.4-98813a1 2025/08/13
libssl3-3.5.1-r0 x86_64 {openssl} (Apache-2.0) [installed]
musl-1.2.5-r10 x86_64 {musl} (MIT) [installed]

$ docker run --rm --entrypoint sh haproxy:3.2-alpine -c \
    'haproxy -v | head -1; apk list -I | grep -E "^(libssl3|musl)-"'
HAProxy version 3.2.21-dbe43be37 2026/07/03
libssl3-3.5.7-r0 x86_64 {openssl} (Apache-2.0) [installed]
musl-1.2.6-r2 x86_64 {musl} (MIT) [installed]

Why the nightly rebuild doesn't fix it

This is the part that makes the problem invisible from the outside: master/nightly were rebuilt on 2026-07-26 (rev 87eb7c34), and the resulting image still contains openssl 3.5.1-r0 and musl 1.2.5-r10 — byte-identical to v0.4.2 from 2025-12-16. A rebuild faithfully reproduces a frozen base. So the CVE counts look identical across every tag regardless of build date, and a downstream docker pull is always a no-op.

Note also that Docker Scout auto-detects the base as haproxy:3.2-alpine and reports "Refreshed base image = 0C/0H/0M/0L", which reads as "the maintainers just need to rebuild." That's misleading here — the actual pinned base is 3.2.4-alpine, and no rebuild of it will ever clear these.

Affected packages

  • openssl 3.5.1-r0 → 2 Critical + 18 High. Fixed at 3.5.6-r0 / 3.5.7-r0.
  • musl 1.2.5-r10 → 1 High. Fixed at 1.2.5-r12.

The rolling tag's 3.5.7-r0 / 1.2.6-r2 clears all of them.

Suggested fix

One line:

-FROM haproxy:3.2.4-alpine
+FROM haproxy:3.2-alpine

3.2 is an LTS branch, so this stays within the same supported minor and picks up both alpine security updates and haproxy patch releases on each rebuild — which the existing weekly cron already handles.

If the patch-level pin is deliberate for reproducibility, the equivalent fix is to keep pinning but bump it automatically — I didn't find a Renovate or Dependabot config in the repo, so today the pin has no mechanism to move. Either approach works; the current state is the one that doesn't, since the pin is effectively permanent.

As a secondary note, the pinned base is also 17 haproxy patch releases behind (3.2.4 → 3.2.21), so this isn't only an alpine-package concern.

Happy to open a PR for the one-line change if that's useful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions