Skip to content
Emerging threatsHigh

CVE-2023-25652Git Path Traversal

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…

Published Apr 25, 2023 · Updated Nov 5, 2026 · Also known as ALPINE-CVE-2023-25652, CGA-5h2q-xgq9-whpr, CGA-gw72-gfp2-qq6h, CLEANSTART-2026-CG61867, CLSA-2023-1683814164, CLSA-2023-1683814846, CLSA-2023-1683815086, CLSA-2023-1683815235, CLSA-2023-1683815557, DEBIAN-CVE-2023-25652, DSA-5769-1, GHSA-2hvf-7c8p-28fx, MGASA-2023-0163, OESA-2023-1269, SUSE-SU-2023:2038-1, SUSE-SU-2023:2038-2, SUSE-SU-2023:2062-1, SUSE-SU-2023:2081-1, TR-23-0255, UBUNTU-CVE-2023-25652, USN-6050-1, USN-6050-2, openSUSE-SU-2024:12889-1

Key Facts

Patch immediately
  • CVE-2023-25652 is a high-severity vulnerability (CVSS 7.5 v3.1) affecting Git (Git-Scm), Fedora (Fedoraproject), rootio-git and 22 more products.
  • It is not listed in any known-exploited vulnerabilities catalog. No public exploit code is known.
  • EPSS estimates a 52% probability of exploitation in the next 30 days.
  • Fixed versions are available, including emacs-git 1.7.1-10.el6_10.tuxcare.els2, emacs-git 1.8.3.1-25.el7_9, emacs-git-el 1.7.1-10.el6_10.tuxcare.els2.
  • Brandefense priority: patch immediately, because it is very likely to be exploited soon.

Scores

CVSS v3.1

7.5

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

EPSS (30-day exploit likelihood)

52%

Higher than 98.9% of all scored CVEs

Exploit maturity

None known

ATLAS score

28/100

Publication score, see How it works

Exploitation Verdict

KEV listed

Not listed

Federal due date

None

No federal due date

Ransomware use

Not reported

Attributed actors

None named

Exploit & Defence Guidance

Exploit maturity

None known

Public exploit code

0

Proof-of-concept links

In-the-wild evidence

0

Reports of active use

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.

Affected Products

527 affected entries in total
ProductAffected versionsFixed in
GitGit-Scm2.40.0, < 2.30.92.30.9
FedoraFedoraproject37, 38n/a
rootio-gitrootioSee advisory1:2.30.2-1+deb11u3
git-alltuxcareSee advisory1:2.7.4-0ubuntu1.10+tuxcare.els3
git-archtuxcareSee advisory1:2.7.4-0ubuntu1.10+tuxcare.els3
20 more affected products in the full CVE brief

Patched Releases

emacs-git

1.7.1-10.el6_10.tuxcare.els2, 1.8.3.1-25.el7_9

emacs-git-el

1.7.1-10.el6_10.tuxcare.els2, 1.8.3.1-25.el7_9

Git

0:1.8.3.1-25.el7_9, 0:2.18.4-3.el8_1, 0:2.39.3-1.el9_2, 1:2.17.1-1ubuntu0.18, 1:2.20.1-2+deb10u9, 1:2.25.1-1ubuntu3.11, 1:2.30.2-1+deb11u3, 1:2.34.1-1ubuntu1.9, 1:2.39.5-0+deb12u1, 1:2.40.1-1, 1:2.7.4-0ubuntu1.10+esm7, 1:2.7.4-0ubuntu1.10+tuxcare.els3, 1.7.1-10.el6_10.tuxcare.els2, 1.8.3.1-25.el7_9, 2.26.2-150000.50.1, 2.26.2-27.69.1, 2.27.0-1.el8.tuxcare.els2, 2.27.0-14.oe1, 2.27.0-17.oe1, 2.30.9-1.mga8, 2.32.7-r0, 2.33.0-11.oe2203sp1, 2.34.8-r0, 2.35.3-150300.10.27.1, 2.36.6-r0, 2.38.5-r0, 2.39.3-1.el8_8, 2.39.3-1.el9_2, 2.40.1-1.1, 2.40.1-1.amzn2.0.1, 2.40.1-1.amzn2023.0.1, 2.40.1-r0, 2.43.7-1.ph5, 2.30.9

git-all

1:2.7.4-0ubuntu1.10+tuxcare.els3, 1.7.1-10.el6_10.tuxcare.els2, 1.8.3.1-25.el7_9, 2.27.0-1.el8.tuxcare.els2, 2.39.3-1.el8_8, 2.39.3-1.el9_2, 2.40.1-1.amzn2.0.1, 2.40.1-1.amzn2023.0.1

git-arch

1:2.7.4-0ubuntu1.10+tuxcare.els3, 2.26.2-150000.50.1, 2.26.2-27.69.1, 2.35.3-150300.10.27.1, 2.40.1-1.1

git-bzr

1.8.3.1-25.el7_9

git-core

1:2.7.4-0ubuntu1.10+tuxcare.els3, 2.26.2-150000.50.1, 2.26.2-27.69.1, 2.27.0-1.el8.tuxcare.els2, 2.35.3-150300.10.27.1, 2.39.3-1.el8_8, 2.39.3-1.el9_2, 2.40.1-1.1, 2.40.1-1.amzn2.0.1, 2.40.1-1.amzn2023.0.1

git-core-doc

2.27.0-1.el8.tuxcare.els2, 2.39.3-1.el8_8, 2.39.3-1.el9_2, 2.40.1-1.amzn2.0.1, 2.40.1-1.amzn2023.0.1

git-credential-gnome-keyring

2.35.3-150300.10.27.1, 2.40.1-1.1

git-credential-libsecret

2.27.0-1.el8.tuxcare.els2, 2.35.3-150300.10.27.1, 2.39.3-1.el8_8, 2.39.3-1.el9_2, 2.40.1-1.1, 2.40.1-1.amzn2.0.1, 2.40.1-1.amzn2023.0.1

git-cvs

1:2.7.4-0ubuntu1.10+tuxcare.els3, 1.7.1-10.el6_10.tuxcare.els2, 1.8.3.1-25.el7_9, 2.26.2-150000.50.1, 2.26.2-27.69.1, 2.35.3-150300.10.27.1, 2.40.1-1.1, 2.40.1-1.amzn2.0.1, 2.40.1-1.amzn2023.0.1

git-daemon

1.7.1-10.el6_10.tuxcare.els2, 1.8.3.1-25.el7_9, 2.26.2-150000.50.1, 2.26.2-27.69.1, 2.27.0-1.el8.tuxcare.els2, 2.35.3-150300.10.27.1, 2.39.3-1.el8_8, 2.39.3-1.el9_2, 2.40.1-1.1, 2.40.1-1.amzn2.0.1, 2.40.1-1.amzn2023.0.1

git-daemon-run

1:2.7.4-0ubuntu1.10+tuxcare.els3

git-daemon-sysvinit

1:2.7.4-0ubuntu1.10+tuxcare.els3

git-doc

1:2.7.4-0ubuntu1.10+tuxcare.els3, 2.26.2-150000.50.1, 2.26.2-27.69.1, 2.35.3-150300.10.27.1, 2.40.1-1.1

git-el

1:2.7.4-0ubuntu1.10+tuxcare.els3

git-email

1:2.7.4-0ubuntu1.10+tuxcare.els3, 1.7.1-10.el6_10.tuxcare.els2, 1.8.3.1-25.el7_9, 2.26.2-150000.50.1, 2.26.2-27.69.1, 2.27.0-1.el8.tuxcare.els2, 2.35.3-150300.10.27.1, 2.39.3-1.el8_8, 2.39.3-1.el9_2, 2.40.1-1.1, 2.40.1-1.amzn2.0.1, 2.40.1-1.amzn2023.0.1

git-extras

2.43.7-1.ph5

git-gnome-keyring

1.8.3.1-25.el7_9

git-gui

1:2.7.4-0ubuntu1.10+tuxcare.els3, 1.7.1-10.el6_10.tuxcare.els2, 1.8.3.1-25.el7_9, 2.26.2-150000.50.1, 2.26.2-27.69.1, 2.27.0-1.el8.tuxcare.els2, 2.35.3-150300.10.27.1, 2.39.3-1.el8_8, 2.39.3-1.el9_2, 2.40.1-1.1, 2.40.1-1.amzn2.0.1, 2.40.1-1.amzn2023.0.1

git-hg

1.8.3.1-25.el7_9

git-instaweb

1.8.3.1-25.el7_9, 2.27.0-1.el8.tuxcare.els2, 2.39.3-1.el8_8, 2.39.3-1.el9_2, 2.40.1-1.amzn2.0.1, 2.40.1-1.amzn2023.0.1

git-lang

2.43.7-1.ph5

git-man

1:2.7.4-0ubuntu1.10+tuxcare.els3

git-mediawiki

1:2.7.4-0ubuntu1.10+tuxcare.els3

Timeline

  1. Publicly disclosed

    Apr 25, 2023

  2. Last updated

    Nov 5, 2026

Weakness Type

  • CWE-22 Improper Limitation of a Pathname to a Restricted Directory

FAQ

Common Questions.

Is CVE-2023-25652 On Your Attack Surface?

Brandefense matches it against the products discovered on your perimeter and opens a finding the day a CVE like this is listed.

Request A Demo

Figures as of Dec 4, 2026. Compiled by Brandefense technologies from public vulnerability catalogs; scoring as described in How it works.

To report an error, contact Brandefense.