fix(docker): patch the base-OS pcre2 CVE in the nginx images - #33
Merged
Merged
Conversation
CVE-2026-103111 (HIGH, pcre2 out-of-bounds write) is present in nginx:1.31-alpine and fails the required Docker Build & Trivy Scan gate. The published nginx image still ships pcre2 10.48-r0 and the cached apk upgrade layer skips the fix, so require pcre2>=10.49-r0 explicitly in both nginx-based images (frontend and proxy). Generic apk upgrade is kept for the rest of the base OS.
|
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.



Problem
The required check Docker Build & Trivy Scan fails on every branch (including
main's next run) with:The nginx base image still ships
pcre2 10.48-r0, and the existingapk upgrade --no-cachelayer is served from the Docker build cache, so the OS patch is never applied on rebuilds.Fix
Require
pcre2>=10.49-r0explicitly in both nginx-based images (frontend and proxy). The genericapk upgrade --no-cachestays for the rest of the base OS. This also busts the stale cached layer.Verified locally: the built layer upgrades
pcre2 10.48-r0 -> 10.49-r0.Unrelated to the coverage work; split out so that PR stays focused.