QID 354808
Date Published: 2023-03-08
QID 354808: Amazon Linux Security Advisory for git : ALAS-2023-1700
git is a revision control system.
Using a specially-crafted repository, git prior to versions 2.39.2, 2.38.4, 2.37.6, 2.36.5, 2.35.7, 2.34.7, 2.33.7, 2.32.6, 2.31.7, and 2.30.8 can be tricked into using its local clone optimization even when using a non-local transport.
Though git will abort local clones whose source `$git_dir/objects` directory contains symbolic links, the `objects` directory itself may still be a symbolic link.
These two may be combined to include arbitrary files based on known paths on the victims filesystem within the malicious repositorys working copy, allowing for data exfiltration in a similar manner as( CVE-2022-39253.
A fix has been prepared and will appear in v2.39.2 v2.38.4 v2.37.6 v2.36.5 v2.35.7 v2.34.7 v2.33.7 v2.32.6, v2.31.7 and v2.30.8.
If upgrading is impractical, two short-term workarounds are available.
Avoid cloning repositories from untrusted sources with `--recurse-submodules`.
Instead, consider cloning repositories without recursively cloning their submodules, and instead run `git submodule update` at each layer.
Before doing so, inspect each new `.gitmodules` file to ensure that it does not contain suspicious module urls. (
( CVE-2023-22490) git, a revision control system, is vulnerable to path traversal prior to versions 2.39.2, 2.38.4, 2.37.6, 2.36.5, 2.35.7, 2.34.7, 2.33.7, 2.32.6, 2.31.7, and 2.30.8.
By feeding a crafted input to `git apply`, a path outside the working tree can be overwritten as the user who is running `git apply`.
A fix has been prepared and will appear in v2.39.2, v2.38.4, v2.37.6, v2.36.5, v2.35.7, v2.34.7, v2.33.7, v2.32.6, v2.31.7, and v2.30.8.
( CVE-2023-23946)
Note: The preceding description block is extracted directly from the security advisory. Using automation, we have attempted to clean and format it as much as possible without introducing additional issues.
Successful exploitation of this vulnerability could lead to a securitybreach or could affect integrity, availability, and confidentiality.
- ALAS-2023-1700 -
alas.aws.amazon.com/ALAS-2023-1700.html
CVEs related to QID 354808
| Advisory ID | Software | Component | Link |
|---|---|---|---|
| ALAS-2023-1700 | amazon linux |
|