Docker/Moby AuthZ Bypass via Oversized API Requests
CVE-2026-34040 is an authorization bypass vulnerability in Docker Engine and Moby versions before 29.3.1. The middleware between the Docker API and authorization plugins omits request bodies larger than 1 MB from plugin inspection while allowing the daemon to process the complete request. An AuthZ plugin that relies on body inspection may therefore approve an operation it would otherwise reject, including creation of containers with prohibited privileges or host mounts. The vulnerability represents an incomplete fix for CVE-2024-41110. Deployments that do not use AuthZ plugins are not affected by this authorization bypass.
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
Attackers with access to an affected Docker API can circumvent body-based authorization policies and perform otherwise prohibited container operations. Creating privileged containers with host filesystem mounts can enable host compromise, sensitive-data and credential theft, modification of host resources, and service disruption. The extent of host access depends on daemon privileges and additional isolation controls; rootful deployments can expose root-level host access.
If you can’t patch tonight, do this now.
Until patched, restrict Docker API access to trusted principals and avoid relying on AuthZ plugins that require request-body inspection as the security boundary. Enforce least privilege and use rootless mode or user namespace remapping to reduce potential host impact. Review Docker daemon logs for drainBody warnings and audit container creation events for unexpected privileged containers or host filesystem mounts.
Patch, then assume compromise.
Upgrade Docker Engine/Moby to version 29.3.1 or later, or install a vendor-supported package containing the backported fix. For the github.com/moby/moby/v2 module, upgrade to 2.0.0-beta.8 or later. Debian 13 fixes the issue in docker.io 26.1.5+dfsg1-9+deb13u1; the identified Google COS package update is 18244.582.80 or later. The upstream fix raises the body-inspection limit to 4 MB, rejects requests exceeding that limit rather than forwarding them to the daemon, and removes the drainBody() behavior responsible for silently omitting oversized bodies.
1 exploit validated by Mallory's analysis.
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
69 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.