CVE-2024-23650: BuildKit possible panic when incorrect parameters sent from frontend

Published Jan 31, 2024
·
Updated

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

Other sources

BuildKit is a toolkit for converting source code to build artifacts in an efficient, expressive and repeatable manner. A malicious BuildKit client or frontend could craft a request that could lead to BuildKit daemon crashing with a panic. The issue has been fixed in v0.12.5. As a workaround, avoid using BuildKit frontends from untrusted sources.

MITRE

Affected Software

3 affected componentsFixes available
go/github.com/moby/buildkit<0.12.5
0.12.5
Mobyproject Buildkit<0.12.5
redhat/buildkit<0.12.5
0.12.5

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade go/github.com/moby/buildkit to a version that resolves this vulnerability.

    Fixed in 0.12.5
  2. Upgrade

    Upgrade redhat/buildkit to a version that resolves this vulnerability.

    Fixed in 0.12.5
  3. Upgrade

    Upgrade moby/buildkit to a version that resolves this vulnerability.

    Fixed in v0.12.5
  4. Compensating control

    Avoid using BuildKit frontends from untrusted sources (frontend is specified via the `#syntax` line in Dockerfile or with the `--frontend` flag when using `buildctl build`).

Event History

Jan 31, 2024
CVE Published
via MITRE·09:42 PM
Data Sourced
via MITRE·09:42 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·10:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Advisory Published
via GitHub·10:43 PM
Feb 1, 2024
Data Sourced
via Red Hat·02:10 PM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2024-23650?

CVE-2024-23650 has been classified as a critical severity vulnerability due to its potential to crash the BuildKit daemon.

2

How do I fix CVE-2024-23650?

CVE-2024-23650 can be fixed by updating to BuildKit version 0.12.5 or later.

3

What causes the vulnerability CVE-2024-23650?

CVE-2024-23650 is caused by a BuildKit client or frontend sending crafted requests that lead to daemon crashes.

4

Can using untrusted BuildKit frontends impact CVE-2024-23650?

Yes, using untrusted BuildKit frontends can trigger CVE-2024-23650 by sending malicious requests.

5

Is there a workaround for CVE-2024-23650?

To mitigate CVE-2024-23650, it is recommended to avoid using BuildKit frontends from untrusted sources.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203