Skip to content

Commit 0ead1b3

Browse files
committed
fix(docker): patch Alpine OS-level vulnerabilities in all images
Added apk upgrade --no-cache to all 4 Dockerfiles to pull patched versions of Alpine system packages. Mitigates 9 CVEs: libcrypto3/libssl3: CVE-2026-28390 (HIGH), CVE-2026-31790 (MEDIUM), 5 LOW — fix: 3.5.5-r0 → 3.5.6-r0 libuuid: CVE-2026-27456 (MEDIUM) — fix: 2.41.2-r0 → 2.41.4-r0 musl: CVE-2026-40200 — fix: 1.2.5-r21 → 1.2.5-r23 Remaining vulns are in Go stdlib (v1.26.1) inside compiled binaries from trivy, grype, syft, gitleaks, actionlint. These require upstream tool authors to rebuild with Go 1.26.2 — cannot be patched by us.
1 parent be3ff25 commit 0ead1b3

4 files changed

Lines changed: 12 additions & 2 deletions

File tree

docker/Dockerfile.bandit

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ LABEL org.opencontainers.image.source="https://github.com/huntridge-labs/argus"
44
LABEL org.opencontainers.image.description="Argus Bandit Python SAST Scanner"
55
LABEL org.opencontainers.image.licenses="AGPL-3.0"
66

7+
# Patch OS-level vulnerabilities before anything else
8+
RUN apk upgrade --no-cache
9+
710
RUN adduser -D -u 1000 argus
811
RUN pip install --no-cache-dir 'bandit[toml,sarif]==1.9.4'
912

docker/Dockerfile.cli

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,12 @@ LABEL org.opencontainers.image.licenses="AGPL-3.0"
5353

5454
ARG ZIZMOR_VERSION=1.23.1
5555

56-
# ClamAV requires apk — no official static binary for Alpine
56+
# Install system packages and patch OS-level vulnerabilities
5757
RUN apk add --no-cache \
5858
clamav \
5959
clamav-libunrar \
60-
git
60+
git && \
61+
apk upgrade --no-cache
6162

6263
# Copy binary tools from builder
6364
COPY --from=builder /usr/local/bin/trivy /usr/local/bin/trivy

docker/Dockerfile.opengrep

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ LABEL org.opencontainers.image.source="https://github.com/huntridge-labs/argus"
1313
LABEL org.opencontainers.image.description="Argus OpenGrep SAST Scanner"
1414
LABEL org.opencontainers.image.licenses="AGPL-3.0"
1515

16+
# Patch OS-level vulnerabilities before anything else
17+
RUN apk upgrade --no-cache
18+
1619
COPY --from=builder /usr/local/bin/opengrep /usr/local/bin/opengrep
1720

1821
RUN adduser -D -u 1000 argus

docker/Dockerfile.supply-chain

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ LABEL org.opencontainers.image.licenses="AGPL-3.0"
1414

1515
ARG ZIZMOR_VERSION=1.23.1
1616

17+
# Patch OS-level vulnerabilities before anything else
18+
RUN apk upgrade --no-cache
19+
1720
COPY --from=builder /usr/local/bin/actionlint /usr/local/bin/actionlint
1821

1922
RUN pip install --no-cache-dir "zizmor==${ZIZMOR_VERSION}"

0 commit comments

Comments
 (0)