Skip to main content
Mallory
HighPublic exploitVulnerability

CVE-2026-34040: Docker/Moby AuthZ Bypass via Oversized API Requests

Published Mar 31, 2026 · Updated 8 days ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 days2 mentions · peak 2 in a dayToday
CVSS7.8High · v3.1
EPSS0.19%5th percentile
CISA KEVNoNot listed
In the wildNonePublic exploit, no exploitation reported
Vendors
DockerMoby Project
IdentifiersCVE-2026-34040CWE-288 · Authentication Bypass Using an…

CVE-2026-34040 is an authorization bypass vulnerability in Docker Engine and Moby versions before 29.3.1. The authorization middleware omits API request bodies larger than 1 MB when forwarding requests to authorization plugins, while the Docker daemon subsequently processes the complete bodies. Plugins that inspect request bodies may therefore approve operations they would otherwise reject, including creation of privileged containers or containers with prohibited host mounts. The vulnerability represents an incomplete fix for CVE-2024-41110 and affects the middleware rather than a particular AuthZ plugin implementation. Deployments without AuthZ plugins are not affected by this authorization-policy bypass.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

Impact, mitigation & remediation

What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Attackers can evade body-dependent Docker authorization policies and perform otherwise prohibited container operations. On deployments where the daemon can create privileged containers and expose the host filesystem, exploitation can lead to host compromise, sensitive-file access, credential theft, data modification, and service disruption. Stolen cloud credentials or cluster tokens may enable additional compromise beyond the Docker host. The extent of impact depends on daemon privileges, available container capabilities, and independent isolation controls.

Mitigation

If you can’t patch tonight, do this now.

Until patched, restrict Docker API access to trusted principals and enforce least privilege. Do not rely on request-body-inspecting AuthZ plugins as the sole security boundary; use independent access restrictions rather than simply removing authorization controls. Rootless mode or user namespace remapping can reduce potential host impact but does not correct the bypass. Review Docker daemon logs for drainBody warnings and audit recent container creation events for unexpected privileged settings or host filesystem mounts.

Remediation

Patch, then assume compromise.

Upgrade Docker Engine or Moby to version 29.3.1 or later, or install a vendor package containing the backported fix. The patch increases the authorization request-body limit to 4 MB, rejects requests exceeding that limit rather than executing them without full authorization inspection, and removes the vulnerable drainBody() handling. Consumers of the Moby v2 Go module should upgrade to 2.0.0-beta.8 or later. Debian 13 installations should update docker.io to 26.1.5+dfsg1-9+deb13u1 or later; Google Container-Optimized OS installations should update app-containers/docker and related packages to 18244.582.80 or later.

Public exploits

Exploits

1 exploit validated by Mallory's analysis.

View more in app →
CVE-2026-34040-PoCThis repository is a Python-based full lab PoC for CVE-2026-34040, targeting Docker/Moby AuthZ plugin bypass behavior when a Docker API request body exceeds 1 MB. The repository is small and focused: one executable script (poc.py), a standard-library-only requirements file, and several Markdown documents covering setup, demo flow, impact modes, troubleshooting, and publication notes. The main exploit logic is in poc.py. It manually crafts raw HTTP requests over the local UNIX socket /var/run/docker.sock rather than using the Docker SDK. The key capability is sending a container creation request with oversized JSON label padding ("padding" = "A" * (1024*1024+1)) so that an AuthZ plugin may fail to inspect the body while the Docker daemon still processes the original request. The script compares a normal request against an oversized one in check mode to determine whether the bypass is observable, expecting small requests to be blocked (HTTP 403) and oversized requests to reach daemon processing (HTTP 201 or possibly HTTP 404 if the image is missing). Beyond detection, the PoC includes multiple post-bypass impact modes. These include reading host files by creating a privileged container with the host root mounted read-only, writing a proof marker file on the host via chroot, executing user-supplied host commands in a lab, creating a long-lived privileged container for manual docker exec and chroot interaction, and a local-only reverse shell mode restricted to 127.0.0.1/localhost. The README and docs explicitly describe that the vulnerability itself is an authorization bypass, while file read and command execution are downstream impacts enabled by privileged container creation plus host bind mounts. Repository structure: README.md explains the vulnerability model, usage, and safety notes; docs/lab-setup.md lists prerequisites such as vulnerable Docker/Moby, AuthZ plugin, docker.sock access, and local alpine image; docs/impact-modes.md and docs/demo-script.md describe each demonstration path; docs/troubleshooting.md covers common failures like missing image or socket permissions. Overall, this is a real exploit PoC for local lab use, not merely a detector, and it is operational because it contains working payload paths for host file access and host command execution.m0nk3ygod · Disclosed Jun 7, 2026 · python · markdown · local · container · networkOperational
Exposure surface

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
DockerEngineapplication
Moby ProjectMobyapplication
FAQ

Frequently asked questions

Is CVE-2026-34040 exploited in the wild?
As of Nov 20, 2026, Mallory has no reports of CVE-2026-34040 being exploited in the wild. It is not listed in CISA KEV.
Is there a public exploit for CVE-2026-34040?
Yes. Mallory tracks 1 public exploit or proof of concept for CVE-2026-34040, the earliest disclosed Jun 7, 2026.
Is there a patch for CVE-2026-34040?
Upgrade Docker Engine or Moby to version 29.3.1 or later, or install a vendor package containing the backported fix. The patch increases the authorization request-body limit to 4 MB, rejects requests exceeding that limit rather than executing them without full authorization inspection, and removes the vulnerable drainBody() handling.
What products are affected by CVE-2026-34040?
Docker Engine and Moby Project Moby.
How severe is CVE-2026-34040?
CVE-2026-34040 has a CVSS v3.1 score of 7.8 (High) and an EPSS score of 0.19% (5th percentile) as of Nov 20, 2026.
Activity feed

Recent activity

71 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

View more in app →
tenable cloud security pluginsNews · Oct 2, 2026Echo: github.com/docker/docker: security update to 2.0.0-beta.8 | Tenable®An authorization-plugin bypass vulnerability affecting Moby versions before 29.3.1. The reference assigns a CVSS v3 score of 7.8, with a local attack vector, low privileges required, and high confidentiality, integrity, and availability impacts. Moby 29.3.1 fixes the issue; the plugin separately recommends updating the github.com/docker/docker library and related packages to version 2.0.0-beta.8 or later.Read more ↗tenable cloud security pluginsNews · Oct 1, 2026Google: app-containers/docker: security update to 18244.582.80 | Tenable®An authorization-bypass vulnerability in Moby that can allow an attacker to bypass AuthZ authorization plugins in versions before 29.3.1.Read more ↗tenable nessus pluginsNews · Sep 23, 2026Debian dsa-6443 : docker-cli - security update | Tenable®One of multiple Docker Engine and bundled BuildKit vulnerabilities addressed by Debian DSA-6443; the advisory collectively describes potential privilege escalation, arbitrary host file access, and authorization-policy bypass.Read more ↗thecybersecguruNews · Sep 18, 2026Critical Docker Sandboxes Flaws CVE-2026-77179 & CVE-2026-79994 Enable AI Agent Host Escape | The CyberSec GuruA critical Docker Authorization bypass referenced as a related example of how prompt-injected autonomous AI agents could obtain dangerous Docker capabilities and then chain host-level flaws.Read more ↗
+10 more in the timeline. Sign up to see them
Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malware1Malware families linked to this CVE, with evidence and IOCs.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity53Community discussion across Reddit, Mastodon, and other social sources.