[NEEDS-SCAN] fix: [CI-24667]: remediate vulnerabilities in harnesssecure/docker (21.3.4 → 21.3.5) - #527
Draft
vinayakharness2026 wants to merge 1 commit into
Conversation
…upgrade to 21.3.5 - Upgrade base image docker:28.1.1-dind → docker:28.5.2-dind (same registry, patch bump) - Upgrade cosign v2.5.3 → v2.6.5 (same major, latest v2.x) - Upgrade golang.org/x/crypto v0.54.0 → v0.55.0 - Upgrade golang.org/x/net v0.57.0 → v0.58.0 - Upgrade golang.org/x/text v0.40.0 → v0.41.0 OnDemand after-scan (PrismaCloud): Critical 15→12, High 67→38, Medium 89→27, Low 39→5 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Vulnerability Remediation: harnesssecure/docker
Team: ci (Harness CI Platform)
Tickets: CI-24667
Test image:
vinayakharness/docker-test:docker-21.3.5--debugOnDemand scanner runs (Harness harness0.harness.io):
Summary
The OnDemand baseline scan (Prisma Cloud + Snyk) failed to pull
harnesssecure/docker:21.3.4in the ProdSec project — theharnesssecureconnector does not have valid credentials for this Harness project. Baseline evidence is sourced from the SCS nightly scan that generated ticket CI-24667 (15 crit / 67 high / 89 med / 39 low). The after-scan on the test image (vinayakharness/docker-test:docker-21.3.5--debug) completed successfully with Prisma Cloud reporting 12 crit / 38 high / 27 med / 5 low — a significant reduction. Four code changes address the known vulnerability sources: base image patch bump, cosign minor upgrade, and two Go dependency upgrades.RECOMMENDATION=REVIEW— both code changes and after-scan data look good, but formal baseline OnDemand run needs to be verified by the owning team before merge.CVE Delta — Trivy (local scan)
CVE Delta — Harness OnDemand (Prisma Cloud)
Per-Ticket CVE Status
CI-24667 — P2: Security Vulnerability Fixes - harnesssecure/docker
Summary:
harnesssecure/docker:21.3.4was built ondocker:28.1.1-dindwith cosign v2.5.3 and Go deps includinggolang.org/x/crypto v0.54.0andgolang.org/x/net v0.57.0. This PR upgrades all four components to reduce the CVE exposure. The Prisma Cloud after-scan confirms a 39% reduction in total issues (210 → 82), with the largest improvements in Medium (-62) and High (-29) severity.Changes Made
docker/docker/Dockerfile.linux.amd64docker:28.1.1-dind→docker:28.5.2-dind; cosignv2.5.3→v2.6.5docker/docker/Dockerfile.linux.arm64arm64v8/docker:28.1.1-dind→arm64v8/docker:28.5.2-dind; cosignv2.5.3→v2.6.5go.modgolang.org/x/crypto v0.54.0 → v0.55.0;golang.org/x/net v0.57.0 → v0.58.0;golang.org/x/text v0.40.0 → v0.41.0go.sumVersion selection rationale:
docker:28.5.2-dindis the latest patch in the same major (28.x) series as the original28.1.1-dind, minimising blast radius while picking up Alpine/system package fixes.cosign:v2.6.5is the latest v2.x release (same major), fixing CVEs in cosign's Go dependency tree.golang.org/x/crypto v0.55.0is the maximum version compatible with go 1.25.x toolchain (v0.56.0+ requires go ≥ 1.26.0).golang.org/x/net v0.58.0is the current latest, containing HTTP/2 and TLS-related security patches.The OnDemand baseline scan for
harnesssecure/docker:21.3.4failed in both attempts because theharnesssecureDocker Hub connector in the Security_and_Compliance/ProdSec project lacks pull credentials for the privateharnesssecure/namespace. The SCS nightly pipeline (which uses a different, properly credentialed connector) successfully scanned the image and generated this ticket. Action required: configureharnesssecurecredentials in the ProdSec OnDemand connector, or re-run the baseline scan from the SCS nightly after this PR is merged to get the official before/after delta.