Bump php:8.5-alpine base digest to patch curl/libxml2/xz/nghttp2 CVEs#72
Conversation
The pinned base (dccc3abc) shipped vulnerable curl 8.17.0-r1, libxml2 2.13.9-r0, nghttp2-libs 1.68.0-r0 and xz 5.8.2-r0. Upstream rebuilt php:8.5-alpine (same Alpine 3.23.4) with the patched packages (curl 8.19.0-r0, libxml2 2.13.9-r1, nghttp2-libs 1.69.0-r0, xz 5.8.3-r0), clearing the open Trivy alerts: CVE-2026-6732 (libxml2, HIGH), CVE-2026-27135 (nghttp2, HIGH), CVE-2026-34743 (xz), CVE-2026-1965/3783/3784/3805/2025-14017/ 14524/14819 (curl). Bumping the pinned digest keeps builds reproducible rather than floating package versions with apk upgrade. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Greptile SummaryThis PR bumps the pinned
Confidence Score: 5/5Safe to merge — the change is a pure digest bump that replaces vulnerable OS packages with patched versions and makes one test assertion less brittle. The Dockerfile change is a one-line digest swap with no build-logic alterations. The test change correctly widens the PHP version match to accommodate any 8.5.x patch, which is a reasonable trade-off given this image is pinned by digest rather than by PHP version. No files require special attention. Important Files Changed
Reviews (2): Last reviewed commit: "Loosen PHP version structure test to 8.5..." | Re-trigger Greptile |
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Patches curl/libxml2/xz/nghttp2 CVEs via appwrite/docker-base#72.
What
Bump the pinned
php:8.5-alpinebase image digest fromdccc3abc…to3cfccf28….Why
The pinned base shipped vulnerable OS packages flagged by the Trivy scan. Upstream rebuilt
php:8.5-alpine(still Alpine 3.23.4) with the patched versions, so a digest bump clears every open alert:Verified by inspecting both digests directly (
apk info -v).Approach note
Bumping the pinned digest is preferred over re-adding
apk upgrade: it patches the CVEs while keeping builds reproducible, rather than floating package versions at build time. Since pinning makes OS-package patching a manual step, the weekly Trivy scan is the natural trigger to bump the digest — worth considering a scheduled digest-bump if these alerts recur often.🤖 Generated with Claude Code