CVE-2024-23653

CRITICAL

BuildKit < 0.12.5 - Incorrect Authorization via Interactive Container API

Title source: llm
STIX 2.1

Exploitation Summary

EIP tracks 1 public exploit for CVE-2024-23653. PoCs published by 666asd.

AI-analyzed exploit summary This repository contains a functional exploit for CVE-2024-23653, leveraging Docker BuildKit to execute arbitrary commands with elevated privileges. The exploit manipulates the Dockerfile syntax to bypass security restrictions and achieve container escape.

Description

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.

Exploits (1)

nomisec WORKING POC 4 stars
by 666asd · poc
https://github.com/666asd/CVE-2024-23653

This repository contains a functional exploit for CVE-2024-23653, leveraging Docker BuildKit to execute arbitrary commands with elevated privileges. The exploit manipulates the Dockerfile syntax to bypass security restrictions and achieve container escape.

Classification
Working Poc 90%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: Docker BuildKit
No auth needed
Prerequisites: Docker BuildKit installed · Ability to execute build commands
devstral-2 · analyzed Feb 19, 2026 Full analysis →

References (3)

Core 3
Core References
Patch, Vendor Advisory x_refsource_misc
https://github.com/moby/buildkit/pull/4602
Patch, Release Notes x_refsource_misc
https://github.com/moby/buildkit/releases/tag/v0.12.5

Scores

CVSS v3 9.8
EPSS 0.1030
EPSS Percentile 93.4%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

CISA SSVC

Vulnrichment
Exploitation none
Automatable yes
Technical Impact total

Details

CWE
CWE-863
Status published
Products (2)
moby/buildkit 0 - 0.12.5Go
mobyproject/buildkit < 0.12.5
Published Jan 31, 2024
Tracked Since Feb 18, 2026