Skip to content

Upgrade Debian perl packages in the pg and cassandra 4.1 images - #13

Merged
imanimanyara merged 1 commit into
mainfrom
ci/trivy-base-images
Oct 8, 2026
Merged

imanimanyara merged 1 commit into
mainfrom
ci/trivy-base-images

Conversation

@imanimanyara

Copy link
Copy Markdown
Member

Trivy's scan gate (HIGH/CRITICAL, fixed-only) started failing on every pg major and cassandra 4.1, on amd64 and arm64, after Debian released perl 5.36.0-7+deb12u4. The pinned bookworm bases still ship deb12u3. It shows up on #12, which only adds secret-scanner config.

CVE Severity Packages Fixed in
CVE-2026-13221 CRITICAL perl, perl-base, perl-modules-5.36, libperl5.36 5.36.0-7+deb12u4
CVE-2026-8376 CRITICAL same same
CVE-2026-42496 CRITICAL same same
CVE-2026-42497 HIGH same same
CVE-2026-48962 HIGH same same
CVE-2026-57432 HIGH same same
CVE-2026-57433 HIGH same same

Cassandra 4.1 carries only perl-base. No unfixed finding failed the gate.

Change

  • images/pg/Dockerfile: add perl perl-base perl-modules-5.36 libperl5.36 to the existing named-package --only-upgrade line. They move together because perl depends on the exact perl-base version.
  • images/cassandra/Dockerfile: add perl-base to the same line.

A repin isn't possible: pgvector/pgvector:0.8.6-pg* was last pushed on 2026-08-13. The scanner config, severity gate and .trivyignore.yaml are unchanged. Patroni builds FROM the pg image, so it inherits the fix.

Verification

  • make verify-structure and make lint pass locally.
  • Docker isn't available locally, so the image build and scan run here in CI.

Debian published perl 5.36.0-7+deb12u4, fixing CVE-2026-13221, -8376,
-42496 (CRITICAL) and -42497, -48962, -57432, -57433 (HIGH). The pinned
bookworm bases still carry deb12u3, so Trivy's fixed-only HIGH/CRITICAL
gate failed every pg major and cassandra 4.1 on both architectures.

pgvector has not rebuilt 0.8.6 since 2026-08-13, so there is no newer
base digest to repin to. Upgrade the named packages instead, the same
pattern already used for pcre2 and expat: the four perl packages in pg
move together because perl depends on the exact perl-base version, and
cassandra 4.1 carries perl-base only. The scan gate is unchanged.
Copilot AI balanced review requested due to automatic review settings October 8, 2026 11:47

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@imanimanyara
imanimanyara merged commit 37bd7f8 into main Oct 8, 2026
30 checks passed
@imanimanyara
imanimanyara deleted the ci/trivy-base-images branch October 8, 2026 12:21
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