Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

Security advisory

ALAS2-2023-1923

Active Important

ALAS2-2023-1923 (important): git

Published
04 Feb 2023
Updated
04 Feb 2023

Related CVEs

CVE identifiers linked by this publisher.

2
Publisher relationship details 2 records
Explicit publisher CVE relationships
CVE
CVE-2022-23521
CVE-2022-41903

Description

Git is distributed revision control system. gitattributes are a mechanism to allow defining attributes for paths. These attributes can be defined by adding a `.gitattributes` file to the repository, which contains a set of file patterns and the attributes that should be set for paths matching this pattern. When parsing gitattributes, multiple integer

Read full publisher description 2350 characters

Git is distributed revision control system. gitattributes are a mechanism to allow defining attributes for paths. These attributes can be defined by adding a `.gitattributes` file to the repository, which contains a set of file patterns and the attributes that should be set for paths matching this pattern. When parsing gitattributes, multiple integer overflows can occur when there is a huge number of path patterns, a huge number of attributes for a single pattern, or when the declared attribute names are huge. These overflows can be triggered via a crafted `.gitattributes` file that may be part of the commit history. Git silently splits lines longer than 2KB when parsing gitattributes from a file, but not when parsing them from the index. Consequentially, the failure mode depends on whether the file exists in the working tree, the index or both. This integer overflow can result in arbitrary heap reads and writes, which may result in remote code execution. The problem has been patched in the versions published on 2023-01-17, going back to v2.30.7. Users are advised to upgrade. There are no known workarounds for this issue. (CVE-2022-23521) Git is distributed revision control system. `git log` can display commits in an arbitrary format using its `--format` specifiers. This functionality is also exposed to `git archive` via the `export-subst` gitattribute. When processing the padding operators, there is a integer overflow in `pretty.c::format_and_pad_commit()` where a `size_t` is stored improperly as an `int`, and then added as an offset to a `memcpy()`. This overflow can be triggered directly by a user running a command which invokes the commit formatting machinery (e.g., `git log --format=...`). It may also be triggered indirectly through git archive via the export-subst mechanism, which expands format specifiers inside of files within the repository during a git archive. This integer overflow can result in arbitrary heap writes, which may result in arbitrary code execution. The problem has been patched in the versions published on 2023-01-17, going back to v2.30.7. Users are advised to upgrade. Users who are unable to upgrade should disable `git archive` in untrusted repositories. If you expose git archive via `git daemon`, disable it by running `git config --global daemon.uploadArch false`. (CVE-2022-41903)

Solution

Run yum update git or yum update --advisory ALAS2-2023-1923 to update your system.

Affected packages

Each item is one publisher package occurrence. Shared details are shown once; differences stay with the occurrence.

5

Shared package data

Applies to all 5 occurrences
  1. 1git

    Occurrence-specific details
    Architecture
    aarch64

    Replacement RPMs

    • git-2.39.1-1.amzn2.0.1.aarch64
    • git-core-2.39.1-1.amzn2.0.1.aarch64
    • git-credential-libsecret-2.39.1-1.amzn2.0.1.aarch64
    • git-daemon-2.39.1-1.amzn2.0.1.aarch64
    • git-debuginfo-2.39.1-1.amzn2.0.1.aarch64
  2. 2git

    Occurrence-specific details
    Architecture
    i686

    Replacement RPMs

    • git-2.39.1-1.amzn2.0.1.i686
    • git-core-2.39.1-1.amzn2.0.1.i686
    • git-credential-libsecret-2.39.1-1.amzn2.0.1.i686
    • git-daemon-2.39.1-1.amzn2.0.1.i686
    • git-debuginfo-2.39.1-1.amzn2.0.1.i686
  3. 3git

    Occurrence-specific details
    Architecture
    noarch

    Replacement RPMs

    • git-all-2.39.1-1.amzn2.0.1.noarch
    • git-core-doc-2.39.1-1.amzn2.0.1.noarch
    • git-cvs-2.39.1-1.amzn2.0.1.noarch
    • git-email-2.39.1-1.amzn2.0.1.noarch
    • gitk-2.39.1-1.amzn2.0.1.noarch
    • gitweb-2.39.1-1.amzn2.0.1.noarch
    • git-gui-2.39.1-1.amzn2.0.1.noarch
    • git-instaweb-2.39.1-1.amzn2.0.1.noarch
    • git-p4-2.39.1-1.amzn2.0.1.noarch
    • perl-Git-2.39.1-1.amzn2.0.1.noarch
    • perl-Git-SVN-2.39.1-1.amzn2.0.1.noarch
    • git-subtree-2.39.1-1.amzn2.0.1.noarch
    • git-svn-2.39.1-1.amzn2.0.1.noarch
  4. 4git

    Occurrence-specific details
    Architecture
    src

    Replacement RPMs

    • git-2.39.1-1.amzn2.0.1.src
  5. 5git

    Occurrence-specific details
    Architecture
    x86_64

    Replacement RPMs

    • git-2.39.1-1.amzn2.0.1.x86_64
    • git-core-2.39.1-1.amzn2.0.1.x86_64
    • git-credential-libsecret-2.39.1-1.amzn2.0.1.x86_64
    • git-daemon-2.39.1-1.amzn2.0.1.x86_64
    • git-debuginfo-2.39.1-1.amzn2.0.1.x86_64

CVSS assessments

Publisher supplied scores and vectors; these do not replace the advisory severity above.

0

No CVSS assessments were provided.

Publisher references

4
  • CVE-2022-23521 advisory · Tags: Red Hat https://access.redhat.com/security/cve/CVE-2022-23521
  • CVE-2022-41903 advisory · Tags: Red Hat https://access.redhat.com/security/cve/CVE-2022-41903
  • CVE-2022-23521 advisory · Tags: Mitre https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-23521
  • CVE-2022-41903 advisory · Tags: Mitre https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-41903

Provenance

Schema version
Unknown
Parser version
amazon-alas/1
Severity origin
publisher
Publisher document provenance records
KindLocatorSource commitDocument hashParserFetched
html_pagehttps://alas.aws.amazon.com/AL2/ALAS2-2023-1923.htmlUnknownc53dfd2acc61968b2ac9bf5828ece944f6b5c71620258f99352e4b032a186222amazon-alas/12026-11-16T08:26:43Z
rss_entryhttps://alas.aws.amazon.com/AL2/ALAS2-2023-1923.htmlUnknownUnknownamazon-alas/12026-11-16T08:26:43Z
catalog_entryhttps://alas.aws.amazon.com/AL2/ALAS2-2023-1923.htmlUnknownUnknownamazon-alas/12026-11-16T08:26:43Z

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected