CVE-2024-23650
BuildKit possible panic when incorrect parameters sent from frontend
Also known as GHSA-9p26-698r-w4hx, GO-2024-2492
Mitigation
- Upgrade github.com/moby/buildkit to 0.12.5 or later.
Who should check
- Projects that depend on Go package github.com/moby/buildkit (< 0.12.5)
- Anyone running moby buildkit < 0.12.5
Vulnerability facts
- Affected
- github.com/moby/buildkit < 0.12.5
- Fixed in
- 0.12.5
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 5.3 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:LOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Privileges required: None
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: None
- Integrity impact: None
- Availability impact: Low
- EPSS
- 1.08% chance of exploitation in 30 days (percentile 65, 2026-11-26)
- CWE
- CWE-754
- Modified
Description
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Go github.com/moby/buildkit | < 0.12.5 | 0.12.5 | osv |
| moby buildkit | < 0.12.5 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2024-23650. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2024-23650.md Affected: github.com/moby/buildkit < 0.12.5 Fixed in: 0.12.5 Steps: 1. Search this machine and project for github.com/moby/buildkit (Go), moby buildkit: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
Patches
- https://github.com/moby/buildkit/pull/4601
- https://github.com/moby/buildkit/releases/tag/v0.12.5
- https://github.com/moby/buildkit/commit/481d9c45f473c58537f39694a38d7995cc656987
- https://github.com/moby/buildkit/commit/7718bd5c3dc8fc5cd246a30cc41766e7a53c043c
- https://github.com/moby/buildkit/commit/83edaef59d545b93e2750f1f85675a3764593fee
- https://github.com/moby/buildkit/commit/96663dd35bf3787d7efb1ee7fd9ac7fe533582ae
- https://github.com/moby/buildkit/commit/e1924dc32da35bfb0bfdbb9d0fc7bca25e552330
FAQ
Is CVE-2024-23650 being exploited?
There is no confirmed exploitation: CVE-2024-23650 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.08% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2024-23650?
Medium: CVSS 5.3 (v3.1, scored by CNA). Remote, no login needed.
Which versions are affected by CVE-2024-23650?
github.com/moby/buildkit < 0.12.5.
Is there a fix for CVE-2024-23650?
Yes. Fixed in 0.12.5. Upgrade github.com/moby/buildkit to 0.12.5 or later.
How do I check if I'm affected by CVE-2024-23650?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.