QID 354787

Date Published: 2023-03-08

QID 354787: Amazon Linux Security Advisory for git : ALAS2-2023-1984

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.

  • CVSS V3 rated as High - 7.5 severity.
  • CVSS V2 rated as Medium - 5.4 severity.
  • Solution
    Please refer to Amazon advisory: ALAS2-2023-1984 for affected packages and patching details, or update with your package manager.
    Vendor References

    CVEs related to QID 354787

    Software Advisories
    Advisory ID Software Component Link
    ALAS2-2023-1984 amazon linux 2 URL Logo alas.aws.amazon.com/AL2/ALAS-2023-1984.html