CVE-2023-25652 in the critical feed json
"git apply --reject" partially-controlled arbitrary file write
published 2023-04-25 3 y ago modified 2026-06-17 4 mo ago also EUVD-2023-29591
- cvss
- 7.5
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 51.9%
- EPSS 51.9% chance of exploitation in 30 days, percentile 98%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- git-scm git 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
- git Debian 12 1:2.39.5-0+deb12u1
- git Debian 14, Debian 13 1:2.40.1-1
debian advisories DEBIAN-CVE-2023-25652
- git Ubuntu 18.04 LTS 1:2.17.1-1ubuntu0.18
- git Ubuntu 20.04 LTS 1:2.25.1-1ubuntu3.11
- git Ubuntu 22.04 LTS 1:2.34.1-1ubuntu1.9
- git Ubuntu Pro 16.04 LTS 1:2.7.4-0ubuntu1.10+esm7
ubuntu advisories UBUNTU-CVE-2023-25652
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- git RHEL 9 2.39.3-1.el9_2
- gitk RHEL 9 2.39.3-1.el9_2
- gitweb RHEL 9 2.39.3-1.el9_2
- git-all RHEL 9 2.39.3-1.el9_2
- git-gui RHEL 9 2.39.3-1.el9_2
- git-svn RHEL 9 2.39.3-1.el9_2
- git-core RHEL 9 2.39.3-1.el9_2
- perl-Git RHEL 9 2.39.3-1.el9_2
red hat advisories RHSA-2023:3245RHSA-2023:3246RHSA-2023:3243RHSA-2023:3192RHSA-2023:3280RHSA-2023:3263
- git SLE Real Time 15 SP3, SLE Module for Development Tools 15 SP4, SLE Module for Basesystem 15 SP4 +8 more 2.35.3-150300.10.27.1
- git SLES for SAP 15 SP2, SLES for SAP 15 SP1, SLES 15 SP2-LTSS +4 more 2.26.2-150000.50.1
- git SLES for SAP 12 SP5, SLES for SAP 12 SP4, SLES 12 SP5 +8 more 2.26.2-27.69.1
suse advisories SUSE-SU-2023:2038-2SUSE-SU-2023:2081-1SUSE-SU-2023:2062-1SUSE-SU-2023:2038-1
- git openSUSE Tumbleweed 2.40.1-1.1
opensuse advisories openSUSE-SU-2024:12889-1
- git AlmaLinux 9 2.39.3-1.el9_2
- gitk AlmaLinux 9 2.39.3-1.el9_2
- gitweb AlmaLinux 9 2.39.3-1.el9_2
- git-all AlmaLinux 9 2.39.3-1.el9_2
- git-gui AlmaLinux 9 2.39.3-1.el9_2
- git-svn AlmaLinux 9 2.39.3-1.el9_2
- git-core AlmaLinux 9 2.39.3-1.el9_2
- perl-Git AlmaLinux 9 2.39.3-1.el9_2
almalinux advisories ALSA-2023:3245ALSA-2023:3246
- git Rocky Linux 8 2.39.3-1.el8_8
rocky linux advisories RLSA-2023:3246
- git Alpine 3.14 2.32.7-r0
- git Alpine 3.15 2.34.8-r0
- git Alpine 3.16 2.36.6-r0
- git Alpine 3.17 2.38.5-r0
- git Alpine 3.24, Alpine 3.23, Alpine 3.22 +4 more 2.40.1-r0
alpine advisories ALPINE-CVE-2023-25652
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- github.com/git/git@18e2b1c commit
- github.com/git/git@668f2d5 commit
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2023-25652 updated cvss 7.5
git: by feeding specially crafted input to `git apply --reject`, a path outside the working tree can be overwritten with partially controlled contents
-
Red Hat Enterprise Linux 6 git, gitk, gitweb, git-all, git-cvs, git-gui, +6 moreaffected: no fix planned “Out of support scope”
-
Red Hat Enterprise Linux AppStream (v. 8) git 2.39.3-1.el8_8, gitk 2.39.3-1.el8_8, gitweb 2.39.3-1.el8_8, git-all 2.39.3-1.el8_8, git-gui 2.39.3-1.el8_8, git-svn 2.39.3-1.el8_8, +8 morefixed: vendor fix RHSA-2023:3246
-
Red Hat Enterprise Linux AppStream (v. 9) git 2.39.3-1.el9_2, gitk 2.39.3-1.el9_2, gitweb 2.39.3-1.el9_2, git-all 2.39.3-1.el9_2, git-gui 2.39.3-1.el9_2, git-svn 2.39.3-1.el9_2, +8 morefixed: vendor fix RHSA-2023:3245
-
Red Hat Enterprise Linux AppStream AUS (v. 8.2) git 2.18.4-4.el8_2, gitk 2.18.4-4.el8_2, gitweb 2.18.4-4.el8_2, git-all 2.18.4-4.el8_2, git-gui 2.18.4-4.el8_2, git-svn 2.18.4-4.el8_2, +7 morefixed: vendor fix RHSA-2023:3382
-
Red Hat Enterprise Linux AppStream E4S (v. 8.1) git 2.18.4-3.el8_1, gitk 2.18.4-3.el8_1, gitweb 2.18.4-3.el8_1, git-all 2.18.4-3.el8_1, git-gui 2.18.4-3.el8_1, git-svn 2.18.4-3.el8_1, +7 morefixed: vendor fix RHSA-2023:3192
-
Red Hat Enterprise Linux AppStream EUS (v.8.4) git 2.27.0-4.el8_4, gitk 2.27.0-4.el8_4, gitweb 2.27.0-4.el8_4, git-all 2.27.0-4.el8_4, git-gui 2.27.0-4.el8_4, git-svn 2.27.0-4.el8_4, +8 morefixed: vendor fix RHSA-2023:3243
-
Red Hat Enterprise Linux AppStream EUS (v.8.6) git 2.31.1-4.el8_6, gitk 2.31.1-4.el8_6, gitweb 2.31.1-4.el8_6, git-all 2.31.1-4.el8_6, git-gui 2.31.1-4.el8_6, git-svn 2.31.1-4.el8_6, +8 morefixed: vendor fix RHSA-2023:3247
-
Red Hat Enterprise Linux AppStream EUS (v.9.0) git 2.31.1-5.el9_0, gitk 2.31.1-5.el9_0, gitweb 2.31.1-5.el9_0, git-all 2.31.1-5.el9_0, git-gui 2.31.1-5.el9_0, git-svn 2.31.1-5.el9_0, +8 morefixed: vendor fix RHSA-2023:3248
show 2 moreshow fewer
-
Red Hat Enterprise Linux Client Optional (v. 7) git 1.8.3.1-25.el7_9, gitk 1.8.3.1-25.el7_9, git-hg 1.8.3.1-25.el7_9, git-p4 1.8.3.1-25.el7_9, gitweb 1.8.3.1-25.el7_9, git-all 1.8.3.1-25.el7_9, +12 more Red Hat Enterprise Linux ComputeNode Optional (v. 7) git 1.8.3.1-25.el7_9, gitk 1.8.3.1-25.el7_9, git-hg 1.8.3.1-25.el7_9, git-p4 1.8.3.1-25.el7_9, gitweb 1.8.3.1-25.el7_9, git-all 1.8.3.1-25.el7_9, +12 more Red Hat Enterprise Linux Server (v. 7) git 1.8.3.1-25.el7_9, perl-Git 1.8.3.1-25.el7_9 Red Hat Enterprise Linux Server Optional (v. 7) gitk 1.8.3.1-25.el7_9, git-hg 1.8.3.1-25.el7_9, git-p4 1.8.3.1-25.el7_9, gitweb 1.8.3.1-25.el7_9, git-all 1.8.3.1-25.el7_9, git-bzr 1.8.3.1-25.el7_9, +10 more Red Hat Enterprise Linux Workstation (v. 7) git 1.8.3.1-25.el7_9, perl-Git 1.8.3.1-25.el7_9 Red Hat Enterprise Linux Workstation Optional (v. 7) gitk 1.8.3.1-25.el7_9, git-hg 1.8.3.1-25.el7_9, git-p4 1.8.3.1-25.el7_9, gitweb 1.8.3.1-25.el7_9, git-all 1.8.3.1-25.el7_9, git-bzr 1.8.3.1-25.el7_9, +10 morefixed: vendor fix RHSA-2023:3263
-
Red Hat Software Collections for RHEL Workstation(v. 7) rh-git227-git 2.27.0-6.el7, rh-git227-gitk 2.27.0-6.el7, rh-git227-git-p4 2.27.0-6.el7, rh-git227-gitweb 2.27.0-6.el7, rh-git227-git-all 2.27.0-6.el7, rh-git227-git-cvs 2.27.0-6.el7, +10 more Red Hat Software Collections for RHEL(v. 7) rh-git227-git 2.27.0-6.el7, rh-git227-gitk 2.27.0-6.el7, rh-git227-git-p4 2.27.0-6.el7, rh-git227-gitweb 2.27.0-6.el7, rh-git227-git-all 2.27.0-6.el7, rh-git227-git-cvs 2.27.0-6.el7, +10 morefixed: vendor fix RHSA-2023:3280
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
cisa ICSA-25-105-08 updated cvss 7.5
ABB M2M Gateway
-
ABB M2M Gateway >=4.1.2, <=5.0.3, >=5.0.1, <=5.0.3affected: mitigation
Facts from CISA's republication of the vendor's own advisory (CSAF); the linked advisory is the authoritative source. CISA notification · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- yes
- Technical impact
- partial
- Assessed
- 2 y ago
Exploit prediction
51.88% chance of exploitation in the next 30 days, higher than 98% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| NVD | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
Affected products
- git git
Classification
- Weakness
-
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory
References
-
github.com
/git/git/commit/18e2b1cfc80990719275d7b08e6e50f3e8cbc902
patch
-
github.com
/git/git/commit/668f2d53613ac8fd373926ebe219f2c29112d93e
patch
-
github.com
/git/git/security/advisories/GHSA-2hvf-7c8p-28fx
vendor-advisory
-
openwall.com
/lists/oss-security/2023/04/25/2
mailing-list, third-party-advisory
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/PI7FZ4NNR5S5J5K6AMVQBH2JFP6NE4L7/
mailing-list, third-party-advisory
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/YFZWGQKB6MM5MNF2DLFTD7KS2KWPICKL/
mailing-list, third-party-advisory
- lists.fedoraproject.org /archives/list/package-announce@lists.fedoraproject.org/message/RKOXOAZ42HLXHXTW6JZI4L5DAIYDTYCU/
- lists.fedoraproject.org /archives/list/package-announce@lists.fedoraproject.org/message/BSXOGVVBJLYX26IAYX6PJSYQB36BREWH/
- security.gentoo.org /glsa/202312-15
- lists.debian.org /debian-lts-announce/2024/06/msg00018.html
- lists.debian.org /debian-lts-announce/2024/09/msg00009.html
Sources
- CVE List CVE-2023-25652
- NVD CVE-2023-25652
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.