Skip to content
OpenAdvisories
Critical SUSE-SU-2020:0992-1 1 CVE

Security update for git

Published Apr 14, 2020 · Updated May 2, 2025

Summary

This update for git fixes the following issues:

Security issue fixed:

- CVE-2020-5260: With a crafted URL that contains a newline in it, the credential
helper machinery can be fooled to give credential information for a wrong host (bsc#1168930).

Non-security issue fixed:

git was updated to 2.26.0 for SHA256 support (bsc#1167890, jsc#SLE-11608):

- the xinetd snippet was removed
- the System V init script for the git-daemon was replaced by a systemd
service file of the same name.

git 2.26.0:

* 'git rebase' now uses a different backend that is based on the
'merge' machinery by default. The 'rebase.backend' configuration
variable reverts to old behaviour when set to 'apply'
* Improved handling of sparse checkouts
* Improvements to many commands and internal features

git 2.25.1:

* 'git commit' now honors advise.statusHints
* various updates, bug fixes and documentation updates

git 2.25.0:

* The branch description ('git branch --edit-description') has been
used to fill the body of the cover letters by the format-patch
command; this has been enhanced so that the subject can also be
filled.
* A few commands learned to take the pathspec from the standard input
or a named file, instead of taking it as the command line
arguments, with the '--pathspec-from-file' option.
* Test updates to prepare for SHA-2 transition continues.
* Redo 'git name-rev' to avoid recursive calls.
* When all files from some subdirectory were renamed to the root
directory, the directory rename heuristics would fail to detect that
as a rename/merge of the subdirectory to the root directory, which has
been corrected.
* HTTP transport had possible allocator/deallocator mismatch, which
has been corrected.

git 2.24.1:

* CVE-2019-1348: The --export-marks option of fast-import is
exposed also via the in-stream command feature export-marks=...
and it allows overwriting arbitrary paths (bsc#1158785)
* CVE-2019-1349: on Windows, when submodules are cloned
recursively, under certain circumstances Git could be fooled
into using the same Git directory twice (bsc#1158787)
* CVE-2019-1350: Incorrect quoting of command-line arguments
allowed remote code execution during a recursive clone in
conjunction with SSH URLs (bsc#1158788)
* CVE-2019-1351: on Windows mistakes drive letters outside of
the US-English alphabet as relative paths (bsc#1158789)
* CVE-2019-1352: on Windows was unaware of NTFS Alternate Data
Streams (bsc#1158790)
* CVE-2019-1353: when run in the Windows Subsystem for Linux
while accessing a working directory on a regular Windows
drive, none of the NTFS protections were active (bsc#1158791)
* CVE-2019-1354: on Windows refuses to write tracked files with
filenames that contain backslashes (bsc#1158792)
* CVE-2019-1387: Recursive clones vulnerability that is caused
by too-lax validation of submodule names, allowing very
targeted attacks via remote code execution in recursive
clones (bsc#1158793)
* CVE-2019-19604: a recursive clone followed by a submodule
update could execute code contained within the repository
without the user explicitly having asked for that (bsc#1158795)

- Fix building with asciidoctor and without DocBook4 stylesheets.

git 2.24.0

* The command line parser learned '--end-of-options' notation.
* A mechanism to affect the default setting for a (related) group of
configuration variables is introduced.
* 'git fetch' learned '--set-upstream' option to help those who first
clone from their private fork they intend to push to, add the true
upstream via 'git remote add' and then 'git fetch' from it.
* fixes and improvements to UI, workflow and features, bash completion fixes
* part of it merged upstream
* the Makefile attempted to download some documentation, banned

git 2.23.0:

* The '--base' option of 'format-patch' computed the patch-ids for
prerequisite patches in an unstable way, which has been updated
to compute in a way that is compatible with 'git patch-id
--stable'.
* The 'git log' command by default behaves as if the --mailmap
option was given.
* fixes and improvements to UI, workflow and features

git 2.22.1:

* A relative pathname given to 'git init --template=<path> <repo>'
ought to be relative to the directory 'git init' gets invoked in,
but it instead was made relative to the repository, which has been
corrected.
* 'git worktree add' used to fail when another worktree connected to
the same repository was corrupt, which has been corrected.
* 'git am -i --resolved' segfaulted after trying to see a commit as
if it were a tree, which has been corrected.
* 'git merge --squash' is designed to update the working tree and the
index without creating the commit, and this cannot be countermanded
by adding the '--commit' option; the command now refuses to work
when both options are given.
* Update to Unicode 12.1 width table.
* 'git request-pull' learned to warn when the ref we ask them to pull
from in the local repository and in the published repository are
different.
* 'git fetch' into a lazy clone forgot to fetch base objects that are
necessary to complete delta in a thin packfile, which has been
corrected.
* The URL decoding code has been updated to avoid going past the end
of the string while parsing %-<hex>-<hex> sequence.
* 'git clean' silently skipped a path when it cannot lstat() it; now
it gives a warning.
* 'git rm' to resolve a conflicted path leaked an internal message
'needs merge' before actually removing the path, which was
confusing. This has been corrected.
* Many more bugfixes and code cleanups.

- removal of SuSEfirewall2 service, since SuSEfirewall2 has been replaced by
firewalld, see [1].
[1]: https://lists.opensuse.org/opensuse-factory/2019-01/msg00490.html

git 2.22.0:

* The filter specification '--filter=sparse:path=<path>' used to
create a lazy/partial clone has been removed. Using a blob that is
part of the project as sparse specification is still support

Fixed packages 55

ReleasePackageFixed in
SUSE · Enterprise Storage 5 git 2.26.0-27.27.1
SUSE · Enterprise Storage 5 pcre2 10.34-1.3.1
SUSE · Enterprise Storage 5 perl-CGI 4.38-1.3.1
SUSE · HPE Helion OpenStack 8 git 2.26.0-27.27.1
SUSE · HPE Helion OpenStack 8 pcre2 10.34-1.3.1
SUSE · HPE Helion OpenStack 8 perl-CGI 4.38-1.3.1
SUSE · SLES 12 SP1 Linux Enterprise Server 12 SP1-LTSS git 2.26.0-27.27.1
SUSE · SLES 12 SP1 Linux Enterprise Server 12 SP1-LTSS pcre2 10.34-1.3.1
SUSE · SLES 12 SP1 Linux Enterprise Server 12 SP1-LTSS perl-CGI 4.38-1.3.1
SUSE · SLES 12 SP2 Linux Enterprise Server 12 SP2-BCL git 2.26.0-27.27.1
SUSE · SLES 12 SP2 Linux Enterprise Server 12 SP2-BCL pcre2 10.34-1.3.1
SUSE · SLES 12 SP2 Linux Enterprise Server 12 SP2-BCL perl-CGI 4.38-1.3.1
SUSE · SLES 12 SP2 Linux Enterprise Server 12 SP2-LTSS git 2.26.0-27.27.1
SUSE · SLES 12 SP2 Linux Enterprise Server 12 SP2-LTSS pcre2 10.34-1.3.1
SUSE · SLES 12 SP2 Linux Enterprise Server 12 SP2-LTSS perl-CGI 4.38-1.3.1
SUSE · SLES 12 SP3 Linux Enterprise Server 12 SP3-BCL git 2.26.0-27.27.1
SUSE · SLES 12 SP3 Linux Enterprise Server 12 SP3-BCL pcre2 10.34-1.3.1
SUSE · SLES 12 SP3 Linux Enterprise Server 12 SP3-BCL perl-CGI 4.38-1.3.1
SUSE · SLES 12 SP3 Linux Enterprise Server 12 SP3-LTSS git 2.26.0-27.27.1
SUSE · SLES 12 SP3 Linux Enterprise Server 12 SP3-LTSS pcre2 10.34-1.3.1
SUSE · SLES 12 SP3 Linux Enterprise Server 12 SP3-LTSS perl-CGI 4.38-1.3.1
SUSE · SLES 12 SP4 Linux Enterprise Server 12 SP4 git 2.26.0-27.27.1
SUSE · SLES 12 SP4 Linux Enterprise Server 12 SP4 pcre2 10.34-1.3.1
SUSE · SLES 12 SP4 Linux Enterprise Server 12 SP4 perl-CGI 4.38-1.3.1
SUSE · SLES 12 SP5 Linux Enterprise Server 12 SP5 git 2.26.0-27.27.1
SUSE · SLES 12 SP5 Linux Enterprise Server 12 SP5 pcre2 10.34-1.3.1
SUSE · SLES 12 SP5 Linux Enterprise Server 12 SP5 perl-CGI 4.38-1.3.1
SUSE · SLES for SAP 12 SP1 Linux Enterprise Server for SAP Applications 12 SP1 git 2.26.0-27.27.1
SUSE · SLES for SAP 12 SP1 Linux Enterprise Server for SAP Applications 12 SP1 pcre2 10.34-1.3.1
SUSE · SLES for SAP 12 SP1 Linux Enterprise Server for SAP Applications 12 SP1 perl-CGI 4.38-1.3.1
SUSE · SLES for SAP 12 SP2 Linux Enterprise Server for SAP Applications 12 SP2 git 2.26.0-27.27.1
SUSE · SLES for SAP 12 SP2 Linux Enterprise Server for SAP Applications 12 SP2 pcre2 10.34-1.3.1
SUSE · SLES for SAP 12 SP2 Linux Enterprise Server for SAP Applications 12 SP2 perl-CGI 4.38-1.3.1
SUSE · SLES for SAP 12 SP3 Linux Enterprise Server for SAP Applications 12 SP3 git 2.26.0-27.27.1
SUSE · SLES for SAP 12 SP3 Linux Enterprise Server for SAP Applications 12 SP3 pcre2 10.34-1.3.1
SUSE · SLES for SAP 12 SP3 Linux Enterprise Server for SAP Applications 12 SP3 perl-CGI 4.38-1.3.1
SUSE · SLES for SAP 12 SP4 Linux Enterprise Server for SAP Applications 12 SP4 git 2.26.0-27.27.1
SUSE · SLES for SAP 12 SP4 Linux Enterprise Server for SAP Applications 12 SP4 pcre2 10.34-1.3.1
SUSE · SLES for SAP 12 SP4 Linux Enterprise Server for SAP Applications 12 SP4 perl-CGI 4.38-1.3.1
SUSE · SLES for SAP 12 SP5 Linux Enterprise Server for SAP Applications 12 SP5 git 2.26.0-27.27.1
SUSE · SLES for SAP 12 SP5 Linux Enterprise Server for SAP Applications 12 SP5 pcre2 10.34-1.3.1
SUSE · SLES for SAP 12 SP5 Linux Enterprise Server for SAP Applications 12 SP5 perl-CGI 4.38-1.3.1
SUSE · SLES 12 SP4 Linux Enterprise Software Development Kit 12 SP4 git 2.26.0-27.27.1
SUSE · SLES 12 SP4 Linux Enterprise Software Development Kit 12 SP4 pcre2 10.34-1.3.1
SUSE · SLES 12 SP5 Linux Enterprise Software Development Kit 12 SP5 git 2.26.0-27.27.1
SUSE · SLES 12 SP5 Linux Enterprise Software Development Kit 12 SP5 pcre2 10.34-1.3.1
SUSE · OpenStack Cloud 7 git 2.26.0-27.27.1
SUSE · OpenStack Cloud 7 pcre2 10.34-1.3.1
SUSE · OpenStack Cloud 7 perl-CGI 4.38-1.3.1
SUSE · OpenStack Cloud 8 git 2.26.0-27.27.1
SUSE · OpenStack Cloud 8 pcre2 10.34-1.3.1
SUSE · OpenStack Cloud 8 perl-CGI 4.38-1.3.1
SUSE · OpenStack Cloud Crowbar 8 git 2.26.0-27.27.1
SUSE · OpenStack Cloud Crowbar 8 pcre2 10.34-1.3.1
SUSE · OpenStack Cloud Crowbar 8 perl-CGI 4.38-1.3.1

Vulnerabilities 1

  • Critical 9.3
    CVE-2020-5260 Public exploit EPSS 15%

    malicious URLs may cause Git to present stored credentials to the wrong server

    Affected versions of Git have a vulnerability whereby Git can be tricked into sending private credentials to a host controlled by an attacker. Git uses external "credential helper" programs to store and retrieve passwords or other credentials from secure stor…

References

  • report
    https://bugzilla.suse.com/1167890
  • report
    https://bugzilla.suse.com/1168930
  • web
    https://www.suse.com/security/cve/CVE-2020-5260