Input validation error in Git - CVE-2022-39253

 

Input validation error in Git - CVE-2022-39253

Published: October 19, 2022 / Updated: May 29, 2023


Vulnerability identifier: #VU68517
CSH Severity: Low
CVSS v4: 1.8 [CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:A/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2022-39253
CWE-ID: CWE-20
Exploitation vector: Remote access
Exploit availability: Public exploit is available

Vulnerability details

The vulnerability allows a remote attacker to bypass certain security restrictions.

The vulnerability exists due to the way Git handles hardlinks when performing a local clone. A remote attacker can trick the victim into clocking a malicious repository and create or copy hardlinks to critical files on the system, which can result in sensitive information exposure.


Affected software

Git
Debian Linux
Amazon Linux AMI
Gentoo Linux
Oracle Linux
SUSE CaaS Platform
SUSE Manager Proxy
SUSE Manager Server
SUSE Manager Retail Branch Server
SUSE Enterprise Storage
Anolis OS
HPE Helion Openstack
SUSE OpenStack Cloud
Red Hat Enterprise Linux for x86_64
Red Hat Enterprise Linux for IBM z Systems
Red Hat Enterprise Linux for Power, little endian
Red Hat Enterprise Linux for ARM 64
Oracle Solaris
SUSE Linux Enterprise Software Development Kit
SUSE Linux Enterprise Server for SAP Applications
SUSE Linux Enterprise Server
Slackware Linux
SUSE Linux Enterprise Server for SAP
SUSE Linux Enterprise High Performance Computing
SUSE Linux Enterprise Desktop
SUSE Linux Enterprise Module for Development Tools
SUSE Linux Enterprise Module for Basesystem
openSUSE Leap
Ubuntu
openEuler
Fedora
Dell EMC PowerProtect Data Protection
Dell Data Protection Central
ObjectScale
cflinuxfs3
Platform Automation Toolkit
Juniper Secure Analytics (JSA)
Dell EMC NetWorker vProxy
Apple Xcode
Visual Studio
Juniper Junos Space
git (Ubuntu package)
git (Debian package)
git-debugsource
git
git-arch
git-core
git-core-debuginfo
git-cvs
git-daemon
git-daemon-debuginfo
git-email
git-gui
git-svn
git-svn-debuginfo
git-web
gitk
git-doc
git-debuginfo
perl-Git-SVN
perl-Git
git-help
git-p4
git-credential-libsecret-debuginfo
git-credential-libsecret
git-credential-gnome-keyring-debuginfo
git-credential-gnome-keyring
git (Red Hat package)
git-instaweb
gitweb
git-core-doc
git-all
git-subtree
moby-engine
dev-vcs/git
Isolation Segment
VMware Tanzu Application Service for VMs
Dell EMC Storage Monitoring and Reporting (SMR)
EMC ViPR SRM

How to mitigate CVE-2022-39253

Install updates from vendor's website.

Git - addressed in versions 2.30.6, 2.31.5, 2.32.4, 2.33.5, 2.34.5, 2.35.5, 2.36.3, 2.37.4, 2.38.1
ObjectScale - update to 1.3.0
Juniper Secure Analytics (JSA) - update to 7.5.0 UP9 IF02
Apple Xcode - update to 14.1
Juniper Junos Space - update to 24.1R3
git (Ubuntu package) - addressed in versions 1:2.7.4-0ubuntu1.10+esm6, 1:2.17.1-1ubuntu0.13, 1:2.25.1-1ubuntu3.6, 1:2.34.1-1ubuntu1.5, 1:2.37.2-1ubuntu1.1
git (Debian package) - addressed in versions 1:2.20.1-2+deb10u5, 1:2.30.2-1+deb11u1
git-debugsource - addressed in versions 2.26.2-27.60.1, 2.26.2-150000.47.1, 2.35.3-150300.10.18.1
git - addressed in versions 2.26.2-27.60.1, 2.26.2-150000.47.1, 2.35.3-150300.10.18.1
git-arch - addressed in versions 2.26.2-27.60.1, 2.26.2-150000.47.1, 2.35.3-150300.10.18.1
git-core - addressed in versions 2.26.2-27.60.1, 2.26.2-150000.47.1, 2.35.3-150300.10.18.1
git-core-debuginfo - addressed in versions 2.26.2-27.60.1, 2.26.2-150000.47.1, 2.35.3-150300.10.18.1
git-cvs - addressed in versions 2.26.2-27.60.1, 2.26.2-150000.47.1, 2.35.3-150300.10.18.1
git-daemon - addressed in versions 2.26.2-27.60.1, 2.26.2-150000.47.1, 2.35.3-150300.10.18.1
git-daemon-debuginfo - addressed in versions 2.26.2-27.60.1, 2.26.2-150000.47.1, 2.35.3-150300.10.18.1
git-email - addressed in versions 2.26.2-27.60.1, 2.26.2-150000.47.1, 2.35.3-150300.10.18.1
git-gui - addressed in versions 2.26.2-27.60.1, 2.26.2-150000.47.1, 2.35.3-150300.10.18.1
git-svn - addressed in versions 2.26.2-27.60.1, 2.26.2-150000.47.1, 2.35.3-150300.10.18.1
git-svn-debuginfo - addressed in versions 2.26.2-27.60.1, 2.26.2-150000.47.1
git-web - addressed in versions 2.26.2-27.60.1, 2.26.2-150000.47.1, 2.35.3-150300.10.18.1
gitk - addressed in versions 2.26.2-27.60.1, 2.26.2-150000.47.1, 2.35.3-150300.10.18.1
git-doc - addressed in versions 2.26.2-27.60.1, 2.26.2-150000.47.1, 2.35.3-150300.10.18.1
git-debuginfo - addressed in versions 2.26.2-150000.47.1, 2.35.3-150300.10.18.1
git - addressed in versions 2.27.0-9, 2.27.0-12, 2.27.0-17
git-gui - addressed in versions 2.27.0-9, 2.27.0-12, 2.27.0-17
perl-Git-SVN - addressed in versions 2.27.0-9, 2.27.0-12, 2.27.0-17
perl-Git - addressed in versions 2.27.0-9, 2.27.0-12, 2.27.0-17
git-web - addressed in versions 2.27.0-9, 2.27.0-12, 2.27.0-17
git-email - addressed in versions 2.27.0-9, 2.27.0-12, 2.27.0-17
gitk - addressed in versions 2.27.0-9, 2.27.0-12, 2.27.0-17
git-svn - addressed in versions 2.27.0-9, 2.27.0-12, 2.27.0-17
git-help - addressed in versions 2.27.0-9, 2.27.0-12, 2.27.0-17
git-debuginfo - addressed in versions 2.27.0-9, 2.27.0-12, 2.27.0-17
git-debugsource - addressed in versions 2.27.0-9, 2.27.0-12, 2.27.0-17
git-daemon - addressed in versions 2.27.0-9, 2.27.0-12, 2.27.0-17
perl-Git - update to 2.35.3-150300.10.18.1
git-p4 - update to 2.35.3-150300.10.18.1
git-credential-libsecret-debuginfo - update to 2.35.3-150300.10.18.1
git-credential-libsecret - update to 2.35.3-150300.10.18.1
git-credential-gnome-keyring-debuginfo - update to 2.35.3-150300.10.18.1
git-credential-gnome-keyring - update to 2.35.3-150300.10.18.1
git - addressed in versions 2.38.1-1.fc35, 2.38.1-1.fc36, 2.38.1-1.fc37
git - addressed in versions 2.38.1-1.77, 2.38.4-1.80, 2.38.4-1.81, 2.39.1-1, 2.39.2-1, 2.40.1-1
git (Red Hat package) - addressed in versions 2.39.1-1.el8, 2.39.1-1.el9
git-credential-libsecret - addressed in versions 2.39.3-1.0.1, 2.43.5-1.0.1
gitk - addressed in versions 2.39.3-1.0.1, 2.43.5-1.0.1
git-svn - addressed in versions 2.39.3-1.0.1, 2.43.5-1.0.1
git-instaweb - addressed in versions 2.39.3-1.0.1, 2.43.5-1.0.1
git-gui - addressed in versions 2.39.3-1.0.1, 2.43.5-1.0.1
gitweb - addressed in versions 2.39.3-1.0.1, 2.43.5-1.0.1
perl-Git - addressed in versions 2.39.3-1.0.1, 2.43.5-1.0.1
git-email - addressed in versions 2.39.3-1.0.1, 2.43.5-1.0.1
git-core-doc - addressed in versions 2.39.3-1.0.1, 2.43.5-1.0.1
git-all - addressed in versions 2.39.3-1.0.1, 2.43.5-1.0.1
git-subtree - addressed in versions 2.39.3-1.0.1, 2.43.5-1.0.1
git-daemon - addressed in versions 2.39.3-1.0.1, 2.43.5-1.0.1
perl-Git-SVN - addressed in versions 2.39.3-1.0.1, 2.43.5-1.0.1
git - addressed in versions 2.39.3-1.0.1, 2.43.5-1.0.1
git-core - addressed in versions 2.39.3-1.0.1, 2.43.5-1.0.1
moby-engine - addressed in versions 20.10.20-1.fc36, 20.10.20-1.fc37
cflinuxfs3 - addressed in versions 0.329.0, 0.352.0, 0.354.0
Isolation Segment - addressed in versions 2.11.30, 2.12.20, 2.13.15, 3.0.8, 4.0.0
VMware Tanzu Application Service for VMs - addressed in versions 2.11.36, 2.12.25, 2.13.18, 3.0.8, 4.0.0
Dell EMC NetWorker vProxy - update to 4.3.0-40
Platform Automation Toolkit - addressed in versions 4.4.31, 5.0.24, 5.1.1
Dell EMC Storage Monitoring and Reporting (SMR) - update to 4.9.0.0
EMC ViPR SRM - update to 4.9.0.0
dev-vcs/git - update to 2.39.3
git - addressed in versions 2.30.6, 2.30.8, 2.35.5, 2.35.7

Links to Public Exploits and PoC-codes

External References

Related Security Bulletins