Tar extraction in moby/go-archive can write outside the destination directory via link following
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| moby | go-archive | unaffected |
|
||||||
| Docker | Docker Sandboxes | unaffected |
|
||||||
| Docker | Docker Desktop | unaffected |
|
||||||
| Docker | Docker Engine | unaffected |
|
||||||
| Docker | Docker CLI | unaffected |
|
||||||
| Docker | Docker Compose | unaffected |
|
No data.
No data.
| Vendor | Product | Versions | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Docker | Desktop |
|
||||||||
| Docker | Docker Cli |
|
||||||||
| Docker | Docker Compose |
|
||||||||
| Docker | Docker Engine |
|
||||||||
| Docker | Sandboxes |
|
||||||||
| Moby | Go-archive |
|
Vendor Workaround
Only extract trusted archives.
| Source | ID | Title |
|---|---|---|
Github GHSA |
GHSA-hfg8-hc9c-6c3h | moby/go-archive: Crafted tar archive can write outside the extraction directory |
No CVSS v3.0
No CVSS v2
This CVE is not in the KEV list.
Exploit prediction score: < 1% (0.440% probability within 30 days)
| Type | Values Removed | Values Added |
|---|---|---|
| References |
| |
| Metrics |
threat_severity
|
cvssV3_1
|
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Docker docker Cli
Docker docker Compose Docker docker Engine Docker sandboxes Moby Moby go-archive |
|
| Vendors & Products |
Docker docker Cli
Docker docker Compose Docker docker Engine Docker sandboxes Moby Moby go-archive |
| Type | Values Removed | Values Added |
|---|---|---|
| References |
| |
| Metrics |
ssvc
|
| Type | Values Removed | Values Added |
|---|---|---|
| Description | The tar extraction routines in moby/go-archive (Unpack, UnpackLayer, Untar/UntarUncompressed, and the ApplyLayer helpers) do not confine filesystem operations to the destination directory. The extractor decides where each archive entry lands using lexical string checks and then performs the filesystem operation on a path that is resolved by the OS, so links introduced by the archive can be followed out of the destination directory. An attacker who controls the contents of an archive can create or overwrite files at arbitrary paths writable by the extracting process. | |
| Title | Tar extraction in moby/go-archive can write outside the destination directory via link following | |
| First Time appeared |
Docker
Docker desktop Docker docker Sandboxes |
|
| Weaknesses | CWE-59 | |
| CPEs | cpe:2.3:a:docker:desktop:*:*:*:*:*:*:*:* cpe:2.3:a:docker:docker_sandboxes:*:*:*:*:*:*:*:* |
|
| Vendors & Products |
Docker
Docker desktop Docker docker Sandboxes |
|
| References |
|
|
| Metrics |
cvssV4_0
|