Skip to content

Dockerfile pins haproxy:3.4.2-alpine (frozen 2026-07-06), so v0.5.0 and nightly ship 6 fixable HIGH CVEs — #178 again #190

Closed

Description

@Gerrrt

This is #178's root cause again. #179 fixed that one by moving the base from one patch tag to another, FROM haproxy:3.4.2-alpine. Docker's official images don't rebuild old patch tags, so that base has been frozen since 2026-07-06. Every image published since, including v0.5.0/latest and the 2026-10-04 master/nightly rebuild, carries the same out-of-date Alpine packages. The weekly rebuild can't help, because the base it rebuilds from never changes.

Findings

Trivy, HIGH/CRITICAL with a fix available, on v0.5.0 (sha256:1f5038b5…):

Package Installed ID Fixed in
libssl3, libcrypto3 3.5.7-r0 CVE-2026-14456 3.5.8-r0
pcre2 10.47-r1 CVE-2026-86145, CVE-2026-89157, CVE-2026-89161 10.48-r0
pcre2 10.47-r1 CVE-2026-103111 10.49-r0

Pinned vs current base

haproxy:3.4.2-alpine (pinned) haproxy:3.4-alpine (rolling, today = 3.4.6)
digest sha256:0878b11e… sha256:7af82552…
haproxy 3.4.2 (2026/07/03) 3.4.6 (2026/09/28)
libssl3 / libcrypto3 3.5.7-r0 3.5.8-r0
pcre2 10.47-r1 10.48-r0
fixable HIGH/CRITICAL 6 1 (CVE-2026-103111, pending Alpine's pcre2 10.49 in the next base rebuild)

Reproduce:

$ for t in 3.4.2-alpine 3.4-alpine; do docker run --rm --entrypoint sh haproxy:$t -c \
    'haproxy -v | head -1; apk list -I | grep -E "^(libssl3|libcrypto3|pcre2)-" | cut -d" " -f1'; done
HAProxy version 3.4.2-9feeb3287 2026/07/03 - https://haproxy.org/
libcrypto3-3.5.7-r0
libssl3-3.5.7-r0
pcre2-10.47-r1
HAProxy version 3.4.6-56332c5 2026/09/28 - https://haproxy.org/
libcrypto3-3.5.8-r0
libssl3-3.5.8-r0
pcre2-10.48-r0

Suggested fix

  1. Move the base to haproxy:3.4.6-alpine (or later) and cut a release. That clears 5 of the 6 above for anyone pinning a version tag.
  2. To stop this recurring a third time, either:

One caution from #180: the 3.2 → 3.4 bump in v0.5.0 broke /version calls. A test that hits /version, /containers/json and /events through the proxy would make base bumps safe to take routinely.

Activity

  1. sammcj commented on Oct 22, 2026

    @sammcj
    Contributor

    Still reproducing on latest / v0.5.0 (sha256:1f5038b5…, built 2026-07-27), now 12 days after this was opened. The Dockerfile still has FROM haproxy:3.4.2-alpine.

    An independent scan with OSV-Scanner v2.7.0 gives the same picture, 4 critical and 19 high, all in the frozen base and all fixed in Alpine:

    • libssl3 / libcrypto3 3.5.7-r0, fixed in 3.5.8-r0
    • pcre2 10.47-r1, fixed in 10.48-r0 / 10.49-r0
    • zlib 1.3.2-r0, fixed in 1.3.2-r1 (new since this issue was opened)

    The rolling base now clears all of them, including the pcre2 10.49 one listed above as pending:

    $ for t in 3.4.2-alpine 3.4-alpine; do docker run --rm --entrypoint sh haproxy:$t -c \
        'haproxy -v | head -1 | cut -d" " -f1-3; apk list -I | grep -E "^(libssl3|libcrypto3|pcre2|zlib)-[0-9]" | cut -d" " -f1 | tr "\n" " "; echo'; done
    HAProxy version 3.4.2-9feeb3287
    libcrypto3-3.5.7-r0 libssl3-3.5.7-r0 pcre2-10.47-r1 zlib-1.3.2-r0
    HAProxy version 3.4.7-8872a26
    libcrypto3-3.5.9-r0 libssl3-3.5.9-r0 pcre2-10.49-r0 zlib-1.3.2-r1

    So FROM haproxy:3.4-alpine (option 1 under point 2 above) would let the existing weekly rebuild keep latest/nightly patched without anyone having to remember. Happy to open a PR for that plus a smoke test hitting /version, /containers/json and /events through the proxy, if that'd be welcome.

  2. erised-ux commented on Nov 10, 2026

    @erised-ux

    Adding a data point for the 3.4.x bump: besides the Alpine CVEs above, HAProxy 3.4.3–3.4.7 carry eight BUG/MAJOR fixes, and one is reachable with this image's config: "h1-htx: report an error on a too long chunk-size line" (3.4.7, haproxy commit 2e4ba6a).

    On v0.5.0 (HAProxy 3.4.2), a chunked request whose chunk-size line is longer than the buffer, sent after the request was refused by a deny, leaves HAProxy using the container's whole CPU limit. It was still spinning 25 minutes after the client disconnected. Allowed paths did not spin in our tests.

    Workaround until a release: http-request reject if { req.hdr(transfer-encoding) -m found }, placed before the first http-request deny. A deny on the same condition made it worse: every path then spun.

    Moving the base to haproxy:3.4.7-alpine or later would fix this and the CVEs listed here.

  3. sammcj commented on Nov 14, 2026

    @sammcj
    Contributor

    I suspect that @Tecnativa aren't maintaining the docker-socket-proxy project anymore.

    These CVEs are quite worrying, I suspect it might be time for a community driven fork.

  4. david-banon-tecnativa commented on Nov 16, 2026

    @david-banon-tecnativa
    Collaborator

    This image isn't abandoned, an efford towards fixing this issue for good by building from the lts tag and ensure this image lives up to modern practices is being taken in #185, and fixing the current holes in #186.
    Please review those PRs.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions