Not a U.S. government website. NDD is an independent vulnerability database by Volerion and is not affiliated with or endorsed by NIST or NVD.
VOLERION
Volerion Security Research

NOT DEFERRED DATABASE

VULNERABILITIES

CVE-2023-25652 Details

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.

Metrics

References to Advisories, Solutions, and Tools

By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.

URLSource(s)Tag(s)
https://github.com/git/git/commit/18e2b1cfc80990719275d7b08e6e50f3e8cbc902 CVEPatch
https://github.com/git/git/commit/668f2d53613ac8fd373926ebe219f2c29112d93e CVEPatch
https://github.com/git/git/security/advisories/GHSA-2hvf-7c8p-28fx CVEVendor Advisory
https://lists.debian.org/debian-lts-announce/2024/06/msg00018.html CVE
https://lists.debian.org/debian-lts-announce/2024/09/msg00009.html CVE

see all 21 references

Weakness Enumeration

CWE-IDCWE NameSource
NVD-CWE-noinfoInsufficient Information to Classify Weakness[email protected]
CWE-22Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')[email protected]

Affected Products

ProductVersions
git-scm git
< 2.30.9
>= 2.31.0, < 2.31.8
>= 2.32.0, < 2.32.7
>= 2.33.0, < 2.33.8
>= 2.34.0, < 2.34.8

CPE

  • cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:*
  • cpe:2.3:a:git-scm:git:2.40.0:*:*:*:*:*:*:*

Remediation

  • No remediation found in references.
fedoraproject fedora
37
38

CPE

  • cpe:2.3:o:fedoraproject:fedora:37:*:*:*:*:*:*:*
  • cpe:2.3:o:fedoraproject:fedora:38:*:*:*:*:*:*:*

Remediation

  • No remediation found in references.

Change History

13 change records found show changes


QUICK INFO

CVE Dictionary Entry:
CVE-2023-25652
NVD Published Date:
Apr 25, 2023
NVD Last Modified:
Jun 17, 2026
Source:
[email protected]
CVE-2023-25652 Details - Not Deferred