synced 8 MIN AGO
01 Record

CVE-2023-23946

Git's `git apply` overwriting paths outside the working tree

MediumPUBLISHEDCNA: GitHub_M
CNA base score6.2 CVSS v3.xCVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

02 Description

Git's `git apply` overwriting paths outside the working tree

03 Exploitation and scoring

Exploitation
Assessed, none found. CISA's assessment recorded neither public exploit code nor evidence of exploitation when it was made.
SSVC decision
  • ExploitationnoneCISA recorded no public exploit code and no evidence of exploitation.
  • AutomatableyesAn attacker can reliably automate reconnaissance through exploitation, so this scales.
  • Technical ImpactpartialSuccessful exploitation gives limited control of the vulnerable component.
CISA publishes the decision points, not a final SSVC decision. The decision also depends on mission and well-being impact, which is a property of your deployment rather than of the vulnerability.
EPSS probability
1.13% probability of exploitation activity in the next 30 days.
EPSS percentile
Equal to or higher than the score of 66.1% of scored records. A rank, not a probability.
NVD base score
7.5 (CVSS v3.x), scored by the NVD independently of the CNA.
NVD CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
NVD analysis status
Modified. NVD last modified this record on 2026-10-08.
Red Hat severity
Moderate. Red Hat's rating for its own products, not a CVSS rating.

Exploit-prediction scores from FIRST. Independent scoring and analysis status from the NVD. Vendor severity from Red Hat. Exploitation assessment and catalog membership from CISA.

04 Metadata

Published
2023-02-14 19:48Z3 YR AGO
Last updated
2026-10-08 21:14Z20 DAYS AGO
Reserved
2023-01-19
Assigning CNA
GitHub_M
Record state
PUBLISHED
Severity
Medium (CVSS 6.2)
CNA CVSS vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Weaknesses
  • CWE-22Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')Base
Data version
5.2
Document digest
8755b6ca9ad0a73a698c0449334061cd3940930eaa22a0fd62c04bcf6df5f5d7

05 Affected products

VendorProductVersionsPlatforms
gitgit>= 2.39.0, < 2.39.2, >= 2.38.0, < 2.38.4, >= 2.37.0, < 2.37.6, >= 2.36.0, < 2.36.5, >= 2.35.0, < 2.35.7, >= 2.34.0, < 2.34.7, >= 2.33.0, < 2.33.7, >= 2.32.0, < 2.32.6, >= 2.31.0, < 2.31.7, < 2.30.8—

06 References

07 Fixed in

AlmaLinux 8

  • git
    Fixed in 2.39.3-1.el8_8
  • git-all
    Fixed in 2.39.3-1.el8_8
  • git-core
    Fixed in 2.39.3-1.el8_8
  • git-core-doc
    Fixed in 2.39.3-1.el8_8
  • git-credential-libsecret
    Fixed in 2.39.3-1.el8_8
  • git-daemon
    Fixed in 2.39.3-1.el8_8
  • git-email
    Fixed in 2.39.3-1.el8_8
  • git-gui
    Fixed in 2.39.3-1.el8_8
  • git-instaweb
    Fixed in 2.39.3-1.el8_8
  • git-subtree
    Fixed in 2.39.3-1.el8_8
  • git-svn
    Fixed in 2.39.3-1.el8_8
  • gitk
    Fixed in 2.39.3-1.el8_8
  • gitweb
    Fixed in 2.39.3-1.el8_8
  • perl-Git
    Fixed in 2.39.3-1.el8_8
  • perl-Git-SVN
    Fixed in 2.39.3-1.el8_8

Source: AlmaLinux, AlmaLinux OS. Copyright (c) 2023 AlmaLinux OS. Licensed under MIT License. Received through OSV.dev. Reformatted by exploit.cc.

AlmaLinux 9

  • git
    Fixed in 2.39.3-1.el9_2
  • git-all
    Fixed in 2.39.3-1.el9_2
  • git-core
    Fixed in 2.39.3-1.el9_2
  • git-core-doc
    Fixed in 2.39.3-1.el9_2
  • git-credential-libsecret
    Fixed in 2.39.3-1.el9_2
  • git-daemon
    Fixed in 2.39.3-1.el9_2
  • git-email
    Fixed in 2.39.3-1.el9_2
  • git-gui
    Fixed in 2.39.3-1.el9_2
  • git-instaweb
    Fixed in 2.39.3-1.el9_2
  • git-subtree
    Fixed in 2.39.3-1.el9_2
  • git-svn
    Fixed in 2.39.3-1.el9_2
  • gitk
    Fixed in 2.39.3-1.el9_2
  • gitweb
    Fixed in 2.39.3-1.el9_2
  • perl-Git
    Fixed in 2.39.3-1.el9_2
  • perl-Git-SVN
    Fixed in 2.39.3-1.el9_2

