PT-2023-3585
CVE-2023-25652
·
Published
2023-04-18
·
Updated
2026-09-30
Description by
CVSS 2.0
7.8
HighMetricsAV: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
Vendors
Affected products
Found an issue in the description? Have something to add? Feel free to write us 👾