CVE-2024-36621: Github.com/moby/moby Moby Race Condition Vulnerability Vulnerability
HIGHCVE-2024-36621 is a HIGH (CVSS 6.5) 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 26.0.0.
CVE-2024-36621 at a Glance
Security Impact
CVSS: 6.5
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:N/A:H).
How to Fix CVE-2024-36621
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.
Upgrade github.com/moby/moby to 26.0.0
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-36621, 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 26.0.0), 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
CVE-2024-36621 Affected Github.com/moby/moby Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/moby/moby
|
Go |
< 26.0.0
|
26.0.0
|
References
Frequently Asked Questions
What is CVE-2024-36621?
Which Github.com/moby/moby versions are affected?
What version fixes CVE-2024-36621?
Is github.com/moby/moby affected?
What is the CVSS score of CVE-2024-36621?
What CWE is associated with CVE-2024-36621?
How can I check Go dependencies for CVE-2024-36621?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-2mj3-vfvx-fc43",
"modified" : "2024-12-04T22:17:00Z",
"published" : "2024-11-29T18:34:03Z",
"aliases" : [ "CVE-2024-36621" ],
"summary" : "Moby Race Condition vulnerability",
"details" : "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.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/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" : "26.0.0"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-36621"
}, {
"type" : "WEB",
"url" : "https://github.com/moby/moby/commit/37545cc644344dcb576cba67eb7b6f51a463d31e"
}, {
"type" : "WEB",
"url" : "https://gist.github.com/1047524396/5d44459edab5fafcdf86b43909b81135"
}, {
"type" : "ADVISORY",
"url" : "https://github.com/advisories/GHSA-2mj3-vfvx-fc43"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/moby/moby"
}, {
"type" : "WEB",
"url" : "https://github.com/moby/moby/blob/v25.0.5/builder/builder-next/adapters/snapshot/layer.go#L24"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-362" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2024-12-02T21:38:01Z",
"nvd_published_at" : "2024-11-29T18:15:07Z"
}
}