Skip to content

RTECO-0000 - Upgrade Alpine packages in slim image (zlib CVE-2026-4738) - #3763

Merged
udaykb2 merged 1 commit into
masterfrom
fix/slim-image-apk-upgrade
Nov 11, 2026
Merged

udaykb2 merged 1 commit into
masterfrom
fix/slim-image-apk-upgrade

Conversation

@bhanurp

@bhanurp bhanurp commented Nov 11, 2026

Copy link
Copy Markdown
Contributor

Problem

The Xray scan of release bundle ecosystem-cli-docker-images-rb-v2-jf:2.132.0 reports CVE-2026-4738 (Critical) on zlib:1.3.2-r1 in jfrog/jfrog-cli-v2-jf.

Cause

The alpine:3 base image snapshot ships zlib-1.3.2-r1. The runtime stage runs apk add only. It does not upgrade zlib.

Fix

Run apk upgrade --no-cache before apk add in the slim runtime stage. Alpine 3.22, 3.23, 3.24 and edge publish zlib 1.4-r0. Alpine's security database lists CVE-2026-4738 as fixed in 1.4-r0.

Verified

In a local alpine:3 container (3.24.4):

  • before apk upgrade: zlib-1.3.2-r1
  • after apk upgrade: zlib-1.4-r0

Not verified

  • The full image build and the Xray rescan of the bundle.
  • The jfrog-docker/alpine:3 mirror on the build server may cache an older package index. If the finding stays after rebuild, check the mirror.
  • Xray describes this CVE as a gdal issue and lists no fixed version. If the finding stays with zlib at 1.4-r0, it may be a false positive.

Risk

apk upgrade moves all installed Alpine packages forward, not only zlib. Risk is low for this image.

…26-4738

The alpine:3 base snapshot ships zlib 1.3.2-r1. Run apk upgrade before apk add so zlib 1.4-r0 is installed.
@bhanurp
bhanurp deployed to build-gate November 11, 2026 11:23 — with GitHub Actions Active
@github-actions

Copy link
Copy Markdown
Contributor

@udaykb2
udaykb2 merged commit 14688e5 into master Nov 11, 2026
141 checks passed
@udaykb2
udaykb2 deleted the fix/slim-image-apk-upgrade branch November 11, 2026 12:25

This branch was successfully deployed

1 active deployment
build-gate — a0eb83bb Deployed Nov 11, 2026 by bhanurp via Approval gate #1358
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.

2 participants