CVE-2022-38730: Docker Desktop Windows - Time-of-Check Time-of-Use (TOCTOU) Race Condition
- Cve: CVE-2022-38730
- Name: Docker Desktop Windows - Time-of-Check Time-of-Use (TOCTOU) Race Condition
- Description: 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.
- Impact: Attackers can overwrite arbitrary files on the host system, potentially leading to privilege escalation or system compromise.
- Remediation: Update to Docker Desktop for Windows 4.6 or later.
- Vulnerability type: race_condition
- Vulnerability impact: file_system_write
- Requirement type: none
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 6.3
- Cvss vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:H
- Epss score: 0.0029
- Epss percentile: 0.21878
- Assignee: [email protected]
- Published at: 2023-04-27T20:15:40Z
- Age in days: 1307
- Modified at: 2026-06-17T04:57:05Z
- Patch available: yes
- References total: 2
- Products total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2022-38730
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, oss, projects total, projects, rejected by nvd
- Not known: requirements
Cwe
| Id | Name |
|---|---|
| CWE-59 | Improper Link Resolution Before File Access |
Hackerone
- Reports: 1
- Rank: 5211
References
| Url | Source | Tags |
|---|---|---|
| https://www.cyberark.com/resources/threat-research-blog/breaking-docker-named-pipes-systematically-docker-desktop-privilege-escalation-part-2 | nvd | Third Party Advisory |
| https://docs.docker.com/desktop/release-notes/#docker-desktop-460 | nvd | Release Notes |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| docker:desktop | < 4.6.0 | no | nvd | /v1/products/docker/desktop |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Authentication required: yes
- Hackerone reports: 1
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, remote
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, exposed hosts