Skip to content
Fencer Intel
high 7.0

CVE-2023-29007 json

Arbitrary configuration injection via `git submodule deinit`

published 3y ago modified 15d ago also EUVD-2023-32622 , GHSA-v48j-4xgg-4844

Unreviewed: the maintainers' own advisory

Published by the maintainers on their GitHub repository git/git. GitHub has not reviewed it into the GitHub Advisory Database, so the affected packages and versions are the maintainers' word. Read the full advisory on GitHub.

cvss
7.0
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
5.6%
EPSS 5.6% chance of exploitation in 30 days, percentile 93%
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, a specially crafted `.gitmodules` file with submodule URLs that are longer than 1024 characters can used to exploit a bug in `config.c::git_config_copy_or_rename_section_in_file()`. This bug can be used to inject arbitrary configuration into a user's `$GIT_DIR/config` when attempting to remove the configuration section associated with that submodule. When the attacker injects configuration values which specify executables to run (such as `core.pager`, `core.editor`, `core.sshCommand`, etc.) this can lead to a remote code execution. A fix 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 running `git submodule deinit` on untrusted repositories or without prior inspection of any submodule sections in `$GIT_DIR/config`.

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.5, 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-29007

  • 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-29007

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-29007

Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

Is CVE-2023-29007 in your stack? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.

Check with Fencer

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-29007 updated cvss 7.8

git: arbitrary configuration injection when renaming or deleting a section from a configuration file

  • Red Hat Enterprise Linux 6 git, gitk, gitweb, git-all, git-cvs, git-gui, +6 more
    affected: 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 more
    fixed: 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 more
    fixed: 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 more
    fixed: 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 more
    fixed: 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 more
    fixed: 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 more
    fixed: 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 more
    fixed: vendor fix RHSA-2023:3248
show 2 more
  • 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 more
    fixed: 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 more
    fixed: 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.3

ABB M2M Gateway

  • ABB M2M Gateway >=4.1.2, <=5.0.3, >=5.0.1, <=5.0.3
    affected: 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
no
Technical impact
total
Assessed
2y ago

Exploit prediction

5.61% chance of exploitation in the next 30 days, higher than 93% of all scored CVEs (FIRST EPSS, 2026-11-17).

CVSS scores

assigned by version score vector
CNA 3.1 7.0 CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
NVD 3.1 7.8 CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Affected products

  • git git

Classification

Weakness
  • CWE-74 Improper Neutralization of Special Elements in Output Used by a Downstream Component
Technology feeds

References

Sources

Fencer Intel 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.

The maintainers of git/git published their own advisory on GitHub. Reviewed sources take precedence over it.