PT-2023-3585

CVE-2023-25652

·

Published

2023-04-18

·

Updated

2026-09-30

Description by

CVSS 2.0
7.8
High
MetricsAV:N/AC:L/Au:N/C:N/I:C/A:N
Name of the Vulnerable Software and Affected Versions Git versions prior to 2.30.9 Git versions prior to 2.31.8 Git versions prior to 2.32.7 Git versions prior to 2.33.8 Git versions prior to 2.34.8 Git versions prior to 2.35.8 Git versions prior to 2.36.6 Git versions prior to 2.37.7 Git versions prior to 2.38.5 Git versions prior to 2.39.3 Git versions prior to 2.40.1
Description The issue is related to Git, a revision control system. By feeding specially crafted input to git apply --reject, a path outside the working tree can be overwritten with partially controlled contents. This corresponds to the rejected hunk(s) from the given patch. As a workaround, avoid using git apply with --reject when applying patches from an untrusted source. Use git apply --stat to inspect a patch before applying and avoid applying one that creates a conflict where a link corresponding to the *.rej file exists.
Recommendations Update to version 2.30.9 or later Update to version 2.31.8 or later Update to version 2.32.7 or later Update to version 2.33.8 or later Update to version 2.34.8 or later Update to version 2.35.8 or later Update to version 2.36.6 or later Update to version 2.37.7 or later Update to version 2.38.5 or later Update to version 2.39.3 or later Update to version 2.40.1 or later As a temporary workaround, consider avoiding the use of git apply with --reject when applying patches from an untrusted source. Restrict the use of git apply --reject to trusted sources only.
Exploitability
Exploit
Fix
Impacts
Researchers
Vendors
Affected products
Related identifiers
GHSA-2HVF-7C8P-28FX
ALSA-2023:3245
ALSA-2023:3246
ALT-PU-2023-1675
ALT-PU-2023-1695
ALT-PU-2023-4135
CESA-2023_3246
CESA-2023_3263
CLEANSTART-2026-CG61867
DLA-3844-1
DLA-3867-1
DSA-5769-1
MGASA-2023-0163
OESA-2023-1269
OPENSUSE-SU-2024:12889-1
RHSA-2023:3192
RHSA-2023:3243
RHSA-2023:3245
RHSA-2023_3245
RHSA-2023:3246
RHSA-2023_3246
RHSA-2023:3247
RHSA-2023:3248
RHSA-2023:3263
RHSA-2023_3263
RHSA-2023:3280
RHSA-2023:3382
RLSA-2023:3246
ROSA-SA-2023-2176
ROSA-SA-2024-2398
SUSE-SU-2023:2038-1
SUSE-SU-2023:2038-2
SUSE-SU-2023:2062-1
SUSE-SU-2023:2081-1
USN-6050-1
USN-6050-2
Found an issue in the description? Have something to add? Feel free to write us 👾