CVE-2022-38730
Docker Desktop vulnerability analysis and mitigation

Overview

Docker Desktop for Windows before 4.6 allows attackers to overwrite any file through the windowscontainers/start dockerBackendV2 API by controlling the data-root field inside the DaemonJSON field in the WindowsContainerStartRequest class. This allows exploiting a symlink vulnerability in ..\dataRoot\network\files\local-kv.db because of a TOCTOU race condition (NVD, CyberArk).

Technical details

The vulnerability exists in the Docker Desktop's Windows containers API where an attacker can control the data-root field in the DaemonJSON configuration. When the daemon creates the directory specified in data-root, a race condition can be exploited by changing the directory to a junction directory before the local-kv.db file is created, allowing arbitrary file writes. The vulnerability has a CVSS v3.1 Base Score of 6.3 MEDIUM (Vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:H) (NVD).

Impact

A successful exploitation of this vulnerability allows an attacker to overwrite any file on the system through a Time-of-Check-Time-of-Use (TOCTOU) race condition. This could lead to privilege escalation and system compromise (CyberArk).

Mitigation and workarounds

The vulnerability was fixed in Docker Desktop version 4.6. Users should upgrade to version 4.6 or later to mitigate this vulnerability (Docker Release Notes).

Additional resources


SourceThis report was generated using AI

Related Docker Desktop vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-9074CRITICAL9.3
  • Docker DesktopDocker Desktop
  • cpe:2.3:a:docker:desktop
NoYesAug 20, 2025
CVE-2025-9164HIGH8.8
  • Docker DesktopDocker Desktop
  • cpe:2.3:a:docker:docker_desktop
NoNoOct 27, 2025
CVE-2025-10657HIGH8.7
  • Docker DesktopDocker Desktop
  • cpe:2.3:a:docker:desktop
NoNoSep 26, 2025
CVE-2025-6587MEDIUM5.2
  • Docker DesktopDocker Desktop
  • cpe:2.3:a:docker:desktop
NoYesJul 03, 2025
CVE-2025-4095MEDIUM4.3
  • Docker DesktopDocker Desktop
  • cpe:2.3:a:docker:desktop
NoYesApr 29, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management