---
title: "CVE-2024-23652\n    | Ubuntu"
description: Ubuntu is an open source software operating system that runs from the
  desktop, to the cloud, to all your internet connected things.
url: https://ubuntu.com/security/CVE-2024-23652?format=md
keywords: index, follow
---

# CVE-2024-23652

Publication date 31 January 2024

Last updated 11 July 2025

---

Ubuntu priority

**Medium**

[Why this priority?](https://ubuntu.com/security/cves/about#priority )

## Cvss 3 Severity Score

**10.0 · Critical**

[Score breakdown](https://ubuntu.com/security/CVE-2024-23652?format=md#impact-score)

Toggle side navigation

## Description

BuildKit is a toolkit for converting source code to build artifacts in an
efficient, expressive and repeatable manner. A malicious BuildKit frontend
or Dockerfile using RUN --mount could trick the feature that removes empty
files created for the mountpoints into removing a file outside the
container, from the host system. The issue has been fixed in v0.12.5.
Workarounds include avoiding using BuildKit frontends from an untrusted
source or building an untrusted Dockerfile containing RUN --mount feature.

[Read the notes from the security team](https://ubuntu.com/security/CVE-2024-23652?format=md#notes)

## Status

Show unmaintained releases

| Package | Ubuntu Release | Status |
| --- | --- | --- |
| docker.io-app | 26.04 LTS resolute | Not affected |
| 25.10 questing | Not affected |
| 25.04 plucky | Not affected |
| 24.10 oracular | Ignored end of life, was needed |
| 24.04 LTS noble | Fixed 27.5.1-0ubuntu3~24.04.2 |
| 23.10 mantic | Ignored end of life, was needed |
| 22.04 LTS jammy | Fixed 27.5.1-0ubuntu3~22.04.2 |
| 20.04 LTS focal | Fixed 26.1.3-0ubuntu1~20.04.1+esm1  Ubuntu Pro |
| 18.04 LTS bionic | Not in release |
| 16.04 LTS xenial | Not in release |
| 14.04 LTS trusty | Not in release |
| docker.io | 26.04 LTS resolute | Not affected |
| 25.10 questing | Not affected |
| 25.04 plucky | Ignored end of life, was needed |
| 24.10 oracular | Ignored end of life, was needed |
| 24.04 LTS noble | Fixed 20.10.25+dfsg1-2ubuntu1+esm2  Ubuntu Pro |
| 23.10 mantic | Ignored end of life, was needed |
| 22.04 LTS jammy | Fixed 20.10.21-0ubuntu1~22.04.7+esm2  Ubuntu Pro |
| 20.04 LTS focal | Fixed 20.10.21-0ubuntu1~20.04.6+esm2  Ubuntu Pro |
| 18.04 LTS bionic | Fixed 20.10.21-0ubuntu1~18.04.3+esm3  Ubuntu Pro |
| 16.04 LTS xenial | Ignored end of standard support |
| 14.04 LTS trusty | Ignored end of standard support |

---

* [How can I get the fixes?](https://ubuntu.com/security/cves/about#security)
* [What do statuses mean?](https://ubuntu.com/security/cves/about#statuses)
* [Patch details](https://ubuntu.com/security/CVE-2024-23652?format=md#patch-details)

### Get expanded security coverage with Ubuntu Pro

Reduce your average CVE exposure time from 98 days to 1 day with expanded CVE patching, ten-years security maintenance and optional support for the full stack of open-source applications. Free for personal use.

[Get Ubuntu Pro](https://ubuntu.com/pro)
[30-day free trial](https://ubuntu.com/pro/free-trial)

## Notes

---

### [alexmurray](https://launchpad.net/~alexmurray)

Traditionally the docker.io source package contained both the
library and docker application. However, in releases that
contain the
docker.io-app source package, the docker.io source package
contains only
the library whilst the docker application itself is contained
in the
docker.io-app package.

---

### [sbeattie](https://launchpad.net/~sbeattie)

docker packages contain an embedded copy of github:moby/buildkit

### Patch details

For informational purposes only. We recommend not to cherry-pick updates. [How can I get the fixes?](https://ubuntu.com/security/cves/about#security)

| Package | Patch details |
| --- | --- |
| docker.io | * Upstream:   <https://github.com/moby/buildkit/pull/4603/commits/23bebc4a180b84ba18733f545e7559e10c439ac3> |

## Severity score breakdown

CVSS version:
CVSS v3.0

**Base score**

10.0 · Critical

* Base metrics

  | Parameter | Value |
  | --- | --- |
  | Attack vector | Network |
  | Attack complexity | Low |
  | Privileges required | None |
  | User interaction | None |
  | Scope | Changed |
  | Confidentiality impact | None |
  | Integrity impact | High |
  | Availability impact | High |
* Scores

  | Parameter | Value |
  | --- | --- |
  | Base score | 10.0 · Critical |
  | Exploitability score | - |
  | Impact score | - |

**Vector:** CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:H

## References

* [MITRE](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-23652)
* [NVD](https://nvd.nist.gov/vuln/detail/CVE-2024-23652)
* [Launchpad](https://launchpad.net/bugs/cve/CVE-2024-23652)
* [Debian](https://security-tracker.debian.org/tracker/CVE-2024-23652)

### Related Ubuntu Security Notices (USN)

+ [USN-7474-1](https://usn.ubuntu.com/USN-7474-1)
+ Docker vulnerabilities
+ 1 May 2025

### Other references

* <https://github.com/moby/buildkit/security/advisories/GHSA-4v98-7qmw-rqr8>
* <https://github.com/moby/buildkit/pull/4603>
* <https://github.com/moby/buildkit/releases/tag/v0.12.5>
* <https://www.cve.org/CVERecord?id=CVE-2024-23652>
