PT-2023-2593 · Docker · Docker Desktop For Windows

·

CVE-2022-38730

·

Published

2023-04-27

·

Updated

2025-01-31

CVSS v2.0

7.5

High

VectorAV:N/AC:L/Au:N/C:P/I:P/A:P
Name of the Vulnerable Software and Affected Versions Docker Desktop for Windows versions prior to 4.6
Description The issue is related to a race condition in the start() function of the WindowsContainerStartRequest class in Docker Desktop for Windows, allowing an attacker to exploit a symlink vulnerability. This can be achieved by controlling the data-root field inside the DaemonJSON field, enabling the attacker to overwrite any file through the "windowscontainers/start" dockerBackendV2 API endpoint. The exploitation is possible due to a TOCTOU (Time-of-Check-to-Time-of-Use) race condition, affecting the ..dataRoot etworkfileslocal-kv.db file.
Recommendations For Docker Desktop for Windows versions prior to 4.6, update to version 4.6 or later to resolve the issue. As a temporary workaround, consider restricting access to the windowscontainers/start dockerBackendV2 API endpoint until a patch is applied. Avoid using the data-root field inside the DaemonJSON field in the WindowsContainerStartRequest class until the issue is resolved.

Fix

Link Following

Time Of Check To Time Of Use

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

BDU:2023-02412
CVE-2022-38730

Affected Products

Docker Desktop For Windows