CVE-2024-36620: Github.com/moby/moby NULL Pointer Dereference On Moby Vulnerability
MODERATECVE-2024-36620 is a MODERATE (CVSS 6.5) null pointer dereference on moby vulnerability (CWE-476: NULL Pointer Dereference) affecting Github.com/moby/moby libraries in the Go ecosystem. The issue involves null pointer dereference on moby image history. Remediation is available by upgrading affected packages to version 26.1.0.
CVE-2024-36620 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-36620
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.1.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-36620, 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.1.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-476: NULL Pointer Dereference, where the product dereferences a pointer that it expects to be valid but is null. 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-36620 Affected Github.com/moby/moby Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/moby/moby
|
Go |
≥ 25.0.0
< 26.1.0
|
26.1.0
|
References
Frequently Asked Questions
What is CVE-2024-36620?
Which Github.com/moby/moby versions are affected?
What version fixes CVE-2024-36620?
Is github.com/moby/moby affected?
What is the CVSS score of CVE-2024-36620?
What CWE is associated with CVE-2024-36620?
How can I check Go dependencies for CVE-2024-36620?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-q59j-vv4j-v33c",
"modified" : "2024-12-09T21:53:38Z",
"published" : "2024-11-29T18:34:03Z",
"aliases" : [ "CVE-2024-36620" ],
"summary" : "NULL Pointer Dereference on moby image history",
"details" : "moby v25.0.0 - v26.0.2 is vulnerable to NULL Pointer Dereference via daemon/images/image_history.go.",
"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:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:P"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/moby/moby"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "25.0.0"
}, {
"fixed" : "26.1.0"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-36620"
}, {
"type" : "WEB",
"url" : "https://github.com/moby/moby/commit/ab570ab3d62038b3d26f96a9bb585d0b6095b9b4"
}, {
"type" : "WEB",
"url" : "https://gist.github.com/1047524396/f08816669701ab478a265a811d2c89b2"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/moby/moby"
}, {
"type" : "WEB",
"url" : "https://github.com/moby/moby/blob/v26.0.2/daemon/images/image_history.go#L48"
}, {
"type" : "WEB",
"url" : "https://pkg.go.dev/vuln/GO-2024-3311"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-476" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2024-12-04T22:44:38Z",
"nvd_published_at" : "2024-11-29T18:15:07Z"
}
}