High severity · published Apr 25, 2023
CVE-2023-25652
Git is a revision control system
7.5
CVSS
51.9%
EPSS
No
On KEV
Description
Git is a revision control system. Prior to versions 2.30.9, 2.31.8, 2.32.7, 2.33.8, 2.34.8, 2.35.8, 2.36.6, 2.37.7, 2.38.5, 2.39.3, and 2.40.1, by feeding specially crafted input to `git apply --reject`, a path outside the working tree can be overwritten with partially controlled contents (corresponding to the rejected hunk(s) from the given patch). A fix is available in versions 2.30.9, 2.31.8, 2.32.7, 2.33.8, 2.34.8, 2.35.8, 2.36.6, 2.37.7, 2.38.5, 2.39.3, and 2.40.1. 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; avoid applying one that create a conflict where a link corresponding to the `*.rej` file exists.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Confidentiality
None
Integrity
High
Availability
None
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)51.9% · higher than 99% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
FE
Fedora · Fedoraproject
37; 38 · source: NVD
GI
Git · Git-scm
before 2.30.9; 2.31.0 before 2.31.8; 2.32.0 before 2.32.7; 2.33.0 before 2.33.8; 2.34.0 before 2.34.8; 2.35.0 before 2.35.8; +5 more · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2023-25652
CVE.org
https://www.cve.org/CVERecord?id=CVE-2023-25652
Mailing List
http://www.openwall.com/lists/oss-security/2023/04/25/2
Patch
https://github.com/git/git/commit/18e2b1cfc80990719275d7b08e6e50f3e8cbc902
Patch
https://github.com/git/git/commit/668f2d53613ac8fd373926ebe219f2c29112d93e
Vendor Advisory
https://github.com/git/git/security/advisories/GHSA-2hvf-7c8p-28fx
lists.debian.org
https://lists.debian.org/debian-lts-announce/2024/06/msg00018.html
lists.fedoraproject.org
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/BSXOGVVBJLYX26IAYX6PJSYQB36BREWH/
More from Fedora
10.0
CVE-2021-44228
Apache Log4j2 JNDI features do not protect against attacker controlled LDAP and other JNDI related endpoints
10.0
CVE-2015-3306
ProFTPD Improper Access Control Vulnerability
9.8
CVE-2024-4577
Argument Injection in PHP-CGI
9.8
CVE-2021-44026
Roundcube Webmail SQL Injection Vulnerability
9.8
CVE-2021-42013
Path Traversal and Remote Code Execution in Apache HTTP Server 2.4.49 and 2.4.50 (incomplete fix of CVE-2021-41773)
