CVE-2024-36623: Github.com/moby/moby Moby Race Condition Vulnerability Vulnerability

HIGH
Advisory Identifier: GHSA-gh5c-3h97-2f3q
CVSS 8.1
CWE-362
Published
Advisory Summary

CVE-2024-36623 is a HIGH (CVSS 8.1) moby race condition vulnerability vulnerability (CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')) affecting Github.com/moby/moby libraries in the Go ecosystem. The issue involves moby race condition vulnerability. Remediation is available by upgrading affected packages to version 25.0.4.

CVE-2024-36623 at a Glance

CVE Identifier CVE-2024-36623
GHSA Identifier GHSA-gh5c-3h97-2f3q
Severity HIGH
CVSS v3.1 Base Score 8.1
CWE Classification CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')
Affected Product Github.com/moby/moby
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 8.1

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity High (I:H)
Availability High (A:H)

How to Fix CVE-2024-36623

To remediate this vulnerability, upgrade all affected Github.com/moby/moby dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/moby/moby fixed: 25.0.4
Upgrade github.com/moby/moby to 25.0.4
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for github.com/moby/moby

How to Check if You Are Affected

To determine whether your application is affected by CVE-2024-36623, inspect your project dependencies for Github.com/moby/moby:

inspect dependencies for github.com/moby/moby

Analyze the terminal output to locate any version of Github.com/moby/moby in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 25.0.4), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition'), where the product contains a concurrent code sequence that requires temporary, exclusive access to a shared resource, but a timing window exists in which the shared resource can be modified by another code sequence operating concurrently. In Github.com/moby/moby, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

moby v25.0.3 has a Race Condition vulnerability in the streamformatter package which can be used to trigger multiple concurrent write operations resulting in data corruption or application crashes.

CVE-2024-36623 Affected Github.com/moby/moby Versions

1 component(s)
Fixed Versions:
25.0.4
Product / Package Ecosystem Affected Versions Fixed Version
github.com/moby/moby
Go
< 25.0.4
25.0.4

References

Frequently Asked Questions

What is CVE-2024-36623?
CVE-2024-36623 is a security vulnerability in Github.com/moby/moby involving Moby Race Condition vulnerability under CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition').
Which Github.com/moby/moby versions are affected?
Affected versions include releases prior to 25.0.4 across affected packages: github.com/moby/moby.
What version fixes CVE-2024-36623?
Upgrading to 25.0.4 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/moby/moby affected?
Yes, github.com/moby/moby is affected in releases prior to 25.0.4. Upgrade your dependency to 25.0.4 or later.
What is the CVSS score of CVE-2024-36623?
CVE-2024-36623 has a CVSS v3.1 base score of 8.1 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H.
What CWE is associated with CVE-2024-36623?
CVE-2024-36623 is classified under CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition') (The product contains a concurrent code sequence that requires temporary, exclusive access to a shared resource, but a timing window exists in which the shared resource can be modified by another code sequence operating concurrently.).
How can I check Go dependencies for CVE-2024-36623?
Run the dependency tree command: 'inspect dependencies for github.com/moby/moby'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-gh5c-3h97-2f3q",
  "modified" : "2025-04-04T15:19:50Z",
  "published" : "2024-11-29T18:34:03Z",
  "aliases" : [ "CVE-2024-36623" ],
  "summary" : "Moby Race Condition vulnerability",
  "details" : "moby v25.0.3 has a Race Condition vulnerability in the streamformatter package which can be used to trigger multiple concurrent write operations resulting in data corruption or application crashes.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/moby/moby"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "25.0.4"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-36623"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/moby/moby/commit/5689dabfb357b673abdb4391eef426f297d7d1bb"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/moby/moby/commit/8e3bcf19748838b30e34d612832d1dc9d90363b8"
  }, {
    "type" : "WEB",
    "url" : "https://gist.github.com/1047524396/c192c0159a19bf58a4373b696467dc29"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/moby/moby"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/moby/moby/blob/v25.0.3/pkg/streamformatter/streamformatter.go#L115"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-362" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-12-02T21:38:26Z",
    "nvd_published_at" : "2024-11-29T18:15:08Z"
  }
}