Source: AlmaLinux, AlmaLinux OS. Copyright (c) 2023 AlmaLinux OS. Licensed under MIT License. Received through OSV.dev. Reformatted by exploit.cc.

CloudLinux 8

  • git
    Fixed in 2.39.3-1.el8_8
  • git-all
    Fixed in 2.39.3-1.el8_8
  • git-core
    Fixed in 2.39.3-1.el8_8
  • git-core-doc
    Fixed in 2.39.3-1.el8_8
  • git-credential-libsecret
    Fixed in 2.39.3-1.el8_8
  • git-daemon
    Fixed in 2.39.3-1.el8_8
  • git-email
    Fixed in 2.39.3-1.el8_8
  • git-gui
    Fixed in 2.39.3-1.el8_8
  • git-instaweb
    Fixed in 2.39.3-1.el8_8
  • git-subtree
    Fixed in 2.39.3-1.el8_8
  • git-svn
    Fixed in 2.39.3-1.el8_8
  • gitk
    Fixed in 2.39.3-1.el8_8
  • gitweb
    Fixed in 2.39.3-1.el8_8
  • perl-Git
    Fixed in 2.39.3-1.el8_8
  • perl-Git-SVN
    Fixed in 2.39.3-1.el8_8

Derived from AlmaLinux 8. Partial coverage: only packages taken from AlmaLinux 8 are listed.

Source: CloudLinux errata, CloudLinux Inc. Derived from: AlmaLinux, AlmaLinux OS. Copyright (c) 2023 AlmaLinux OS. Licensed under MIT License. Received through OSV.dev. Reformatted by exploit.cc.

CloudLinux 9

  • git
    Fixed in 2.39.3-1.el9_2
  • git-all
    Fixed in 2.39.3-1.el9_2
  • git-core
    Fixed in 2.39.3-1.el9_2
  • git-core-doc
    Fixed in 2.39.3-1.el9_2
  • git-credential-libsecret
    Fixed in 2.39.3-1.el9_2
  • git-daemon
    Fixed in 2.39.3-1.el9_2
  • git-email
    Fixed in 2.39.3-1.el9_2
  • git-gui
    Fixed in 2.39.3-1.el9_2
  • git-instaweb
    Fixed in 2.39.3-1.el9_2
  • git-subtree
    Fixed in 2.39.3-1.el9_2
  • git-svn
    Fixed in 2.39.3-1.el9_2
  • gitk
    Fixed in 2.39.3-1.el9_2
  • gitweb
    Fixed in 2.39.3-1.el9_2
  • perl-Git
    Fixed in 2.39.3-1.el9_2
  • perl-Git-SVN
    Fixed in 2.39.3-1.el9_2

Derived from AlmaLinux 9. Partial coverage: only packages taken from AlmaLinux 9 are listed.

Source: CloudLinux errata, CloudLinux Inc. Derived from: AlmaLinux, AlmaLinux OS. Copyright (c) 2023 AlmaLinux OS. Licensed under MIT License. Received through OSV.dev. Reformatted by exploit.cc.

Debian 12

  • git
    Fixed in 1:2.39.2-1

Source: Debian Security Tracker, the Debian security team. Received through OSV.dev. Reformatted by exploit.cc.

Debian 13

  • git
    Fixed in 1:2.39.2-1

Source: Debian Security Tracker, the Debian security team. Received through OSV.dev. Reformatted by exploit.cc.

Debian 14

  • git
    Fixed in 1:2.39.2-1

Source: Debian Security Tracker, the Debian security team. Received through OSV.dev. Reformatted by exploit.cc.

Ubuntu 18.04 LTS

  • git
    Fixed in 1:2.17.1-1ubuntu0.16

Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.

Ubuntu 20.04 LTS

  • git
    Fixed in 1:2.25.1-1ubuntu3.10

Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.

Ubuntu 22.04 LTS

  • git
    Fixed in 1:2.34.1-1ubuntu1.8

Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.

Ubuntu Pro 16.04 LTS

  • git
    Fixed in 1:2.7.4-0ubuntu1.10+esm5
    Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro

Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.

A release or ecosystem missing from this list has no record here. It may be unaffected or not covered by the source. Source notices and licences.