Vulnerability   
Search   
    Search 324607 CVE descriptions
and 145615 test descriptions,
access 10,000+ cross references.
Tests   CVE   All  

Test ID:1.3.6.1.4.1.25623.1.1.10.2023.0033
Category:Mageia Linux Local Security Checks
Title:Mageia: Security Advisory (MGASA-2023-0033)
Summary:The remote host is missing an update for the 'git' package(s) announced via the MGASA-2023-0033 advisory.
Description:Summary:
The remote host is missing an update for the 'git' package(s) announced via the MGASA-2023-0033 advisory.

Vulnerability Insight:
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. (CVE-2022-23521)

'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. (CVE-2022-41903)

Affected Software/OS:
'git' package(s) on Mageia 8.

Solution:
Please install the updated package(s).

CVSS Score:
10.0

CVSS Vector:
AV:N/AC:L/Au:N/C:C/I:C/A:C

Cross-Ref: Common Vulnerability Exposure (CVE) ID: CVE-2022-23521
https://security.gentoo.org/glsa/202312-15
https://github.com/git/git/commit/508386c6c5857b4faa2c3e491f422c98cc69ae76
https://github.com/git/git/security/advisories/GHSA-c738-c5qq-xg89
Common Vulnerability Exposure (CVE) ID: CVE-2022-41903
https://git-scm.com/book/en/v2/Customizing-Git-Git-Attributes#_export_subst
https://git-scm.com/docs/pretty-formats#Documentation/pretty-formats.txt-emltltNgttruncltruncmtruncem
https://github.com/git/git/security/advisories/GHSA-475x-2q3q-hvwq
CopyrightCopyright (C) 2023 Greenbone AG

This is only one of 145615 vulnerability tests in our test suite. Find out more about running a complete security audit.

To run a free test of this vulnerability against your system, register below.




© 1998-2025 E-Soft Inc. All rights reserved.