Skip to content

fix(security): bump shadow to 1:4.17.4-2+deb13u1 - #39738

Merged
Khairajani merged 2 commits into
mainfrom
security/shadow-1-4.17.4-2+deb13u1
Dec 4, 2026
Merged

Khairajani merged 2 commits into
mainfrom
security/shadow-1-4.17.4-2+deb13u1

Conversation

@karanh37

@karanh37 karanh37 commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

Surfaced by the Collate security scan on 2026-12-04; the OpenMetadata scanner did not flag this independently. Verified present in ingestion/operators/docker/Dockerfile (base python:3.12-slim-trixie) at 1:4.17.4-2, fix 1:4.17.4-2+deb13u1.

Advisory

CVE-2026-135901 / DSA-6661-1 (Medium, Link Following). newuidmap/newgidmap validate a caller-supplied /proc directory fd by device number. A local user can then use user and mount namespaces to make them overwrite the first bytes of an attacker-chosen file. Debian tracker status:

  • trixie 1:4.17.4-2: vulnerable
  • trixie-security 1:4.17.4-2+deb13u1: fixed
  • bookworm: not affected

Raw scanner finding (Collate handoff)

shadow current 1:4.17.4-2, fix 1:4.17.4-2+deb13u1 (Debian 13 image package)

Change

ingestion/operators/docker/Dockerfile and Dockerfile.ci: I added shadow to the dpkg-derived cve_pkgs source-package set in the late root upgrade layer. Its binaries (passwd, login.defs) now get --only-upgraded on every build, next to perl, glibc, zlib and the others. I also added a one-line rationale comment.

Verified

  • In a fresh python:3.12-slim-trixie, dpkg-query shows passwd and login.defs from src:shadow at 1:4.17.4-2. The apt candidate is +deb13u1.
  • I ran the exact patched cve_pkgs expression plus apt-get install --only-upgrade in that image. Both packages end at 1:4.17.4-2+deb13u1.
  • ingestion/Dockerfile is on the bookworm Airflow base, which Debian lists as not affected, so I left it alone.

Not tested

  • I did not do a full build of either operators image.
  • I did not run a scanner on the rebuilt image.
  • I did not run the operators image at runtime.
  • uidmap (the package that ships the vulnerable helpers) is not in the slim base, so the change only clears the scanner-visible passwd/login.defs versions.

🤖 Generated with Claude Code

CVE-2026-135901 (DSA-6661-1): newuidmap/newgidmap can be made to overwrite an
attacker-chosen file. The trixie base of the operators image ships shadow
1:4.17.4-2; add src:shadow to the dpkg-derived --only-upgrade set so passwd
and login.defs pick up trixie-security's fixed build.
@karanh37 karanh37 added the To release Will cherry-pick this PR into the release branch label Dec 4, 2026
@karanh37
karanh37 marked this pull request as ready for review December 4, 2026 07:13
@karanh37
karanh37 requested a review from a team as a code owner December 4, 2026 07:13
@karanh37
karanh37 requested review from a team and ulixius9 and a balanced review from Copilot and removed request for a team December 4, 2026 07:13
@github-actions

github-actions Bot commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

❌ PR checklist incomplete

This PR cannot be merged until the following are addressed on its linked issue:

  • No GitHub issue is linked. Link an issue in the Development section of the PR (or add Fixes #12345 to the description). For a same-org cross-repo issue, add Fixes open-metadata/<repo>#123 to the description.

The fields live on the linked issue in the Shipping project (open the issue → right sidebar → Projects). After you set them, re-run this check (or push a commit) — issue/project changes do not re-trigger it automatically.

Maintainers can bypass this check by adding the skip-pr-checks label.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🔵 Needs a closer look

Neither final operator image was built or scanned, leaving fixed shadow versions and non-root runtime behavior unverified and requiring human validation.

No open issues 🎉

What changed in this PR

Extends the existing security-upgrade layer in OpenMetadata’s ingestion operator images to include binaries from Debian’s shadow source package.

Changes:

  • Adds shadow to package selection in both release and CI Dockerfiles.
  • Documents the advisory and fixed Debian version in rationale comments.

Placement: Affects operator image builds; application code is unchanged. Full-image builds, scans, and runtime checks remain unverified.
Trade-off: none.
Recommendation: Approve the scoped code change; the reported package-level verification does not establish full-image validation.

File Description
ingestion/​operators/​docker/​Dockerfile.ci Includes shadow binaries in CI image upgrades and documents the rationale.
ingestion/​operators/​docker/​Dockerfile Applies the same package selection and rationale to release images.

Review effort: Balanced

Copilot AI balanced review requested due to automatic review settings December 4, 2026 07:24

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🔵 Needs a closer look

Security remediation remains unvalidated in final full/slim operator images across amd64/arm64, with fixed shadow-package versions and runtime user resolution still unconfirmed.

No open issues 🎉

Review effort: Balanced

@gitar-bot

gitar-bot Bot commented Dec 4, 2026

Copy link
Copy Markdown
Code Review ✅ Approved 🟡 Medium risk

Adding shadow to both operators-image upgrade sets changes installed account-management package versions, which could alter container user-management behavior.

Bumps shadow to 1:4.17.4-2+deb13u1 in the operators Dockerfile and Dockerfile.ci by adding it to the cve_pkgs upgrade set, so passwd and login.defs are upgraded on each build to address CVE-2026-135901. No issues found.

Verification

Rules No rules evaluated

Functional validation Not enabled

Set up

Auto-approval Not enabled

Set up

For more verification details, comment gitar display:verbose.

Options

Display: compact → Showing compact verification results.

Comment with these commands to change the behavior for this request:

Compact
gitar display:verbose         

Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source

@Khairajani
Khairajani merged commit 6c3d4e6 into main Dec 4, 2026
22 of 23 checks passed
@Khairajani
Khairajani deleted the security/shadow-1-4.17.4-2+deb13u1 branch December 4, 2026 08:38
@github-actions

github-actions Bot commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

🤖 Backport to 2.0 is under way. It is built from openmetadata-collate, which holds the credentials needed to open a PR here, and it will comment again with the result — nothing is needed from you unless it reports otherwise.

@github-actions

github-actions Bot commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

🤖 Backport to 2.1 is under way. It is built from openmetadata-collate, which holds the credentials needed to open a PR here, and it will comment again with the result — nothing is needed from you unless it reports otherwise.

@gh-bot-collate

gh-bot-collate Bot commented Dec 4, 2026

Copy link
Copy Markdown

🤖 Backport to 2.0 opened as #39773 (clean cherry-pick). It merges itself once the checks pass.

@gh-bot-collate

gh-bot-collate Bot commented Dec 4, 2026

Copy link
Copy Markdown

🤖 Backport to 2.1 opened as #39775 (clean cherry-pick). It merges itself once the checks pass.

karanh37 added a commit that referenced this pull request Dec 4, 2026
* fix(security): bump shadow to 1:4.17.4-2+deb13u1

CVE-2026-135901 (DSA-6661-1): newuidmap/newgidmap can be made to overwrite an
attacker-chosen file. The trixie base of the operators image ships shadow
1:4.17.4-2; add src:shadow to the dpkg-derived --only-upgrade set so passwd
and login.defs pick up trixie-security's fixed build.

* Move the shadow note after the linux-libc-dev paragraph

---------


(cherry picked from commit 6c3d4e6)

Co-authored-by: Karan Hotchandani <[email protected]>
Co-authored-by: Khairajani <[email protected]>
karanh37 added a commit that referenced this pull request Dec 4, 2026
* fix(security): bump shadow to 1:4.17.4-2+deb13u1

CVE-2026-135901 (DSA-6661-1): newuidmap/newgidmap can be made to overwrite an
attacker-chosen file. The trixie base of the operators image ships shadow
1:4.17.4-2; add src:shadow to the dpkg-derived --only-upgrade set so passwd
and login.defs pick up trixie-security's fixed build.

* Move the shadow note after the linux-libc-dev paragraph

---------


(cherry picked from commit 6c3d4e6)

Co-authored-by: Karan Hotchandani <[email protected]>
Co-authored-by: Khairajani <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

To release Will cherry-pick this PR into the release branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants