CVE-2024-23653: BuildKit interactive containers API does not validate entitlements check

Published Jan 31, 2024
·
Updated

Impact In addition to running containers as build steps, BuildKit also provides APIs for running interactive containers based on built images. It was possible to use these APIs to ask BuildKit to run a container with elevated privileges. Normally, running such containers is only allowed if special security.insecure entitlement is enabled both by buildkitd configuration and allowed by the user initializing the build request.

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. In addition to running containers as build steps, BuildKit also provides APIs for running interactive containers based on built images. It was possible to use these APIs to ask BuildKit to run a container with elevated privileges. Normally, running such containers is only allowed if special security.insecure entitlement is enabled both by buildkitd configuration and allowed by the user initializing the build request. The issue has been fixed in v0.12.5 . Avoid using BuildKit frontends from untrusted sources.

MITRE

Affected Software

2 affected componentsFixes available
go/github.com/moby/buildkit<0.12.5
0.12.5
Mobyproject Buildkit<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 to a fixed release to a version that resolves this vulnerability.

    Fixed in 0.12.5
  3. Configuration

    Avoid using BuildKit frontends from untrusted sources (specified via Dockerfile #syntax or via buildctl build --frontend).

    BuildKit build frontends Use of untrusted frontends = Avoid

Event History

Jan 31, 2024
CVE Published
via MITRE·10:03 PM
Data Sourced
via MITRE·10:03 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·10:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Advisory Published
via GitHub·10:43 PM

Frequently Asked Questions

1

What is the severity of CVE-2024-23653?

CVE-2024-23653 has a high severity due to the potential for running containers with elevated privileges.

2

How do I fix CVE-2024-23653?

To fix CVE-2024-23653, upgrade to BuildKit version 0.12.5 or later.

3

What are the affected versions of BuildKit for CVE-2024-23653?

Affected versions of BuildKit range up to but not including version 0.12.5.

4

What is the impact of CVE-2024-23653?

CVE-2024-23653 allows unauthorized access to run interactive containers with elevated privileges.

5

Is CVE-2024-23653 related to any specific software?

CVE-2024-23653 specifically affects Mobyproject BuildKit.

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