-
Notifications
You must be signed in to change notification settings - Fork 419
undock/0.11.0-r1: cve remediation #77922
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
undock/0.11.0-r1: cve remediation #77922
Conversation
<!--ci-cve-scan:must-fix: GHSA-cgrx-mc8f-2prm-->
🛑 Build Failed: Compilation
Build Details
Root Cause Analysis 🔍Missing or incompatible securejoin package dependency. The go.podman.io/storage package is trying to use securejoin.OpenInRoot and securejoin.Reopen functions that are not available, likely due to a version mismatch or missing dependency after the go/bump step updated packages. 🔍 Build failure fix suggestionsFound similar build failures that have been fixed in the past and analyzed them to suggest a fix: Similar PRs with fixes
Suggested ChangesFile: undock.yaml
Replacement: Content: Click to expand fix analysisAnalysisThe similar fixes reveal a consistent pattern: all three cases involved the same undefined functions (securejoin.OpenInRoot and securejoin.Reopen) in container storage packages. The fixes consistently involved adding a dependency replacement for github.com/cyphar/filepath-securejoin, pinning it to version v0.5.1. In two cases (podman), the fix was accomplished by adding a "replaces" section to the go/bump step, while in one case (buildah), the issue was resolved by removing the go/bump step entirely and updating to a newer upstream version that had compatible dependencies. Click to expand fix explanationExplanationThis fix should work because the root cause is a version incompatibility with the filepath-securejoin package. The undefined functions securejoin.OpenInRoot and securejoin.Reopen are present in version v0.5.1 of the package but appear to be missing or have different signatures in newer versions. By adding the replaces directive to pin filepath-securejoin to v0.5.1, we ensure that the vendor/go.podman.io/storage/userns.go code will have access to the expected function signatures. This approach directly mirrors the successful fixes in the podman package examples, where the same replacement resolved identical compilation errors. Click to expand alternative approachesAlternative Approaches
Was this comment helpful? Please use 👍 or 👎 reactions on this comment. |
|
This vulnerability remediation is stale and no longer needed. 👋 Advisory CGA-v4gx-5w7w-pqgp has the latest event type of "pending-upstream-fix" View with: 🔀 v2 advisory logic would not have closed this PR: Found 4 advisories, but 2 of them are not resolved (CGA-43vh-3w7c-3gxq, CGA-rx33-p3gc-rvm2). |
|
This vulnerability remediation is stale and no longer needed. 👋 Advisory CGA-v4gx-5w7w-pqgp has the latest event type of "pending-upstream-fix" View with: |
|
This vulnerability remediation is stale and no longer needed. 👋 Advisory CGA-43vh-3w7c-3gxq has the latest event type of "PENDING_UPSTREAM_FIX" View with: |
undock/0.11.0-r1: fix GHSA-cgrx-mc8f-2prm
Advisory data: https://github.com/wolfi-dev/advisories/blob/main/undock.advisories.yaml
"Breadcrumbs" for this automated service
Inspected git repositories: https://github.com/crazy-max/undock@v0.11.0