# CVE-2026-33997: Moby: Off-by-one error in plugin privilege validation

> Attackers can bypass plugin privilege validation during installation, allowing unauthorized privilege escalation in Moby container environments.

- **Severity:** Medium 6.8 (`CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** A user has to click or open something
- **Fix available:** Yes
- **Published:** 31 Mar 2026
- **Updated:** 9 Sep 2026
- **Also known as:** BELL-CVE-2026-33997, CLEANSTART-2026-BP86434, CLEANSTART-2026-FH32149, CLEANSTART-2026-GW50856, CLEANSTART-2026-KV26372, CLEANSTART-2026-PT56990, DEBIAN-CVE-2026-33997, ECHO-91b4-e7d6-f02c, GHSA-pxq6-2prw-chj9, GO-2026-4883, MINI-229r-j462-96x8, MINI-25j2-9cp3-43f7, MINI-27hm-8whj-4v2p, MINI-2hvr-84gr-xm5c, MINI-2jmh-rpm2-chh8, MINI-2q79-h6hw-fwq5, MINI-2r4q-mpq4-3c2g, MINI-2v44-g6c9-9ffc, MINI-32pv-89rj-2cj9, MINI-34w3-p3xr-mqj3, MINI-35p8-vxqx-r58h, MINI-35qr-8j99-f34q, MINI-39c9-96fw-wrr9, MINI-3c7h-59pc-32mh, MINI-3fh9-42fg-2h4g, MINI-3fq4-5wxj-2823, MINI-3h38-424w-475g, MINI-3j3x-fgrq-9qh8, MINI-3m3c-2phr-3vp8, MINI-4296-m74m-rgjp, MINI-4f53-86gc-wgpx, MINI-4h2r-4r68-fgm8, MINI-4m7v-xv77-4jv7, MINI-4p82-5h4h-q765, MINI-4q78-mrqg-82h5, MINI-4q8c-q4vw-3888, MINI-4qvv-4vj4-hr39, MINI-4qvw-9w62-5m3m, MINI-4r46-r5f3-62xh, MINI-4vxg-h63r-j25r, MINI-4wcq-5fv7-hh88, MINI-4x5w-f66w-x562, MINI-4xf9-9wxc-3q43, MINI-53wf-92g5-6pfm, MINI-556j-x46m-7257, MINI-5955-2qqf-66fm, MINI-59h6-gf86-46w7, MINI-5qxr-ppx5-cf3r, MINI-5rmq-v7q4-47j9, MINI-5wf8-94qf-pqp6, MINI-5wv6-hwjh-9cx9, MINI-5xm9-f5x2-m6hc, MINI-63j2-4h78-wgv6, MINI-6435-5x73-mhq8, MINI-644w-28f6-pcxc, MINI-65cx-f3qr-xc66, MINI-65vh-c4cq-g4cj, MINI-668x-463x-69jm, MINI-672m-7cvw-mrq8, MINI-692h-5f36-gq7f, MINI-69g3-m52c-jf4m, MINI-6p57-9r27-9359, MINI-6qj6-9w8g-m4x6, MINI-6rgw-xfr5-gcgx, MINI-6wqr-7jgq-9pmm, MINI-7592-ppmj-277p, MINI-76vj-5jgr-w828, MINI-7ff5-g79x-hmhr, MINI-7j4p-q33m-9vx4, MINI-7jhc-vr42-q8g7, MINI-7p5j-wx47-xxm7, MINI-7vm8-fg8x-q8p3, MINI-82j3-jj8x-rmm3, MINI-842m-g6cj-wvfj, MINI-863f-5h2g-f473, MINI-875f-97vw-q8gm, MINI-8h3w-9wj4-mg94, MINI-8hhx-x3xw-hw2p, MINI-8hpr-38c7-f3pg, MINI-8jw5-q57v-jjj9, MINI-8m7m-hfhc-v5pr, MINI-8rpp-r37v-pr6v, MINI-8w92-3cp9-wppm, MINI-9987-vx9q-x296, MINI-9fpc-8m6m-37j3, MINI-9pp6-7xjv-wjj8, MINI-9qmw-v97g-c5pp, MINI-9rh6-g628-rqh9, MINI-9wq7-vhr9-22xc, MINI-c53w-6j3p-cw77, MINI-c649-pqr2-mxvr, MINI-c8fm-8cvv-hwrv, MINI-c8g9-253g-qh3v, MINI-ccpx-rp49-w52x, MINI-ccx7-rjh2-g5gv, MINI-cmhm-7mxv-vr4w, MINI-cphg-pq36-qwm3, MINI-cr9g-8f9p-p9cr, MINI-cvm7-r4m5-r5c3, MINI-cwwv-8c22-4pfc, MINI-f244-m29x-j644, MINI-f3p3-8wjh-x22x, MINI-f55p-47qm-jvrc, MINI-f5j2-w63v-vv86, MINI-fh78-rx3r-9mfw, MINI-fqcf-xqf6-p32c, MINI-fqwf-jjg2-fqrr, MINI-fxg3-c6h5-jg27, MINI-g393-ghg5-2239, MINI-g4m9-wq59-wqx4, MINI-g78f-3227-m7rq, MINI-g9c6-7g6w-7x9g, MINI-g9q4-85xf-7vg9, MINI-gf8q-6839-jmmm, MINI-gffm-8rjc-44c3, MINI-gg86-222f-9fmw, MINI-ggmf-86q2-p995, MINI-gjm5-5wfh-p7wf, MINI-gq4h-ffgx-m3rh, MINI-h38c-wv35-cjf6, MINI-h479-5hf8-v926, MINI-h4fc-8q5p-3q49, MINI-h668-6v33-w8xj, MINI-h9rw-g7r3-wx6c, MINI-hjw2-5mhf-839c, MINI-hv2q-pv72-jx2v, MINI-hx7f-wh59-6gh5, MINI-hxrr-3c75-v2vp, MINI-j2q2-7gv2-2555, MINI-j34r-v76f-gm6p, MINI-j3q4-7799-22r7, MINI-j675-7897-qxwc, MINI-j6cw-rw2r-ch3p, MINI-j79q-wrxm-9hc8, MINI-j7gx-f5g9-86q2, MINI-jg83-6q9v-vm99, MINI-jjrp-w9fm-64wm, MINI-jp52-35v4-h8p2, MINI-jpf6-v29v-362g, MINI-jqgh-cfc3-q23r, MINI-jqjf-7pjg-54vp, MINI-jqpj-cg4w-9fqq, MINI-jr32-64gx-3gvh, MINI-jv3f-c5gh-wr67, MINI-jwpv-wqm9-xqwp, MINI-jwwh-cf34-3vvx, MINI-m2fc-c28h-vhj3, MINI-m2g4-wpjv-rq72, MINI-m4g8-7fjm-rff3, MINI-m73q-j667-mcwj, MINI-m763-j76g-p55c, MINI-m7vm-qrx4-xcgw, MINI-m8x7-9wwm-mqxq, MINI-m958-6cj9-28v3, MINI-mgpf-m8wm-h7g7, MINI-mh6j-4vwm-69mc, MINI-mmj2-rxqm-8pfq, MINI-mq47-gcw8-qf5w, MINI-mqp5-7m8g-3mjp, MINI-mvv9-929p-v4w8, MINI-p245-rvvj-v9qp, MINI-p2jw-wr25-fpx3, MINI-pc3w-7r49-vfch, MINI-pcrc-8qm9-2xh3, MINI-phgv-4j72-5w37, MINI-prfm-9qv7-vp8p, MINI-pv3g-cpwh-24r9, MINI-pwjm-8469-r4fm, MINI-px23-5vrm-r7fj, MINI-q3mj-c292-gx77, MINI-q3vx-x576-mchg, MINI-q72r-2w28-w2mj, MINI-q8mh-gxcv-jpmh, MINI-qc4v-p4fw-2vh9, MINI-qcgg-4h87-v32j, MINI-qfgf-v2xg-h94c, MINI-qm45-8g6v-737q, MINI-qqc4-p7cc-pp8c, MINI-qr5h-6jxq-gpxw, MINI-qvrv-76r4-2x4q, MINI-r538-xr93-fccf, MINI-r5f3-fffc-2vgc, MINI-r88w-g357-hw8c, MINI-rcgf-3w5w-wp7j, MINI-rfpj-24ch-g8vp, MINI-rjwj-jh7v-hm6f, MINI-rmf3-gh9v-rvpj, MINI-rmgm-w2rc-9chp, MINI-rppm-fv7h-33gf, MINI-rpxx-xw8p-xr67, MINI-rr32-8pg9-63cf, MINI-rr8j-xpcr-429r, MINI-rr8r-h4g7-f9v7, MINI-rv47-gmrj-xj48, MINI-rw34-fqj2-mhr6, MINI-rwjg-3wqf-xw72, MINI-rx57-9963-vmm7, MINI-v4g7-cv75-gcw6, MINI-v6j6-79r3-chj3, MINI-v8m6-pmhx-f5j6, MINI-vj5m-vcvw-7rj6, MINI-vm6f-7w29-pgjq, MINI-vmmw-xxc7-73hw, MINI-vmwr-jw87-rp58, MINI-vpqg-v7fr-hg2r, MINI-vq33-759c-r52g, MINI-vxw2-98rg-32wm, MINI-w2m5-h83p-g24f, MINI-w38m-6fwg-6jh3, MINI-w823-j9vq-www8, MINI-wcq5-fqf7-mvx5, MINI-wf8f-5jwm-vwxp, MINI-wmhg-g82v-hpvx, MINI-wrvp-g5h2-p2rp, MINI-ww9j-mwpc-5cw9, MINI-x5vr-qgpp-pfr5, MINI-x7x4-85mh-w2cw, MINI-xfj6-prx5-5xj9, MINI-xg64-6mhv-rcq2, MINI-xgpj-c4f6-5qcc, MINI-xpvr-g898-2m9p, MINI-xvr3-x7mf-h43x, OESA-2026-2758, ROOT-APP-GOBINARY-CVE-2026-33997, UBUNTU-CVE-2026-33997

## What is CVE-2026-33997?

CVE-2026-33997 is a medium-severity vulnerability in moby, published on 31 Mar 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

### Official description

Moby is an open source container framework. Prior to version 29.3.1, a security vulnerability has been detected that allows 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. This issue has been patched in version 29.3.1.

Weakness: CWE-266 (Incorrect Privilege Assignment), CWE-193 (Off-by-one Error)

## Which versions are affected by CVE-2026-33997?

9 open source packages ship an affected version, including github.com/moby/moby, github.com/docker/docker and github.com/moby/moby/v2. It affects 1 product.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `github.com/moby/moby` | Go | All versions | None |
| `github.com/moby/moby` | Go | All versions | None |
| `github.com/moby/moby` | Go | All versions | None |
| `github.com/docker/docker` | Go | All versions | None |
| `github.com/docker/docker` | Go | All versions | None |
| `github.com/docker/docker` | Go | All versions | None |
| `github.com/moby/moby/v2` | Go | All versions | 2.0.0-beta.8 |
| `github.com/moby/moby/v2` | Go | All versions | 2.0.0-beta.8 |
| `github.com/moby/moby/v2` | Go | All versions | 2.0.0-beta.8 |

Products: Docker Engine.

## How do I fix CVE-2026-33997?

Apply the vendor's patch.

## Is CVE-2026-33997 being exploited?

There is no known exploitation of CVE-2026-33997 in the wild and no public exploit code.

## Other vulnerabilities in moby

- [CVE-2026-34040](https://insights.sbomify.com/CVE-2026-34040/): Moby: AuthZ plugin bypass with oversized request body (high 8.8)
- [CVE-2026-42306](https://insights.sbomify.com/CVE-2026-42306/): Moby: Race condition in docker cp allows bind mount redirection to host path (high 7.2)
- [CVE-2026-41568](https://insights.sbomify.com/CVE-2026-41568/): Moby: Race condition in docker cp allows creation of arbitrary empty files on the host via symlink swap (medium 6.1)
- [CVE-2018-20699](https://insights.sbomify.com/CVE-2018-20699/): Denial of service in n/a (medium 4.9)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2026-33997 and fix it if it is affected.

What it is: CVE-2026-33997 is a medium-severity vulnerability in moby, published on 31 Mar 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Exploitation: There is no known exploitation of CVE-2026-33997 in the wild and no public exploit code.

Affected packages and fixed versions:
- github.com/moby/moby (Go): affected all versions; no fix listed
- github.com/moby/moby (Go): affected all versions; no fix listed
- github.com/moby/moby (Go): affected all versions; no fix listed
- github.com/docker/docker (Go): affected all versions; no fix listed
- github.com/docker/docker (Go): affected all versions; no fix listed
- github.com/docker/docker (Go): affected all versions; no fix listed
- github.com/moby/moby/v2 (Go): affected all versions; fixed in 2.0.0-beta.8
- github.com/moby/moby/v2 (Go): affected all versions; fixed in 2.0.0-beta.8
- github.com/moby/moby/v2 (Go): affected all versions; fixed in 2.0.0-beta.8

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2026-33997/ (Markdown: https://insights.sbomify.com/CVE-2026-33997/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2026-33997
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-33997
- OSV: https://osv.dev/vulnerability/CVE-2026-33997

---
From sbomify Insights: https://insights.sbomify.com/CVE-2026-33997/
Summaries are generated and may contain mistakes; the official description above is the record.
