In Moby prior to 20.10.20, a container build can leak any path on the host into the container. Versions of Git where CVE-2022-39253 is present and exploited by a malicious repository, when used in combination with Moby, are subject to an unexpected inclusion of arbitrary filesystem paths in the build context, without any visible warning to the user. As this issue cannot be triggered remotely, except by users who already have full control over the daemon through the API, and it requires exploiting a vulnerability in Git by convincing a user to build a maliciously crafted repository, the impact in Moby is considered low.
:heavy_check_mark: This issue was automatically closed by Mend because the vulnerable library in the specific branch(es) was either marked as ignored or it is no longer part of the Mend inventory.
WS-2022-0389 - Medium Severity Vulnerability
Vulnerable Library - github.com/moby/moby-v20.10.17+incompatible
Moby Project - a collaborative project for the container ecosystem to assemble container-based systems
Library home page: https://proxy.golang.org/github.com/moby/moby/@v/v20.10.17+incompatible.zip
Dependency Hierarchy: - github.com/gruntwork-io/terratest-v0.40.17 (Root Library) - github.com/google/go-containerregistry-v0.9.0 - github.com/docker/cli-v20.10.17+incompatible - :x: **github.com/moby/moby-v20.10.17+incompatible** (Vulnerable Library)
Found in HEAD commit: e49e2f33b77657ce4ab7eac9abebafc4a1fd18ba
Found in base branch: master
Vulnerability Details
In Moby prior to 20.10.20, a container build can leak any path on the host into the container. Versions of Git where CVE-2022-39253 is present and exploited by a malicious repository, when used in combination with Moby, are subject to an unexpected inclusion of arbitrary filesystem paths in the build context, without any visible warning to the user. As this issue cannot be triggered remotely, except by users who already have full control over the daemon through the API, and it requires exploiting a vulnerability in Git by convincing a user to build a maliciously crafted repository, the impact in Moby is considered low.
Publish Date: 2022-11-10
URL: WS-2022-0389
CVSS 3 Score Details (5.3)
Base Score Metrics: - Exploitability Metrics: - Attack Vector: Network - Attack Complexity: Low - Privileges Required: None - User Interaction: None - Scope: Unchanged - Impact Metrics: - Confidentiality Impact: Low - Integrity Impact: None - Availability Impact: None
For more information on CVSS3 Scores, click here.Suggested Fix
Type: Upgrade version
Origin: https://github.com/advisories/GHSA-vp35-85q5-9f25
Release Date: 2022-11-10
Fix Resolution: v20.10.20
Step up your Open Source Security Game with Mend here