---
id: CVE-2024-36621
aliases:
  - GHSA-2mj3-vfvx-fc43
  - GO-2024-3304
title: Moby Race Condition vulnerability
summary: Moby Race Condition vulnerability
severity: medium
cvss: 6.5
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'
vendor: moby
product: github.com/moby/moby
ecosystem: go
affected:
  - github.com/moby/moby < 26.0.0
patched:
  - github.com/moby/moby 26.0.0
published: '2024-11-29'
updated: '2026-09-10'
sourceUpdated: '2026-09-10T03:50:20.240708713Z'
source: OSV
sourceUrl: 'https://osv.dev/vulnerability/GHSA-2mj3-vfvx-fc43'
references:
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2024-36621'
  - url: >-
      https://github.com/moby/moby/commit/37545cc644344dcb576cba67eb7b6f51a463d31e
  - url: 'https://gist.github.com/1047524396/5d44459edab5fafcdf86b43909b81135'
  - url: 'https://github.com/advisories/GHSA-2mj3-vfvx-fc43'
  - url: 'https://github.com/moby/moby'
  - url: >-
      https://github.com/moby/moby/blob/v25.0.5/builder/builder-next/adapters/snapshot/layer.go#L24
tags:
  - osv
  - go
epss: 0.00626
epssPercentile: 0.47731
ingestedAt: '2026-09-12T03:13:01.745Z'
---

## Overview

moby v25.0.5 is affected by a Race Condition in builder/builder-next/adapters/snapshot/layer.go. The vulnerability could be used to trigger concurrent builds that call the EnsureLayer function resulting in resource leaks/exhaustion.

## Affected packages

- `github.com/moby/moby < 26.0.0`

## Remediation

Upgrade to a patched release:

- `github.com/moby/moby 26.0.0`
