CVE-2023-25652: high-severity vulnerability in git
"git apply --reject" partially-controlled arbitrary file write
Published · Updated
E-mail alert when it lands in KEV, gets a public PoC or its score goes up.
No sign of exploitation. No public exploitation artifact known so far.
Git's `git apply --reject` command can be tricked into writing files outside the intended project folder, potentially overwriting important system files. This happens when processing maliciously crafted patches, allowing attackers to damage or compromise systems.
A path traversal vulnerability (CWE-22) in Git versions prior to 2.30.9 through 2.40.1 allows an attacker to overwrite arbitrary files outside the repository working tree via specially crafted patches supplied to `git apply --reject`. The vulnerability is triggered during rejection file generation; exploitation requires the victim to apply an untrusted patch using the `--reject` flag.
In the same product, most dangerous first.