Git – Client Tools – Upgrade on Windows

Background

Researchers recently discovered security vulnerabilities that were passed along to the Git Project.

Security Vulnerabilities

Source

DevClass

I found out about the vulnerabilities from scrolling through Google News.

Here is the URL:-

devclas.com
Updates for Git and Git for Windows after severe bug rash
Authored By:- Joe Fay
Dated:- 2023-April-27th
Link

 

In-depth

Git Project

Link

The addressed issues are:

  1. CVE-2023-25652
    • Description
      • By feeding specially crafted input to `git apply –reject`, a path outside the working tree can be overwritten with partially controlled contents ( corresponding to the rejected hunk(s) from the given patch ).
    • Credits
      • Bug Founders
        • Ry0taK
      • Code Fix
        • Git Foundation
          • Taylor Blau
          • Junio C Hamano
          • Johannes Schindelin
        • Linux Foundation
          • Linus Torvalds
  2. CVE-2023-25815
    • Description
      • When Git is compiled with runtime prefix support and runs without translated messages, it still used the gettext machinery to display messages, which subsequently potentially looked for translated messages in unexpected places. This allowed for a malicious placement of crafted messages.
    • Credits
      • Bug Founders
        • Michelin CERT team
          • Maxime Escourbiac
          • Yassine BENGANA
      • Code Fix
        • Git Foundation
          • Johannes Schindelin
  3.  CVE-2023-29007
    • Description
      • When renaming or deleting a section from a configuration file, certain malicious configuration values may be misinterpreted as the beginning of a new configuration section, leading to arbitrary configuration injection.
    • Credits
      • Bug Founders
        • Ethiack
          • André Baptista
          • Vítor Pinho
      • Code Fix
        • Git Foundation
          • Taylor Blau
          • Johannes Schindelin
        • Jeff King
        • Git Lab
          • Patrick Steinhardt

 

Outline

  1. Is Git Installed?
  2. Install Git
  3. Review Git Install
  4. Configure Git

Tasks

Is Git Installed?

where

syntax


where [appl]

sample


where git

output

Output Image

Output Text

>where git
C:\Program Files\Git\cmd\git.exe 

>

Explanation

We have confirmation that git is installed.

Git.exe is located in the C:\Program Files\Git\cmd folder.

Update Git

git

git update-git-for-windows

syntax

git update-git-for-windows

sample


git update-git-for-windows --yes

output

Output Text

git update-git-for-windows --yes

Git for Windows 2.33.1.windows.1 (64-bit)

Update 2.40.1.windows.1 is available

Downloading Git-2.40.1-64-bit.exe
######################################################################################################################################################################################################### 100.0%
>


Explanation

  1. We appear to have successfully upgraded git for Windows to v 2.40.1-64-bit.exe

Review Git Install

git

git version

syntax

git --version

sample

git --version

output

Output Image

Output Text

>git --version
git version 2.40.1.windows.1
>

Explanation

Confirmed that git version 2.40.1 is installed.

References

  1. devclass.com
    • Updates for Git and Git for Windows after severe bug rash
      Link
  2. Git Project
    • [ANNOUNCE] Git v2.40.1 and friends
      Link
  3. Stack Overflow
    • How to upgrade Git on Windows to the latest version
      Link

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s