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
Amazon Linux AMI
Oracle Linux
Debian Linux
Gentoo Linux
SUSE CaaS Platform
SUSE Manager Retail Branch Server
SUSE Manager Server
SUSE Manager Proxy
SUSE Enterprise Storage
SUSE OpenStack Cloud
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
Anolis OS
Oracle Solaris
SUSE Linux Enterprise Server
SUSE Linux Enterprise Server for SAP Applications
SUSE Linux Enterprise Software Development Kit
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 Data Protection Central
Dell EMC PowerProtect Data Protection
ObjectScale
cflinuxfs3
Platform Automation Toolkit
Juniper Secure Analytics (JSA)
Dell EMC NetWorker vProxy
Apple Xcode
Visual Studio
Juniper Junos Space
git (Ubuntu package)
git-doc
gitk
git-web
git-svn-debuginfo
git-svn
git-gui
git-email
git-daemon-debuginfo
git-daemon
git-cvs
git-core-debuginfo
git-core
git-arch
git-debugsource
git
git-debuginfo
perl-Git-SVN
perl-Git
git-help
git (Debian package)
git-credential-gnome-keyring-debuginfo
git-credential-gnome-keyring
git-p4
git-credential-libsecret
git-credential-libsecret-debuginfo
git (Red Hat package)
dev-vcs/git
gitweb
git-instaweb
git-core-doc
git-all
git-subtree
moby-engine
Isolation Segment
VMware Tanzu Application Service for VMs
EMC ViPR SRM
Dell EMC Storage Monitoring and Reporting (SMR)

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 Ubuntu Pro (Infra-only), 1:2.17.1-1ubuntu0.13, 1:2.25.1-1ubuntu3.6, 1:2.34.1-1ubuntu1.5, 1:2.37.2-1ubuntu1.1
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
git-doc - 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-web - 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-svn - 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-email - 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-daemon - 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-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-core - 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-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-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
git (Debian package) - update to 1:2.30.2-1+deb11u1
git - addressed in versions 2.30.6, 2.30.8, 2.35.5, 2.35.7
perl-Git - 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-p4 - update to 2.35.3-150300.10.18.1
git-credential-libsecret - update to 2.35.3-150300.10.18.1
git-credential-libsecret-debuginfo - 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
dev-vcs/git - update to 2.39.3
perl-Git-SVN - 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
gitweb - 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
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
git-credential-libsecret - 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
git - addressed in versions 2.39.3-1.0.1, 2.43.5-1.0.1
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
EMC ViPR SRM - update to 4.9.0.0
Dell EMC Storage Monitoring and Reporting (SMR) - update to 4.9.0.0
moby-engine - addressed in versions 20.10.20-1.fc36, 20.10.20-1.fc37

Links to Public Exploits and PoC-codes

External References

Related Security Bulletins