VDB
Sign up
MEDIUM5.3

GHSA-9p26-698r-w4hx

BuildKit vulnerable to possible panic when incorrect parameters sent from frontend

Quick fix

GHSA-9p26-698r-w4hx — github.com/moby/buildkit: upgrade to the fixed version with the command below.

go get github.com/moby/buildkit@v0.12.5

Details

### Impact A malicious BuildKit client or frontend could craft a request that could lead to BuildKit daemon crashing with a panic.

### Patches The issue has been fixed in v0.12.5

### Workarounds Avoid using BuildKit frontends from untrusted sources. A frontend image is usually specified as the `#syntax` line on your Dockerfile, or with `--frontend` flag when using `buildctl build` command.

### References

Are you affected?

Enter the version of the package you're using.

Affected packages

Go/github.com/moby/buildkit
Introduced in: 0Fixed in: 0.12.5
Fixgo get github.com/moby/buildkit@v0.12.5

References