Skip to content

BAH-4708 | Fix. Refresh apk index in proxy image to resolve 9 CRITICAL CVEs#22

Open
Anutw wants to merge 1 commit into
Bahmni:mainfrom
Anutw:feature/BAH-4708
Open

BAH-4708 | Fix. Refresh apk index in proxy image to resolve 9 CRITICAL CVEs#22
Anutw wants to merge 1 commit into
Bahmni:mainfrom
Anutw:feature/BAH-4708

Conversation

@Anutw

@Anutw Anutw commented May 20, 2026

Copy link
Copy Markdown

Summary

  • Change RUN apk upgrade -> RUN apk update && apk upgrade --no-cache on Dockerfile:3 so the proxy image picks up the latest patched Alpine packages instead of upgrading against the stale index baked into the base image.
  • Resolves the 9 CRITICAL CVEs flagged on bahmni/proxy in BAH-4708 — all four openssl*/libssl3/libcrypto3 instances of CVE-2025-15467 + CVE-2026-31789, plus pcre2 CVE-2025-58050.
  • Includes BAH-4708_trivy_after.txt — the Trivy CRITICAL/fixed-only scan of the rebuilt image showing 0 vulnerabilities.

CVEs Resolved

Package CVE
libcrypto3 CVE-2025-15467, CVE-2026-31789
libssl3 CVE-2025-15467, CVE-2026-31789
openssl CVE-2025-15467, CVE-2026-31789
openssl-dev CVE-2025-15467, CVE-2026-31789
pcre2 CVE-2025-58050

Test plan

  • docker build -t bahmni/proxy:bah-4708-local . completes successfully.
  • trivy image --severity CRITICAL --ignore-unfixed bahmni/proxy:latest -> 9 CRITICAL (baseline).
  • trivy image --severity CRITICAL --ignore-unfixed bahmni/proxy:bah-4708-local -> 0 CRITICAL (see BAH-4708_trivy_after.txt).
  • Nightly scan in Bahmni/security-reports confirms 0 CRITICAL on bahmni/proxy after this image is published.

…L CVEs

The existing `RUN apk upgrade` ran against the stale package index baked
into the base image, so fixed versions of openssl/libssl3/libcrypto3/pcre2
were never pulled. Adding `apk update` first refreshes the index from the
Alpine mirrors, and `--no-cache` keeps the layer small.

Resolves the 9 CRITICAL CVEs reported by Trivy on bahmni/proxy:
- libcrypto3, libssl3, openssl, openssl-dev: CVE-2025-15467, CVE-2026-31789
- pcre2: CVE-2025-58050

Verified locally with trivy --severity CRITICAL --ignore-unfixed:
- bahmni/proxy:latest        -> 9 CRITICAL
- bahmni/proxy:bah-4708-local -> 0 CRITICAL  (see BAH-4708_trivy_after.txt)
@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


Anusuya Rajendran seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

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