Skip to content

AST-165915: stop forcing linux/amd64 on every container image - #53

Merged
cx-dmitri-rivin merged 3 commits into
mainfrom
bug/AST-165915
Sep 3, 2026
Merged

cx-dmitri-rivin merged 3 commits into
mainfrom
bug/AST-165915

Conversation

@cx-omer-eckstein

Copy link
Copy Markdown
Contributor

Resolve passed a literal "linux/amd64" to AnalyzeImagesWithPlatform. Every image was therefore matched against amd64 regardless of the host or of the image itself, so any single-architecture image built for another architecture (for example a locally built linux/arm64 image on an ARM64 CI runner) failed to resolve.

Nothing here needs a specific architecture, so go back to AnalyzeImages and let each image be resolved on the platform it was actually built for.

Resolve passed a literal "linux/amd64" to AnalyzeImagesWithPlatform. Every image
was therefore matched against amd64 regardless of the host or of the image itself,
so any single-architecture image built for another architecture (for example a
locally built linux/arm64 image on an ARM64 CI runner) failed to resolve.

Nothing here needs a specific architecture, so go back to AnalyzeImages and let
each image be resolved on the platform it was actually built for.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@cx-shaked-karta

cx-shaked-karta commented Aug 30, 2026

Copy link
Copy Markdown
Contributor

Logo
Checkmarx One – Scan Summary & Detailsd94caacc-b58f-4e29-9e67-e1fc14e6ad18


New Issues (9)

High: 6 · Medium: 3

Checkmarx found the following issues in this Pull Request

# Severity Issue Source File / Package Checkmarx Insight
1 HIGH CVE-2026-33813 Go-golang.org/x/image-v0.25.0
detailsRecommended version: v0.36.0
Description: Parsing a WEBP image with an invalid, large size panics on 32-bit platforms.
Attack Vector: NETWORK
Attack Complexity: LOW
Vulnerable Package
2 HIGH CVE-2026-46599 Go-golang.org/x/image-v0.25.0
detailsRecommended version: v0.36.0
Description: The TIFF decoder does not place a limit on the size of PackBits-compressed data. A maliciously-crafted image can exploit this to cause a small imag...
Attack Vector: NETWORK
Attack Complexity: LOW
Vulnerable Package
3 HIGH CVE-2026-4660 Go-github.com/hashicorp/go-getter-v1.8.5
detailsRecommended version: v1.8.6
Description: HashiCorps go-getter library through v1.8.5 may allow arbitrary file reads on the file system during certain git operations through a maliciously c...
Attack Vector: NETWORK
Attack Complexity: LOW
Vulnerable Package
4 HIGH CVE-2026-46602 Go-golang.org/x/image-v0.25.0
detailsRecommended version: v0.43.0
Description: The TIFF decoder does not set a limit on the size of tiles in tiled images, permitting a malicious or corrupt image containing a very large tile to...
Attack Vector: NETWORK
Attack Complexity: LOW
Vulnerable Package
5 HIGH CVE-2026-46604 Go-golang.org/x/image-v0.25.0
detailsRecommended version: v0.43.0
Description: The TIFF decoder can panic when decoding an invalid image with an Out-Of-Bounds (OOB) strip offset. All versions prior to v0.43.0 are affected.
Attack Vector: NETWORK
Attack Complexity: LOW
Vulnerable Package
6 HIGH CVE-2026-56854 Go-golang.org/x/crypto-v0.49.0
detailsRecommended version: v0.54.1-0.20260712151943-b9229ecc70c7
Description: The source-address critical option in the Permissions returned by an authentication callback was only enforced for the PublicKeyCallback and Verifi...
Attack Vector: NETWORK
Attack Complexity: LOW
Vulnerable Package
7 MEDIUM CVE-2026-25681 Go-golang.org/x/net-v0.52.0
detailsRecommended version: v0.55.0
Description: Parsing arbitrary HTML which is then rendered using Render can result in an unexpected HTML tree. This can be leveraged to execute XSS attacks in a...
Attack Vector: NETWORK
Attack Complexity: LOW
Vulnerable Package
8 MEDIUM CVE-2026-33809 Go-golang.org/x/image-v0.25.0
detailsRecommended version: v0.29.1-0.20250722020457-4af98f40f05d
Description: A maliciously crafted TIFF file can cause image decoding to attempt to allocate up 4GiB of memory, causing either excessive resource consumption or...
Attack Vector: NETWORK
Attack Complexity: LOW
Vulnerable Package
9 MEDIUM CVE-2026-71557 Go-github.com/go-git/go-git/v5-v5.17.0
detailsRecommended version: v5.18.1-0.20260420130857-e5bbc088b774
Description: go-git is an extensible git implementation library written in pure Go. Prior to versions 5.19.2 and 6.x prior to 6.0.0-alpha.5, reference names are...
Attack Vector: NETWORK
Attack Complexity: LOW
Vulnerable Package

Fixed Issues (9)

Critical: 1 · High: 2 · Medium: 5 · Low: 1

Great job! The following issues were fixed in this Pull Request

Severity Issue Source File / Package
CRITICAL CVE-2026-33186 Go-google.golang.org/grpc-v1.72.2
HIGH CVE-2024-25621 Go-github.com/containerd/containerd/v2-v2.1.2
HIGH CVE-2026-24051 Go-go.opentelemetry.io/otel/sdk-v1.36.0
MEDIUM CVE-2019-25210 Go-helm.sh/helm/v3-v3.19.2
MEDIUM CVE-2025-64329 Go-github.com/containerd/containerd/v2-v2.1.2
MEDIUM CVE-2026-24137 Go-github.com/sigstore/sigstore-v1.8.15
MEDIUM CVE-2026-25934 Go-github.com/go-git/go-git/v5-v5.14.0
MEDIUM CVE-2026-33481 Go-github.com/anchore/syft-v1.21.0
LOW CVE-2026-1229 Go-github.com/cloudflare/circl-v1.6.1

Use @Checkmarx to interact with Checkmarx PR Assistant.
Examples:
@Checkmarx how are you able to help me?
@Checkmarx rescan this PR

Also bumps the containerd/containerd/v2 replace pin to v2.2.1 since
the new extractor version requires runtime-spec v1.3.0, which is
incompatible with the previously pinned containerd v2.1.5.
@cx-dmitri-rivin
cx-dmitri-rivin marked this pull request as ready for review September 3, 2026 08:41
Fixes zizmor findings surfaced by the "Scan for GitHub Actions issues"
check: adds concurrency groups, disables credential persistence on
checkout, and replaces inline template expressions in run: blocks with
env vars to close the template-injection findings in
pr-name-validation.yml.

Replaces release.yml (auto-tag on PR merge) with Hooks-Release.yml, a
workflow_dispatch release that builds/vets/tests before tagging and
uses the step-security forks of github-tag-action and action-gh-release,
mirroring the pattern adopted in Checkmarx/containers-syft-packages-extractor
PR #39 and #40 for the same ticket.
@cx-dmitri-rivin
cx-dmitri-rivin merged commit ad79526 into main Sep 3, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants