Skip to content

[release-1.51] Use newer release of securejoin package to secure userns paths#2208

Merged
TomSweeneyRedHat merged 1 commit intocontainers:release-1.51from
kwilczynski:feature/use-latest-securejoin-for-release-1.51
Jan 14, 2025
Merged

[release-1.51] Use newer release of securejoin package to secure userns paths#2208
TomSweeneyRedHat merged 1 commit intocontainers:release-1.51from
kwilczynski:feature/use-latest-securejoin-for-release-1.51

Conversation

@kwilczynski
Copy link
Copy Markdown
Member

@kwilczynski kwilczynski commented Jan 10, 2025

The backport to release 1.51 brought about implementation of a fix to the CVE-2024-9676 / GHSA-wq2p-5pc6-wpgf that while deemed sufficient wasn't completely secure as there are potential side effects to it that would need to be fixed as identified by @cyphar. The alternative fix would also involve a hand-rolled implementation, which might or might not be sufficient.

However, while discussing a possible way forward, it has become apparent that the latest available implementation within the securejoin package would be the preferred one anyway. The only reason why we were unable to use it was Go version compatibility issue—a too-new Go version was required for some ancillary changes, not the core implementation, and thus, the package could not be used.

That said, as part of some valiant effort, @cyphar was able to remove the blocker that prevented us from using a newer release of securejoin package with an older version of Go.

Thus, as there are no more reasons not to, update to the supported release of the securejoin package, which allows us to use the more secure implementation of the secureOpen() helper as seen in more modern releases.

Related:

Signed-off-by: Krzysztof Wilczyński <kwilczynski@redhat.com>
@kwilczynski kwilczynski changed the title Use newer release of securejoin package to secure userns paths [WIP] [release-1.51] Use newer release of securejoin package to secure userns paths Jan 10, 2025
@kwilczynski kwilczynski changed the title [WIP] [release-1.51] Use newer release of securejoin package to secure userns paths [release-1.51] Use newer release of securejoin package to secure userns paths Jan 12, 2025
@kwilczynski
Copy link
Copy Markdown
Member Author

/cc @mheon

@openshift-ci openshift-ci Bot requested a review from mheon January 12, 2025 11:07
@mheon
Copy link
Copy Markdown
Member

mheon commented Jan 13, 2025

LGTM on my end
@nalind @giuseppe PTAL

Copy link
Copy Markdown
Member

@giuseppe giuseppe left a comment

Choose a reason for hiding this comment

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

LGTM

@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci Bot commented Jan 13, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: giuseppe, kwilczynski

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@rhatdan
Copy link
Copy Markdown
Member

rhatdan commented Jan 13, 2025

/lgtm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants