Skip to content

[0.12] Fix CVE-2023-47108, CVE-2023-45142, CVE-2023-48795 - #2221

Closed
aepifanov wants to merge 10 commits into
docker:v0.12from
aepifanov:fix-cves
Closed

aepifanov wants to merge 10 commits into
docker:v0.12from
aepifanov:fix-cves

Conversation

@aepifanov

Copy link
Copy Markdown

No description provided.

@thaJeztah

Copy link
Copy Markdown
Member

It looks like the vendor validate is failing (might be needed to run make vendor for each commit to make sure vendoring is correct).

Also; we prefer using the -X option when cherry-picking, so that there's a reference to the original commit in master in the commit message ("cherry-picked from <commit sha>). This helps tracking where changes originate from, and to verify if all associated changes were included (sometimes commits may require other changes that don't immediately invalidate CI).

Separate from all of the above, I think some of these updates are preferred to be following from the BuildKit version used (I know at least grpc has been known to be sometimes subtly broken if versions don't match), but I'll leave that to buildx maintainers (cc @crazy-max @tonistiigi), and some of these CVEs were either false positives or no change in scope (considering the grpc API a privileged interface)

@crazy-max

Copy link
Copy Markdown
Member

Separate from all of the above, I think some of these updates are preferred to be following from the BuildKit version used (I know at least grpc has been known to be sometimes subtly broken if versions don't match), but I'll leave that to buildx maintainers (cc @crazy-max @tonistiigi)

Yes indeed majority of them are preferred to be taken through BuildKit vendoring such as grpc and otel (specially hum): https://github.com/moby/buildkit/blob/master/go.mod

and some of these CVEs were either false positives or no change in scope (considering the grpc API a privileged interface)

Yes agree with @thaJeztah, do you have details about how buildx is affected and the valid exploitation scenarios you found?

@thaJeztah

Copy link
Copy Markdown
Member

related to some of these;

thaJeztah and others added 10 commits February 13, 2024 02:09
full diff: golang/tools@v0.7.0...v0.10.0

Signed-off-by: Sebastiaan van Stijn <[email protected]>
(cherry picked from commit 9efaa27)
Signed-off-by: Andrey Epifanov <[email protected]>
Signed-off-by: Sebastiaan van Stijn <[email protected]>
(cherry picked from commit ab58333)
Signed-off-by: Andrey Epifanov <[email protected]>
full diff: golang/oauth2@v0.5.0...v0.10.0

Signed-off-by: Sebastiaan van Stijn <[email protected]>
(cherry picked from commit 7f93616)
Signed-off-by: Andrey Epifanov <[email protected]>
Signed-off-by: Sebastiaan van Stijn <[email protected]>
(cherry picked from commit 4932eec)
Signed-off-by: Andrey Epifanov <[email protected]>
full diff: go-logr/logr@v1.2.3...v1.2.4

Signed-off-by: Sebastiaan van Stijn <[email protected]>
(cherry picked from commit 271a467)
Signed-off-by: Andrey Epifanov <[email protected]>
@aepifanov
aepifanov marked this pull request as draft February 13, 2024 10:16
@colinhemmings

Copy link
Copy Markdown
Collaborator

Thank you for your contribution. After reviewing, we see that Buildx is unaffected by these issues. Introducing such a substantial change during a patch release introduces a significant test/stability risk, all for minimal value to the end user.
As such, we will not be including this change in Buildx v0.12

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.

4 participants