Skip to content

fix(security): Resolve CVE-GHSA-cgrx-mc8f-2prm (selinux v1.12.0) #2475

@jjbustamante

Description

@jjbustamante

Problem

The project has a high-severity CVE in the github.com/opencontainers/selinux dependency:

  • CVE ID: GHSA-cgrx-mc8f-2prm
  • Severity: High
  • Current Version: v1.12.0
  • Fixed Version: v1.13.0
  • EPSS: < 0.1% (2nd percentile)

Additional CVEs Detected

The scan also identified medium-severity CVEs in golang.org/x/crypto:

Root Cause

The selinux v1.12.0 dependency comes from:

  1. github.com/GoogleContainerTools/kaniko v1.24.0 (unmaintained)
  2. github.com/buildpacks/lifecycle v0.20.11

The original kaniko repository is unmaintained, and Chainguard has forked the project to continue maintenance at github.com/chainguard-dev/kaniko.

Proposed Solution

  1. Migrate from GoogleContainerTools/kaniko to chainguard-dev/kaniko v1.25.4
  2. Update buildpacks/lifecycle to v0.20.19 (which already uses the Chainguard fork)
  3. Upgrade opencontainers/selinux to v1.13.0

This will resolve all identified CVEs.

Metadata

Metadata

Assignees

Labels

cvestatus/readyIssue ready to be worked on.type/bugIssue that reports an unexpected behaviour.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions