CVE-2026-33997: Github.com/docker/docker Moby Has An Off-by-one Error Vulnerability

MODERATE
Advisory Identifier: GHSA-pxq6-2prw-chj9
CVSS 6.8
CWE-193
Published
Advisory Summary

CVE-2026-33997 is a MODERATE (CVSS 6.8) moby has an off-by-one error vulnerability (CWE-193: Off-by-one Error) affecting Github.com/docker/docker libraries in the Go ecosystem. The issue involves moby has an off-by-one error in its plugin privilege validation. Remediation is available by upgrading affected packages to version 2.0.0-beta.8.

CVE-2026-33997 at a Glance

CVE Identifier CVE-2026-33997
GHSA Identifier GHSA-pxq6-2prw-chj9
Severity MODERATE
CVSS v3.1 Base Score 6.8
CWE Classification CWE-193: Off-by-one Error
Affected Product Github.com/docker/docker
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 6.8

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

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

How to Fix CVE-2026-33997

To remediate this vulnerability, upgrade all affected Github.com/docker/docker 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/docker/docker fixed: Latest secure release
Upgrade github.com/docker/docker to Latest secure release
github.com/moby/moby/v2 fixed: 2.0.0-beta.8
Upgrade github.com/moby/moby/v2 to 2.0.0-beta.8
github.com/moby/moby fixed: Latest secure release
Upgrade github.com/moby/moby to Latest secure release
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/docker/docker

How to Check if You Are Affected

To determine whether your application is affected by CVE-2026-33997, inspect your project dependencies for Github.com/docker/docker:

inspect dependencies for github.com/docker/docker

Analyze the terminal output to locate any version of Github.com/docker/docker in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.0.0-beta.8), 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-193: Off-by-one Error, where a product calculates or uses an incorrect maximum or minimum value that is 1 more, or 1 less, than the correct value. In Github.com/docker/docker, 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

## Summary A security vulnerability has been detected that allows [plugins](https://docs.docker.com/engine/extend/legacy_plugins/) privilege validation to be bypassed during `docker plugin install`. Due to an error in the daemon's privilege comparison logic, the daemon may incorrectly accept a privilege set that differs from the one approved by the user. Plugins that request exactly one privilege are also affected, because no comparison is performed at all. ## Impact **If plugins are not in use, there is no impact.** When a plugin is installed, the daemon computes the privileges required by the plugin's configuration and compares them with the privileges approved during installation. A malicious plugin can exploit this bug so that the daemon accepts privileges that differ from what was intended to be approved. Anyone who depends on the plugin installation approval flow as a meaningful security boundary is potentially impacted. Depending on the privilege set involved, this may include highly sensitive plugin permissions such as broad device access. **For consideration: exploitation still requires a plugin to be installed from a malicious source, and Docker plugins are relatively uncommon. Docker Desktop also does not support plugins.** ## Workarounds If unable to update immediately: - Do not install plugins from untrusted sources - Carefully review all privileges requested during `docker plugin install` - Restrict access to the Docker daemon to trusted parties, following the principle of least privilege - Avoid relying on plugin privilege approval as the only control boundary for sensitive environments ## Credits - Reported by Cody (c@wormhole.guru, PGP 0x9FA5B73E)

CVE-2026-33997 Affected Github.com/docker/docker Versions

3 component(s)
Fixed Versions:
2.0.0-beta.8
Product / Package Ecosystem Affected Versions Fixed Version
github.com/docker/docker
Go
github.com/moby/moby/v2
Go
< 2.0.0-beta.8
2.0.0-beta.8
github.com/moby/moby
Go

References

Frequently Asked Questions

What is CVE-2026-33997?
CVE-2026-33997 is a security vulnerability in Github.com/docker/docker involving Moby has an Off-by-one error in its plugin privilege validation under CWE-193: Off-by-one Error.
Which Github.com/docker/docker versions are affected?
Affected versions include releases prior to 2.0.0-beta.8 across affected packages: github.com/docker/docker, github.com/moby/moby/v2, github.com/moby/moby.
What version fixes CVE-2026-33997?
Upgrading to 2.0.0-beta.8 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/docker/docker affected?
Yes, github.com/docker/docker is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
Is github.com/moby/moby/v2 affected?
Yes, github.com/moby/moby/v2 is affected in releases prior to 2.0.0-beta.8. Upgrade your dependency to 2.0.0-beta.8 or later.
What is the CVSS score of CVE-2026-33997?
CVE-2026-33997 has a CVSS v3.1 base score of 6.8 (MODERATE) with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N.
What CWE is associated with CVE-2026-33997?
CVE-2026-33997 is classified under CWE-193: Off-by-one Error (A product calculates or uses an incorrect maximum or minimum value that is 1 more, or 1 less, than the correct value.).
How can I check Go dependencies for CVE-2026-33997?
Run the dependency tree command: 'inspect dependencies for github.com/docker/docker'. 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-pxq6-2prw-chj9",
  "modified" : "2026-03-31T18:40:21Z",
  "published" : "2026-03-27T17:38:09Z",
  "aliases" : [ "CVE-2026-33997" ],
  "summary" : "Moby has an Off-by-one error in its plugin privilege validation",
  "details" : "## Summary\n\nA security vulnerability has been detected that allows [plugins](https://docs.docker.com/engine/extend/legacy_plugins/) privilege validation to be bypassed during `docker plugin install`. Due to an error in the daemon's privilege comparison logic, the daemon may incorrectly accept a privilege set that differs from the one approved by the user.\n\nPlugins that request exactly one privilege are also affected, because no comparison is performed at all.\n\n## Impact\n\n**If plugins are not in use, there is no impact.**\n\nWhen a plugin is installed, the daemon computes the privileges required by the plugin's configuration and compares them with the privileges approved during installation. A malicious plugin can exploit this bug so that the daemon accepts privileges that differ from what was intended to be approved.\n\nAnyone who depends on the plugin installation approval flow as a meaningful security boundary is potentially impacted.\n\nDepending on the privilege set involved, this may include highly sensitive plugin permissions such as broad device access.\n\n**For consideration: exploitation still requires a plugin to be installed from a malicious source, and Docker plugins are relatively uncommon. Docker Desktop also does not support plugins.**\n\n## Workarounds\n\nIf unable to update immediately:\n- Do not install plugins from untrusted sources\n- Carefully review all privileges requested during `docker plugin install`\n- Restrict access to the Docker daemon to trusted parties, following the principle of least privilege\n- Avoid relying on plugin privilege approval as the only control boundary for sensitive environments\n\n## Credits\n\n- Reported by Cody (c@wormhole.guru, PGP 0x9FA5B73E)",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/docker/docker"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "< 29.3.1"
    }
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/moby/moby/v2"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.0.0-beta.8"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/moby/moby"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "< 29.3.1"
    }
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/moby/moby/security/advisories/GHSA-pxq6-2prw-chj9"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-33997"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/moby/moby/commit/f4d6f25bf0c3fa12d4968320a45685947756a22a"
  }, {
    "type" : "WEB",
    "url" : "https://docs.docker.com/engine/extend/legacy_plugins"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/moby/moby"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/moby/moby/releases/tag/docker-v29.3.1"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-193" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-03-27T17:38:09Z",
    "nvd_published_at" : "2026-03-31T03:15:57Z"
  }
}