9.8
CRITICAL
CVE-2024-23653
"BuildKit Privilege Escalation Vulnerability"
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.

INFO

Published Date :

Jan. 31, 2024, 10:15 p.m.

Last Modified :

Feb. 9, 2024, 1:44 a.m.

Remotely Exploitable :

Yes !

Impact Score :

5.9

Exploitability Score :

3.9
Public PoC/Exploit Available at Github

CVE-2024-23653 has a 3 public PoC/Exploit available at Github. Go to the Public Exploits tab to see the list.

Affected Products

The following products are affected by CVE-2024-23653 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Mobyproject buildkit
References to Advisories, Solutions, and Tools

Here, you will find a curated list of external links that provide in-depth information, practical solutions, and valuable tools related to CVE-2024-23653.

URL Resource
https://github.com/moby/buildkit/pull/4602 Patch Vendor Advisory
https://github.com/moby/buildkit/releases/tag/v0.12.5 Patch Release Notes
https://github.com/moby/buildkit/security/advisories/GHSA-wr6v-9f75-vh2g Vendor Advisory

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

None

Dockerfile C Go

Updated: 9 months, 1 week ago
0 stars 0 fork 0 watcher
Born at : Feb. 11, 2024, 6:21 a.m. This repo has been linked 4 different CVEs too.

Static detection tool for runc and Docker "Leaky Vessels" vulnerabilities

Dockerfile Shell JavaScript Go

Updated: 3 months, 1 week ago
94 stars 17 fork 17 watcher
Born at : Jan. 31, 2024, 12:24 p.m. This repo has been linked 4 different CVEs too.

Leaky Vessels Dynamic Detector

Dockerfile C Go

Updated: 2 months, 2 weeks ago
94 stars 10 fork 10 watcher
Born at : Jan. 31, 2024, 9:07 a.m. This repo has been linked 4 different CVEs too.

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2024-23653 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2024-23653 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Modified by [email protected]

    May. 14, 2024

    Action Type Old Value New Value
  • Initial Analysis by [email protected]

    Feb. 09, 2024

    Action Type Old Value New Value
    Added CVSS V3.1 NIST AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
    Changed Reference Type https://github.com/moby/buildkit/pull/4602 No Types Assigned https://github.com/moby/buildkit/pull/4602 Patch, Vendor Advisory
    Changed Reference Type https://github.com/moby/buildkit/releases/tag/v0.12.5 No Types Assigned https://github.com/moby/buildkit/releases/tag/v0.12.5 Patch, Release Notes
    Changed Reference Type https://github.com/moby/buildkit/security/advisories/GHSA-wr6v-9f75-vh2g No Types Assigned https://github.com/moby/buildkit/security/advisories/GHSA-wr6v-9f75-vh2g Vendor Advisory
    Added CPE Configuration OR *cpe:2.3:a:mobyproject:buildkit:*:*:*:*:*:*:*:* versions up to (excluding) 0.12.5
  • CVE Received by [email protected]

    Jan. 31, 2024

    Action Type Old Value New Value
    Added 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.
    Added Reference GitHub, Inc. https://github.com/moby/buildkit/security/advisories/GHSA-wr6v-9f75-vh2g [No types assigned]
    Added Reference GitHub, Inc. https://github.com/moby/buildkit/pull/4602 [No types assigned]
    Added Reference GitHub, Inc. https://github.com/moby/buildkit/releases/tag/v0.12.5 [No types assigned]
    Added CWE GitHub, Inc. CWE-863
    Added CVSS V3.1 GitHub, Inc. AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2024-23653 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2024-23653 weaknesses.

Exploit Prediction

EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.

0.07 }} 0.02%

score

0.27574

percentile

CVSS31 - Vulnerability Scoring System
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality
Integrity
Availability