CVE-2024-36620: Github.com/moby/moby NULL Pointer Dereference On Moby Vulnerability

MODERATE
Advisory Identifier: GHSA-q59j-vv4j-v33c
CVSS 6.5
CWE-476
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2024-36620
GHSA Identifier GHSA-q59j-vv4j-v33c
Severity MODERATE
CVSS v3.1 Base Score 6.5
CWE Classification CWE-476: NULL Pointer Dereference
Affected Product Github.com/moby/moby
Package Ecosystem Go
Published Date
Last Updated

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).

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 None (I:N)
Availability High (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.

github.com/moby/moby fixed: 26.1.0
Upgrade github.com/moby/moby to 26.1.0
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-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

moby v25.0.0 - v26.0.2 is vulnerable to NULL Pointer Dereference via daemon/images/image_history.go.

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

1 component(s)
Fixed Versions:
26.1.0
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?
CVE-2024-36620 is a security vulnerability in Github.com/moby/moby involving NULL Pointer Dereference on moby image history under CWE-476: NULL Pointer Dereference.
Which Github.com/moby/moby versions are affected?
Affected versions include releases prior to 26.1.0 across affected packages: github.com/moby/moby.
What version fixes CVE-2024-36620?
Upgrading to 26.1.0 (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 26.1.0. Upgrade your dependency to 26.1.0 or later.
What is the CVSS score of CVE-2024-36620?
CVE-2024-36620 has a CVSS v3.1 base score of 6.5 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H.
What CWE is associated with CVE-2024-36620?
CVE-2024-36620 is classified under CWE-476: NULL Pointer Dereference (The product dereferences a pointer that it expects to be valid but is NULL.).
How can I check Go dependencies for CVE-2024-36620?
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-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"
  }
}