PT-2023-1980 · Git+10 · Git+10

·

CVE-2023-23946

·

Published

2023-02-14

·

Updated

2024-06-15

CVSS v2.0

7.8

High

VectorAV:N/AC:L/Au:N/C:N/I:C/A:N
Name of the Vulnerable Software and Affected Versions Git versions prior to 2.39.2 Git versions prior to 2.38.4 Git versions prior to 2.37.6 Git versions prior to 2.36.5 Git versions prior to 2.35.7 Git versions prior to 2.34.7 Git versions prior to 2.33.7 Git versions prior to 2.32.6 Git versions prior to 2.31.7 Git versions prior to 2.30.8
Description The issue is related to path traversal in Git, a revision control system. By feeding a crafted input to git apply, a path outside the working tree can be overwritten as the user who is running git apply. This can allow a remote attacker to overwrite arbitrary files in the system.
Recommendations For versions prior to 2.39.2, update to version 2.39.2 or later. For versions prior to 2.38.4, update to version 2.38.4 or later. For versions prior to 2.37.6, update to version 2.37.6 or later. For versions prior to 2.36.5, update to version 2.36.5 or later. For versions prior to 2.35.7, update to version 2.35.7 or later. For versions prior to 2.34.7, update to version 2.34.7 or later. For versions prior to 2.33.7, update to version 2.33.7 or later. For versions prior to 2.32.6, update to version 2.32.6 or later. For versions prior to 2.31.7, update to version 2.31.7 or later. For versions prior to 2.30.8, update to version 2.30.8 or later. As a temporary workaround, use git apply --stat to inspect a patch before applying and avoid applying one that creates a symbolic link and then creates a file beyond the symbolic link.

Exploit

Fix

DoS

Path traversal

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

ALSA-2023:3245
ALSA-2023:3246
ALT-PU-2023-1244
ALT-PU-2023-1291
ALT-PU-2023-4135
BDU:2023-01603
CESA-2023_3246
CVE-2023-23946
DLA-3338-1
DSA-5357-1
GHSA-R87M-V37R-CWFH
MGASA-2023-0066
OESA-2023-1120
OPENSUSE-SU-2023_0418-1
OPENSUSE-SU-2023_0430-1
OPENSUSE-SU-2024:12698-1
RHSA-2023:3245
RHSA-2023:3246
RHSA-2023_3245
RHSA-2023_3246
RHSA-2024:0407
RLSA-2023:3246
ROSA-SA-2024-2398
SUSE-SU-2023:0418-1
SUSE-SU-2023:0426-1
SUSE-SU-2023:0430-1
USN-5871-1

Affected Products

Alt Linux
Almalinux
Astra Linux
Centos
Git
Linuxmint
Red Hat
Red Os
Rocky Linux
Suse
Ubuntu