Skip to content

CVE-2025-0495 fix: update buildx to v0.21.3#6

Open
rcmadhankumar wants to merge 1 commit intoSUSE:suse-v2.33.1from
rcmadhankumar:suse-v2.33.1-CVE-2025-0495
Open

CVE-2025-0495 fix: update buildx to v0.21.3#6
rcmadhankumar wants to merge 1 commit intoSUSE:suse-v2.33.1from
rcmadhankumar:suse-v2.33.1-CVE-2025-0495

Conversation

@rcmadhankumar
Copy link
Copy Markdown

--
CVE-2025-0495: docker-compose: buildx: credential leakage to telemetry endpoints when credentials allowed to be set as attribute values in cache-to/cache-from configuration

Buildx is a Docker CLI plugin that extends build capabilities using BuildKit.

Cache backends support credentials by setting secrets directly as attribute values in cache-to/cache-from configuration. When supplied as user input, these secure values may be inadvertently captured in OpenTelemetry traces as part of the arguments and flags for the traced CLI command. OpenTelemetry traces are also saved in BuildKit daemon's history records.

buildx v0.21.3 has the fix for the issue
reference: GHSA-m4gq-fm9h-8q75

Fixes CVE-2025-0495
Fixes bsc#1239766

What I did

Related issue

(not mandatory) A picture of a cute animal, if possible in relation to what you did

--
CVE-2025-0495: docker-compose: buildx: credential leakage to
telemetry endpoints when credentials allowed to be set as
attribute values in cache-to/cache-from configuration

Buildx is a Docker CLI plugin that extends build capabilities
using BuildKit.

Cache backends support credentials by setting secrets directly
as attribute values in cache-to/cache-from configuration. When
supplied as user input, these secure values may be inadvertently
captured in OpenTelemetry traces as part of the arguments and
flags for the traced CLI command. OpenTelemetry traces are also
saved in BuildKit daemon's history records.

buildx v0.21.3 has the fix for the issue
reference: GHSA-m4gq-fm9h-8q75

Fixes CVE-2025-0495
Fixes bsc#1239766
default:
return nil, fmt.Errorf("agent: failed to list keys, unexpected message type %T", msg)
}
panic("unreachable")
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This is overriding changes for an existing backport; ref: bsc#1253584

for len(constraints) != 0 {
switch constraints[0] {
case agentConstrainLifetime:
if len(constraints) < 5 {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Same; this is also part of bsc#1253584

if !ok {
return errors.Errorf("invalid value %s", field)
}
key = strings.TrimSpace(strings.ToLower(key))
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Can you please check files under buildflags/ to see if they are supposed to be part of this backport? I'm using https://github.com/docker/buildx/pull/3067/commits as reference

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.

2 participants