Docker Security in 2026: SBOMs and the EU CRA
Docker Engine 29 patched AuthZ bypass, container escape and BuildKit injection, Hardened Images went open source, and EU CRA made SBOMs mandatory.
In April 2026, security researchers disclosed a vulnerability dubbed CVE-2026-17106 (Docker CopyEscape): an attacker could use a carefully crafted docker cp command to write malicious files from a container to arbitrary paths on the host, enabling host file overwrite and even remote code execution. This vulnerability affected all Docker Engine versions prior to 29.7.2 and all Docker Desktop versions prior to 4.86.0.
This wasn't a "theoretical risk." This was a security flaw in a feature used extensively in production environments.
Docker's security landscape in 2026 is undergoing a fundamental reshaping. What drives this transformation isn't any single vulnerability disclosure, but the convergence of three forces: persistent container runtime vulnerabilities, mandatory global supply chain security regulations, and Software Bills of Materials (SBOMs) shifting from optional to required.
I. Docker Engine 29: The 2026 Vulnerability Landscape
1.1 Vulnerability Timeline
Docker Engine 29, released in November 2025, is Docker's current主力 version. But throughout 2026, this version series has exposed multiple serious security issues:
| CVE | Disclosed | Impact | Fixed In |
|---|---|---|---|
| CVE-2026-34040 | 2026-03 | AuthZ plugin bypass, enabling container escape and host takeover | 29.3.1 |
| CVE-2026-41567 | 2026-05 | Malicious containers execute arbitrary binaries as host root via PATH manipulation in docker cp |
29.5.1 |
| CVE-2026-15793 | 2026-07 | BuildKit Git source checkout command injection | 29.6.2 |
| CVE-2026-15792 | 2026-07 | Frontend incorrect parameters causing system crash (DoS) | 29.6.2 |
| CVE-2026-17106 | 2026-08 | Docker CopyEscape: host file overwrite and code execution | 29.7.2 |
Source: Docker Engine 29 Release Notes
1.2 Key Vulnerability Deep Dive
CVE-2026-34040: AuthZ Bypass
This was the most impactful Docker vulnerability of 2026. Docker's Authorization plugin (AuthZ plugin) mechanism allows third parties to implement access control at the Docker API layer. But security researchers discovered that under specific conditions, a malicious container could bypass AuthZ plugin checks to gain direct host access.
Docker's official assessment was "exploitation likelihood is low" because the vulnerability only applies in environments that rely on AuthZ plugins for request body inspection. But this precisely exposes a deeper problem: many enterprises treat AuthZ plugins as their core container security防线, and this防线's reliability isn't as solid as they believed.
CVE-2026-41567: docker cp Privilege Escalation
This vulnerability is more direct: when a malicious process inside a container manipulates the PATH environment variable, the docker cp command executed on the host may run the container's pre-planted binary instead of the expected system binary. This means code inside the container can execute with host root privileges.
The root cause is that docker cp relied on the container's internal environment variables when resolving target paths, rather than using the host's trusted path. This is a classic "trust boundary confusion" problem.
CVE-2026-17106: CopyEscape
This is CVE-2026-41567's "cousin" — also involving docker cp path handling flaws, but with a different attack vector. Attackers could craft a special archive file that causes docker cp to write files to arbitrary paths on the host outside the container's mount points. Docker's fix went through multiple iterations: the initial fix introduced a regression, causing months of delay.
1.3 What You Should Do
Immediately upgrade to Docker Engine 29.7.2 or later. If you're still running versions between 29.0 and 29.5.0, you're exposed to all the above known vulnerabilities.
For environments that cannot immediately upgrade, Docker's official recommendations include:
- Avoid using AuthZ plugins that rely on request body inspection
- Strictly limit Docker API access scope to trusted callers only
- Enforce least privilege principles in container environments
- Disable unnecessary
docker cpoperations; use mounted volumes for file transfers instead
II. Docker Hardened Images: The New Security Baseline
2.1 What Are Docker Hardened Images (DHI)
In May 2026, Docker announced that Docker Hardened Images (DHI) are now open source under the Apache 2.0 license, free for all developers. This marks a major strategic shift for Docker security — making security baseline images, previously an enterprise paid feature, available to the entire community.
DHI core features:
- Near-zero CVEs: Continuously scanned and patched to minimize known exploitable vulnerabilities
- Verifiable SBOMs: Every image ships with a complete software bill of materials
- SLSA Build Level 3 Provenance: Full chain signing from source to binary, preventing man-in-the-middle tampering
- Distroless Architecture: No command-line shell, package manager, or unnecessary components — minimizing attack surface
- Multi-distribution Compatible: Runs on any Linux distribution, any Kubernetes version, any container engine
2.2 DHI Three-Tier Pricing Model
| Feature | Community (Free) | Select ($5,000/repo) | Enterprise (Custom) |
|---|---|---|---|
| Hardened minimal images | ✅ | ✅ | ✅ |
| Near-zero CVEs | ✅ | ✅ | ✅ |
| Verifiable SBOM + SLSA L3 | ✅ | ✅ | ✅ |
| Full CVE visibility | ✅ | ✅ | ✅ |
| Apache 2.0 open source | ✅ | ✅ | ✅ |
| FIPS/STIG compliance variants | ❌ | ✅ | ✅ |
| Critical CVE fixes < 7 days (SLA) | ❌ | ✅ | ✅ |
| Customizations | ❌ | Up to 5 | Unlimited |
| Extended Lifecycle Support (ELS) | ❌ | ❌ | ✅ (up to 5 years) |
Source: Docker Hardened Images Documentation
2.3 The Core Problem DHI Solves
An often-overlooked issue with traditional Docker official images (like nginx:latest, python:3.12) is that they contain far more components than needed for runtime. A standard python:3.12 image includes a full Debian package manager, shell, and compilation toolchain — all "tools" available to an attacker.
DHI adopts a distroless approach: the final runtime image contains only the minimal file set necessary for application execution. No apt, no bash, no curl. Even if an attacker successfully enters the container, they have almost no available tools for lateral movement or persistence.
But here's a problem that requires honest acknowledgment: distroless images are extremely painful to debug. When your application crashes in production, you can't docker exec -it <container> bash in to check logs or inspect the filesystem. This means you must establish comprehensive log collection and observability systems upfront — otherwise "security" and "operability" will seriously conflict.
III. SBOMs: From "Best Practice" to "Legal Obligation"
3.1 Regulatory Timeline
2026 is the pivotal year when SBOMs transform from voluntary practice to legal mandate. Here are the core regulations affecting container security:
EU Cyber Resilience Act (CRA, Regulation (EU) 2024/2847)
- December 10, 2024: CRA officially enters into force
- September 11, 2026: Article 14 vulnerability reporting obligations enforced — manufacturers discovering actively exploited vulnerabilities must submit 24-hour early warning, 72-hour full notification
- December 11, 2027: All CRA provisions apply, including machine-readable SBOM requirements (Annex I Part II, item 1)
Maximum penalty: €15 million or 2.5% of global annual turnover (whichever is higher).
Source: EU CRA Regulation Text
EU NIS2 Directive (Directive (EU) 2022/2555)
- Member states must transpose into national law by October 17, 2024
- Article 21(2)(d) explicitly requires supply chain security — including security assessments and contractual terms for software vendors
- Incident reporting timeline: 24-hour early warning → 72-hour full notification → 1-month final report
US Executive Order EO 14028
- Requires federal suppliers to provide SBOMs
- Defines minimum SBOM elements (component identifiers, versions, dependencies, license information, etc.)
3.2 What SBOMs Mean for Container Images
In the container context, an SBOM isn't just a "dependency list." A production-grade container image SBOM must cover:
- Base image layers: OS packages (all components installed via apt/yum/apk)
- Language runtimes: Python, Node.js, Go versions and patch levels
- Application dependencies: All third-party libraries introduced via pip/npm/go mod
- System tools: curl, wget, openssl, and other binary toolchains
- Build tools: Compiler and linker versions (affecting reproducible build verification)
3.3 Docker Scout: SBOM Generation and Vulnerability Correlation
Docker Scout is Docker's official image security analysis tool, integrating SBOM generation and vulnerability scanning:
# View image SBOM (list format, human-readable)
docker scout sbom alpine:latest
# Export as SPDX format (standard format for toolchain integration)
docker scout sbom --format spdx myapp:latest > sbom.spdx.json
# Export as CycloneDX format (commonly used for enterprise compliance)
docker scout sbom --format cyclonedx-json myapp:latest > sbom.cdx.json
# Quick vulnerability overview
docker scout quickview myapp:latest
# Detailed vulnerability report (critical and high only)
docker scout cves --only-severity critical,high myapp:latest
Docker Scout underwent major adjustments in 2026. According to Docker Scout Release Notes:
- July 2026: Slack integration retired
- September 2026: In-product and email notifications retired
- Continued strengthening of CI/CD integration (
docker scout cves --exit-code --severity critical,high)
This signals Docker is transforming Scout from a "notification tool" to a "pipeline gate tool" — no longer telling you about problems, but directly blocking problematic images from entering production.
3.4 Build-Time SBOM Generation: BuildKit Attestations
A better approach than post-hoc scanning is generating SBOMs at build time and attaching them as image attestations:
# Auto-generate SBOM and provenance at build time
docker buildx build \
--attest=type=sbom \
--attest=type=provenance,mode=max \
-t myapp:latest \
--push .
The provenance,mode=max here generates build provenance information conforming to SLSA Build Level 3 standards, recording:
- Complete build environment description (base images, build tool versions)
- Source code VCS information (Git repository URL and commit hash)
- Exact values of all build parameters
- Complete call chain of build steps
IV. Image Signing: The Final Link in the Trust Chain
4.1 Why SBOMs Aren't Enough
An SBOM tells you what's in an image, but doesn't tell you who built it or whether it was tampered with. An attacker could:
- Pull your legitimate image
- Inject malicious code
- Re-push to your repository (if credentials are compromised)
- Attach a "clean" SBOM (because SBOMs only describe components, not verify origin)
To solve this, you need image signing.
4.2 Cosign + Sigstore: The 2026 De Facto Standard
Docker Content Trust (DCT) was Docker's early signing scheme, based on Notary v1 and the TUF protocol. But in 2026, new projects should prioritize Cosign (Sigstore ecosystem) for these reasons:
| Feature | Docker Content Trust | Cosign (Sigstore) |
|---|---|---|
| Key management | Requires self-hosted Notary service | Keyless signing (OIDC identity federation) |
| Cross-runtime compatibility | Docker ecosystem only | Any OCI-compatible runtime |
| Transparency log | None | Rekor public audit log |
| SBOM binding | Not supported | cosign attach sbom |
| SLSA provenance | Not supported | cosign attest --type slsaprovenance |
| Community activity | Maintenance mode | Active development |
Source: Container Image Security in Practice
4.3 Complete Signing Workflow
# 1. Sign using OIDC identity (no long-term key management)
cosign sign --yes \
--oidc-issuer https://accounts.google.com \
myregistry.io/myapp@sha256:abc123...
# 2. Attach SBOM to signature
cosign attach sbom \
--sbom sbom.spdx.json \
myregistry.io/myapp@sha256:abc123...
# 3. Attach SLSA provenance
cosign attest \
--predicate slsa-provenance.json \
--type slsaprovenance \
myregistry.io/myapp@sha256:abc123...
# 4. Verify before deployment
cosign verify \
--certificate-identity-regexp ".*@my-org\.com" \
--certificate-oidc-issuer "https://accounts.google.com" \
myregistry.io/myapp@sha256:abc123...
4.4 Kubernetes Admission Control: Policy Enforcement
Signing alone creates no security value — verifying signatures creates security value. In Kubernetes environments, enforce admission control through policy engines:
# Kyverno policy example: only allow images signed by specified identity
apiVersion: kyverno.io/v1
kind: ClusterPolicy
metadata:
name: require-signed-images
spec:
validationFailureAction: Enforce
rules:
- name: check-image-signature
match:
resources:
kinds:
- Pod
verifyImages:
- imageReferences:
- "myregistry.io/*"
attestors:
- entries:
- keys:
publicKeys: |-
-----BEGIN PUBLIC KEY-----
MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE...
-----END PUBLIC KEY-----
V. CI/CD Supply Chain Security: Complete Pipeline Design
5.1 A Production-Grade Supply Chain Security CI Pipeline
Here's a complete example based on GitHub Actions, integrating build, SBOM generation, signing, and vulnerability scanning:
name: Supply Chain Security Pipeline
on:
push:
branches: [main]
jobs:
build-and-attest:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write # Required for OIDC signing
packages: write # Required for pushing to GHCR
steps:
- uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build and push with attestations
uses: docker/build-push-action@v6
with:
push: true
tags: ghcr.io/${{ github.repository }}:${{ github.sha }}
provenance: mode=max
sbom: true
- name: Install Cosign
uses: sigstore/cosign-installer@v3
- name: Sign image
run: |
cosign sign --yes \
ghcr.io/${{ github.repository }}@${{ steps.build.outputs.digest }}
- name: Scan for vulnerabilities
run: |
docker scout cves \
ghcr.io/${{ github.repository }}:${{ github.sha }} \
--exit-code --severity critical,high
Source: Supply Chain Security: SLSA, SBOM, and Artifact Provenance
5.2 Key Design Principles
- OIDC keyless signing: Don't give CI long-lived credentials. Use GitHub Actions' OIDC provider to issue short-lived tokens that expire automatically
- Build-time SBOM generation: Don't retroactively add — SBOMs must strictly correspond to image versions
- SLSA Level 3 provenance: Record complete build environment and steps, supporting reproducible build verification
- Vulnerability scanning as a gate: The
--exit-codeparameter makes scan failures directly break the pipeline
VI. Problems Nobody Wants to Discuss
6.1 The SBOM "Noise" Problem
A typical backend container image SBOM may contain 500-2,000 components. When a new CVE is disclosed, you'll receive numerous alerts — but the vast majority are actually irrelevant to your application (e.g., a底层 library vulnerability only exploitable on specific OS kernel versions, while your containers run in different environments).
This is why VEX (Vulnerability Exploitability eXchange) format is becoming increasingly important. VEX lets you declare "this vulnerability is not exploitable in my environment," transforming SBOMs from "noise generators" to "precision alert systems." But currently, the VEX toolchain and ecosystem are far from mature.
6.2 "Compliance SBOM" vs "Useful SBOM"
Many teams generate SBOMs just to satisfy compliance requirements — generate a file, archive it, forget about it. This kind of SBOM is nearly valueless during security incidents because:
- Timeliness: Archived SBOMs don't reflect the actual state of currently running images
- Insufficient depth: Only records top-level dependencies, not transitive dependencies
- Lack of correlation: SBOM data isn't correlated with vulnerability intelligence sources in real-time
A truly useful SBOM must be automated, continuous, and linked to vulnerability monitoring. This means embedding SBOM generation in your CI/CD pipeline, storing SBOMs in image registries, and correlating SBOMs with CVE databases in real-time during runtime monitoring.
6.3 The Supply Chain Security "Last Mile" Problem
You can do everything right at the build stage: generate SBOMs, sign images, attach provenance. But if the deployment environment doesn't verify these attestations, all effort is wasted.
Common break points:
- Development machines or test clusters don't set
DOCKER_CONTENT_TRUST=1, sodocker pullsilently accepts unsigned images - Kubernetes nodes use default containerd configuration without image verification plugins enabled
- CI scripts directly
docker run nginx:alpine, bypassing all pre-validation checks - Production environments pull images and never check SBOMs or signatures
The 2026 Container Security Guide notes: signing only solves "who issued this image and whether it was tampered with" — it doesn't guarantee container behavior is safe. You still need to layer image scanning, least-privilege execution, immutable filesystems, process whitelists, and other runtime security measures.
6.4 Cost and Complexity Realities
For small and medium enterprises, a complete supply chain security system means:
- Docker Scout or Trivy continuous scanning costs
- Cosign key management and Rekor log maintenance
- SBOM storage and correlation analysis infrastructure
- Team training and new toolchain learning curves
- FIPS/STIG compliance variant additional costs (DHI Select starts at $5,000/repository)
This isn't to say SMEs shouldn't do supply chain security — rather that you need to pragmatically assess risk and choose solutions appropriate to your scale. A minimum viable approach might be: use DHI Community free images + Trivy offline scanning + Cosign signing. First achieve "having it," then pursue "having it all."
VII. 2027 Outlook: What's Coming Next
7.1 CRA Full Compliance Period (December 11, 2027)
December 11, 2027 is the EU CRA's full applicability date. From this day, all products with digital elements placed on the EU market (including container images and container-based SaaS services) must:
- Provide machine-readable SBOMs (CycloneDX or SPDX format)
- Establish a Coordinated Vulnerability Disclosure (CVD) policy
- Ensure security updates are available throughout the product support period
- Bear CE marking
For companies exporting to the EU, this means container image SBOMs will become a market access prerequisite. Not "nice to have," but "can't sell without it."
7.2 SLSA Becomes Industry Standard
SLSA (Supply chain Levels for Software Artifacts) is becoming the universal assessment framework for software supply chain security. Docker Hardened Images already achieves SLSA Build Level 3 compliance, meaning:
- Build processes are fully reproducible
- All build steps have cryptographic signatures
- The build environment itself is verified
By 2027, SLSA Level 3 is expected to become the baseline requirement for enterprise-grade container images, much like SOC 2 is for SaaS.
7.3 AI-Assisted Supply Chain Attacks
A new threat vector emerged in 2026: AI-generated code introducing supply chain vulnerabilities. As developers increasingly use AI coding assistants, AI may suggest introducing dependencies with known vulnerabilities, or even generate code containing security flaws.
This means SBOMs and vulnerability scanning need to expand coverage — not just scanning dependencies you "chose" to introduce, but also dependencies AI "suggested" introducing. This is an entirely new security boundary problem.
VIII. Action Checklist for Operations and Development Teams
Immediate Action (This Week)
- Check Docker Engine version:
docker version, confirm ≥ 29.7.2 - Scan all production images:
docker scout cves <image>ortrivy image <image> - Audit
docker cpusage: Check if any scripts rely ondocker cpfor file transfers
Short-term Action (This Month)
- Migrate to DHI Community images: Replace
FROM python:3.12with DHI hardened variants - Embed SBOM generation in CI/CD:
docker buildx build --sbom=true - Deploy Cosign signing: Establish signing workflows for all production images
Medium-term Action (This Quarter)
- Establish automated SBOM-to-vulnerability-intelligence correlation: When new CVEs are disclosed, automatically query affected images
- Implement Kubernetes admission control: Use Kyverno or OPA/Gatekeeper to enforce image signature verification
- Assess CRA compliance gaps: Compare against Annex I essential requirements, identify capabilities needing completion
Long-term Action (Before 2027)
- Achieve SLSA Build Level 3: Full-chain build provenance and reproducible build verification
- Establish VEX declaration capability: Precisely filter non-exploitable vulnerability alerts
- Train teams: Ensure development and operations understand fundamental supply chain security concepts and tools
References:
- Docker Engine 29 Release Notes
- Docker Hardened Images (DHI) Documentation
- Docker Hardened Images Features
- Docker Scout Official Documentation
- Docker Scout Release Notes
- EU Cyber Resilience Act (CRA) Regulation Text
- EU CRA SBOM Requirements: 2026 Guide — SureCloud
- CRA Vulnerability Reporting Obligations Analysis
- NIS2 Directive — Supply Chain Security
- SLSA Definitions — Docker Docs
- Container Image Security in Practice: Trivy, Cosign, and Supply Chain Protection
- 2026 Container Security Guide: Six Critical Vulnerability Self-Checks
- Docker CopyEscape Vulnerability Analysis (CVE-2026-17106)
- Supply Chain Security: SLSA, SBOM, and Artifact Provenance