Link following in Git - CVE-2023-23946

 

Link following in Git - CVE-2023-23946

Published: February 15, 2023


Vulnerability identifier: #VU72245
CSH Severity: Medium
CVSS v4: 7 [CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2023-23946
CWE-ID: CWE-59
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows an attacker to compromise the affected system.

The vulnerability exists due to application allows to overwrite files outside the working tree via the "git apply" command. A remote attacker can trick the victim to run the affected command against a malicious or compromised repository and overwrite arbitrary files on the system.


Affected software

Git
Migration Toolkit for Containers
Red Hat OpenShift Container Platform
Debian Linux
Amazon Linux AMI
Gentoo Linux
SUSE CaaS Platform
SUSE Manager Proxy
SUSE Manager Retail Branch Server
SUSE Manager Server
SUSE Enterprise Storage
Anolis OS
Red Hat Enterprise Linux for x86_64
Red Hat Enterprise Linux for ARM 64
Red Hat Enterprise Linux for Power, little endian
Red Hat Enterprise Linux for IBM z Systems
HPE Helion Openstack
SUSE OpenStack Cloud
SUSE OpenStack Cloud Crowbar
Oracle Solaris
SUSE Linux Enterprise Server
SUSE Linux Enterprise Server for SAP
SUSE Linux Enterprise Software Development Kit
SUSE Linux Enterprise Server for SAP Applications
Slackware Linux
SUSE Linux Enterprise High Performance Computing
SUSE Linux Enterprise Realtime Extension
SUSE Linux Enterprise Module for Development Tools
SUSE Linux Enterprise Desktop
SUSE Linux Enterprise Module for Basesystem
openSUSE Leap
Ubuntu
openEuler
Fedora
ObjectScale
Git for Windows
EMC ECS
cflinuxfs3
Platform Automation Toolkit
Red Hat Advanced Cluster Management for Kubernetes
OpenShift Logging
OpenShift Developer Tools and Services
Visual Studio
git (Ubuntu package)
git-cvs
git
git-core
git-core-debuginfo
git-daemon
git-daemon-debuginfo
git-debugsource
git-email
git-gui
git-svn
git-web
gitk
git-arch
git-svn-debuginfo
git-doc
git-debuginfo
perl-Git-SVN
perl-Git
git-help
git (Debian package)
git-credential-gnome-keyring
git-credential-gnome-keyring-debuginfo
git-credential-libsecret
git-credential-libsecret-debuginfo
git-p4
dev-vcs/git
git (Red Hat package)
git-instaweb
git-core-doc
git-all
git-subtree
gitweb

How to mitigate CVE-2023-23946

Install updates from vendor's website.

Git - addressed in versions 2.30.8, 2.31.7, 2.32.6, 2.33.7, 2.34.7, 2.35.7, 2.36.5, 2.37.6, 2.38.4, 2.39.2
ObjectScale - update to 1.3.0
Migration Toolkit for Containers - update to 1.7.10
Git for Windows - addressed in versions 2.35.7.1, 2.39.2.1
Red Hat Advanced Cluster Management for Kubernetes - addressed in versions 2.5.9, 2.6.6, 2.7.4
EMC ECS - update to 3.7.0.6
Red Hat OpenShift Container Platform - update to 4.13.2
OpenShift Logging - update to 5.7.2
git (Ubuntu package) - addressed in versions Ubuntu Pro (Infra-only), 1:2.17.1-1ubuntu0.16, 1:2.25.1-1ubuntu3.10, 1:2.34.1-1ubuntu1.8, 1:2.37.2-1ubuntu1.4
cflinuxfs3 - update to 0.352.0
git-cvs - addressed in versions 2.26.2-27.66.1, 2.26.2-150000.47.1, 2.35.3-150300.10.24.1
git - addressed in versions 2.26.2-27.66.1, 2.26.2-150000.47.1, 2.35.3-150300.10.24.1
git-core - addressed in versions 2.26.2-27.66.1, 2.26.2-150000.47.1, 2.35.3-150300.10.24.1
git-core-debuginfo - addressed in versions 2.26.2-27.66.1, 2.26.2-150000.47.1, 2.35.3-150300.10.24.1
git-daemon - addressed in versions 2.26.2-27.66.1, 2.26.2-150000.47.1, 2.35.3-150300.10.24.1
git-daemon-debuginfo - addressed in versions 2.26.2-27.66.1, 2.26.2-150000.47.1, 2.35.3-150300.10.24.1
git-debugsource - addressed in versions 2.26.2-27.66.1, 2.26.2-150000.47.1, 2.35.3-150300.10.24.1
git-email - addressed in versions 2.26.2-27.66.1, 2.26.2-150000.47.1, 2.35.3-150300.10.24.1
git-gui - addressed in versions 2.26.2-27.66.1, 2.26.2-150000.47.1, 2.35.3-150300.10.24.1
git-svn - addressed in versions 2.26.2-27.66.1, 2.26.2-150000.47.1, 2.35.3-150300.10.24.1
git-web - addressed in versions 2.26.2-27.66.1, 2.26.2-150000.47.1, 2.35.3-150300.10.24.1
gitk - addressed in versions 2.26.2-27.66.1, 2.26.2-150000.47.1, 2.35.3-150300.10.24.1
git-arch - addressed in versions 2.26.2-27.66.1, 2.26.2-150000.47.1, 2.35.3-150300.10.24.1
git-svn-debuginfo - addressed in versions 2.26.2-27.66.1, 2.26.2-150000.47.1
git-doc - addressed in versions 2.26.2-27.66.1, 2.26.2-150000.47.1, 2.35.3-150300.10.24.1
git-debuginfo - addressed in versions 2.26.2-150000.47.1, 2.35.3-150300.10.24.1
git-debuginfo - update to 2.27.0-12
git-daemon - update to 2.27.0-12
git-svn - update to 2.27.0-12
git-debugsource - update to 2.27.0-12
git - update to 2.27.0-12
perl-Git-SVN - update to 2.27.0-12
perl-Git - update to 2.27.0-12
git-web - update to 2.27.0-12
gitk - update to 2.27.0-12
git-email - update to 2.27.0-12
git-gui - update to 2.27.0-12
git-help - update to 2.27.0-12
git (Debian package) - update to 1:2.30.2-1+deb11u2
git - addressed in versions 2.30.8, 2.35.7
perl-Git - update to 2.35.3-150300.10.24.1
git-credential-gnome-keyring - update to 2.35.3-150300.10.24.1
git-credential-gnome-keyring-debuginfo - update to 2.35.3-150300.10.24.1
git-credential-libsecret - update to 2.35.3-150300.10.24.1
git-credential-libsecret-debuginfo - update to 2.35.3-150300.10.24.1
git-p4 - update to 2.35.3-150300.10.24.1
git - addressed in versions 2.38.4-1.80, 2.39.2-1
git - addressed in versions 2.39.2-1.fc36, 2.39.2-1.fc37
dev-vcs/git - update to 2.39.3
git (Red Hat package) - addressed in versions 2.39.3-1.el8_8, 2.39.3-1.el9_2
gitk - update to 2.39.3-1.0.1
git-svn - update to 2.39.3-1.0.1
git-instaweb - update to 2.39.3-1.0.1
git-gui - update to 2.39.3-1.0.1
git-email - update to 2.39.3-1.0.1
git-core-doc - update to 2.39.3-1.0.1
git-all - update to 2.39.3-1.0.1
git-subtree - update to 2.39.3-1.0.1
git-daemon - update to 2.39.3-1.0.1
git-credential-libsecret - update to 2.39.3-1.0.1
git-core - update to 2.39.3-1.0.1
git - update to 2.39.3-1.0.1
perl-Git-SVN - update to 2.39.3-1.0.1
gitweb - update to 2.39.3-1.0.1
perl-Git - update to 2.39.3-1.0.1
Platform Automation Toolkit - addressed in versions 4.4.31, 5.0.24, 5.1.0

External References

Related Security Bulletins