cve.bz

CVE-2023-25652 Path traversal

7.5 highEPSS 52%Fix available

High (7.5). EPSS 52% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
EPSS
52% (unchanged from 52% a week ago; 52% 30 days ago) estimated probability of exploitation activity in the next 30 days; 99th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: partial, assessed 2024-01-05. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-22 Improper Limitation of a Pathname to a Restricted Directory (Path traversal)
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2023-25652 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2023-25652?via=ask-ai-copy and https://cve.bz/cve/CVE-2023-25652?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2023-25652 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
git-scm:gitbefore 2.30.9
git-scm:gitfrom 2.31.0 before 2.31.8
git-scm:gitfrom 2.32.0 before 2.32.7
git-scm:gitfrom 2.33.0 before 2.33.8
git-scm:gitfrom 2.34.0 before 2.34.8
git-scm:gitfrom 2.35.0 before 2.35.8
git-scm:gitfrom 2.36.0 before 2.36.6
git-scm:gitfrom 2.37.0 before 2.37.7
git-scm:gitfrom 2.38.0 before 2.38.5
git-scm:gitfrom 2.39.0 before 2.39.3
git-scm:git2.40.0
fedoraproject:fedora37
fedoraproject:fedora38

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian10git1:2.20.1-2+deb10u9DLA-3844-1
Debian11git1:2.30.2-1+deb11u3DLA-3867-1
Debian12git1:2.39.5-0+deb12u1DEBIAN-CVE-2023-25652 DSA-5769-1
Debian13, 14git1:2.40.1-1DEBIAN-CVE-2023-25652
Ubuntu18.04:LTSgit1:2.17.1-1ubuntu0.18UBUNTU-CVE-2023-25652 USN-6050-1
Ubuntu20.04:LTSgit1:2.25.1-1ubuntu3.11UBUNTU-CVE-2023-25652 USN-6050-1
Ubuntu22.04:LTSgit1:2.34.1-1ubuntu1.9UBUNTU-CVE-2023-25652 USN-6050-1
UbuntuPro:16.04:LTSgit1:2.7.4-0ubuntu1.10+esm7UBUNTU-CVE-2023-25652 USN-6050-2
Red Hatenterprise_linux:7::client, enterprise_linux:7::computenode, enterprise_linux:7::server and 1 moregit, gitk, git-hg and 16 more0:1.8.3.1-25.el7_9RHSA-2023:3263
Red Hatenterprise_linux:8::appstreamgit, gitk, gitweb and 17 more0:2.39.3-1.el8_8RHSA-2023:3246
Red Hatenterprise_linux:9::appstreamgit, gitk, gitweb and 17 more0:2.39.3-1.el9_2RHSA-2023:3245
Red Hatrhel_aus:8.2::appstreamgit, gitk, gitweb and 16 more0:2.18.4-4.el8_2RHSA-2023:3382
Red Hatrhel_e4s:8.1::appstreamgit, gitk, gitweb and 16 more0:2.18.4-3.el8_1RHSA-2023:3192
Red Hatrhel_eus:8.4::appstreamgit, gitk, gitweb and 17 more0:2.27.0-4.el8_4RHSA-2023:3243
Red Hatrhel_eus:8.6::appstreamgit, gitk, gitweb and 17 more0:2.31.1-4.el8_6RHSA-2023:3247
Red Hatrhel_eus:9.0::appstreamgit, gitk, gitweb and 17 more0:2.31.1-5.el9_0RHSA-2023:3248
Red Hatrhel_software_collections:3::el7rh-git227-git, rh-git227-gitk, rh-git227-git-p4 and 15 more0:2.27.0-6.el7RHSA-2023:3280
SUSEEnterprise Storage 7, Linux Enterprise High Performance Computing 15 SP1-LTSS, Linux Enterprise High Performance Computing 15 SP2-LTSS and 4 moregit2.26.2-150000.50.1SUSE-SU-2023:2081-1
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-ESPOS, Linux Enterprise High Performance Computing 15 SP3-LTSS and 4 moregit2.35.3-150300.10.27.1SUSE-SU-2023:2038-2
SUSEHPE Helion OpenStack 8, Linux Enterprise Server 12 SP2-BCL, Linux Enterprise Server 12 SP4-ESPOS and 8 moregit2.26.2-27.69.1SUSE-SU-2023:2062-1
SUSELinux Enterprise Module for Basesystem 15 SP4, Linux Enterprise Module for Development Tools 15 SP4, Linux Enterprise Real Time 15 SP3git2.35.3-150300.10.27.1SUSE-SU-2023:2038-1
openSUSELeap 15.4git2.35.3-150300.10.27.1SUSE-SU-2023:2038-1
openSUSETumbleweedgit2.40.1-1.1openSUSE-SU-2024:12889-1
AlmaLinux8git, gitk, gitweb and 12 more2.39.3-1.el8_8ALSA-2023:3246
AlmaLinux9git, gitk, gitweb and 12 more2.39.3-1.el9_2ALSA-2023:3245
Rocky Linux8git0:2.39.3-1.el8_8RLSA-2023:3246
Alpinev3.14git2.32.7-r0ALPINE-CVE-2023-25652
Alpinev3.15git2.34.8-r0ALPINE-CVE-2023-25652
Alpinev3.16git2.36.6-r0ALPINE-CVE-2023-25652
Alpinev3.17git2.38.5-r0ALPINE-CVE-2023-25652
Alpinev3.18, v3.19, v3.20 and 4 moregit2.40.1-r0ALPINE-CVE-2023-25652

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Important.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 7git-0:1.8.3.1-25.el7_9Fixed 2023-05-23RHSA-2023:3263
Red Hat Enterprise Linux 8git-0:2.39.3-1.el8_8Fixed 2023-05-22RHSA-2023:3246
Red Hat Enterprise Linux 8.1 Update Services for SAP Solutionsgit-0:2.18.4-3.el8_1Fixed 2023-05-17RHSA-2023:3192
Red Hat Enterprise Linux 8.2 Advanced Update Supportgit-0:2.18.4-4.el8_2Fixed 2023-05-31RHSA-2023:3382
Red Hat Enterprise Linux 8.4 Extended Update Supportgit-0:2.27.0-4.el8_4Fixed 2023-05-22RHSA-2023:3243
Red Hat Enterprise Linux 8.6 Extended Update Supportgit-0:2.31.1-4.el8_6Fixed 2023-05-22RHSA-2023:3247
Red Hat Enterprise Linux 9git-0:2.39.3-1.el9_2Fixed 2023-05-22RHSA-2023:3245
Red Hat Enterprise Linux 9.0 Extended Update Supportgit-0:2.31.1-5.el9_0Fixed 2023-05-22RHSA-2023:3248
Red Hat Software Collections for Red Hat Enterprise Linux 7rh-git227-git-0:2.27.0-6.el7Fixed 2023-05-23RHSA-2023:3280
Red Hat Enterprise Linux 6gitOut of support scope

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2023-25652.

ICS advisories (CISA)

AdvisoryTitlePublishedSectorsAffectedFixed
ICSA-25-105-08ABB M2M Gateway2025-04-07EnergyABB M2M Gateway ARM600, firmware versions = 4.1.2 <= 5.0.3, ABB M2M Gateway SW, software versions = 5.0.1 <= 5.0.3none listed

From CISA's ICS advisories (CSAF), provided under CISA's notification. Only the facts are shown; each advisory is on CISA's page. Credits.

Attack patterns (CAPEC)

  • CAPEC-64 Using Slashes and URL Encoding Combined to Bypass Validation Logic Likelihood: High · Severity: High
  • CAPEC-76 Manipulating Web Input to File System Calls Likelihood: High · Severity: Very High
  • CAPEC-78 Using Escaped Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-79 Using Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-126 Path Traversal Likelihood: High · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON