CVE-2023-29007
published high CVSS 3.1 · 7.0Arbitrary configuration injection via `git submodule deinit`
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| git | — | 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 · >= 2.35.0, < 2.35.8 · >= 2.36.0, < 2.36.6 · >= 2.37.0, < 2.37.7 · >= 2.38.0, < 2.38.5 · >= 2.39.0, < 2.39.3 · >= 2.40.0, < 2.40.1 | Affected | Not stated | GitHub_M |
| Amazon Linux | AL2 | Release evaluationALAS2-2023-2072 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2023-180 | Fixed | Not stated | Amazon Linux assessment |
| AlmaLinux | 8 | git | Advisory build | 2.39.3-1.el8_8 | ALSA-2023:3246 |
| Alpine Linux | edge | git | Fixed | 2.40.1-r0 | Package fix record |
| Debian | bookworm | git | Advisory build | 1:2.39.5-0+deb12u1 | DSA-5769-1 |
| Oracle Linux | 7 | gitaarch64 | Advisory build | 0:1.8.3.1-25.el7_9 | ELSA-2023-3263 |
| Red Hat Enterprise Linux | RHEL-7 | gitppc64 | Advisory build | 1.8.3.1-25.el7_9 | RHSA-2023:3263 |
Show 95 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | SLE-12-SP2 | gitx86_64 | Advisory build | 2.26.2-27.69.1 | SUSE-SU-2023:2062-1 |
| Ubuntu | bionic | git | Advisory build | 1:2.17.1-1ubuntu0.18 | USN-6050-1 |
| AlmaLinux | 9 | git | Advisory build | 2.39.3-1.el9_2 | ALSA-2023:3245 |
| Alpine Linux | v3.14 | git | Fixed | 2.32.7-r0 | Package fix record |
| Alpine Linux | v3.15 | git | Fixed | 2.34.8-r0 | Package fix record |
| Alpine Linux | v3.16 | git | Fixed | 2.36.6-r0 | Package fix record |
| Alpine Linux | v3.17 | git | Fixed | 2.38.5-r0 | Package fix record |
| Alpine Linux | v3.18 | git | Fixed | 2.40.1-r0 | Package fix record |
| Alpine Linux | v3.19 | git | Fixed | 2.40.1-r0 | Package fix record |
| Alpine Linux | v3.20 | git | Fixed | 2.40.1-r0 | Package fix record |
| Alpine Linux | v3.21 | git | Fixed | 2.40.1-r0 | Package fix record |
| Alpine Linux | v3.22 | git | Fixed | 2.40.1-r0 | Package fix record |
| Alpine Linux | v3.23 | git | Fixed | 2.40.1-r0 | Package fix record |
| Alpine Linux | v3.24 | git | Fixed | 2.40.1-r0 | Package fix record |
| Debian | bullseye | git | Advisory build | 1:2.30.2-1+deb11u3 | DLA-3867-1 |
| Debian | buster | git | Advisory build | 1:2.20.1-2+deb10u9 | DLA-3844-1 |
| Oracle Linux | 7 | gitx86_64 | Advisory build | 0:1.8.3.1-25.el7_9 | ELSA-2023-3263 |
| Oracle Linux | 8 | gitaarch64 | Advisory build | 0:2.39.3-1.el8_8 | ELSA-2023-3246 |
| Oracle Linux | 8 | gitx86_64 | Advisory build | 0:2.39.3-1.el8_8 | ELSA-2023-3246 |
| Oracle Linux | 9 | gitaarch64 | Advisory build | 0:2.39.3-1.el9_2 | ELSA-2023-3245 |
| Oracle Linux | 9 | gitx86_64 | Advisory build | 0:2.39.3-1.el9_2 | ELSA-2023-3245 |
| Red Hat Enterprise Linux | RHEL-7 | gitppc64le | Advisory build | 1.8.3.1-25.el7_9 | RHSA-2023:3263 |
| Red Hat Enterprise Linux | RHEL-7 | gits390x | Advisory build | 1.8.3.1-25.el7_9 | RHSA-2023:3263 |
| Red Hat Enterprise Linux | RHEL-7 | gitsrc | Advisory build | 1.8.3.1-25.el7_9 | RHSA-2023:3263 |
| Red Hat Enterprise Linux | RHEL-7 | gitx86_64 | Advisory build | 1.8.3.1-25.el7_9 | RHSA-2023:3263 |
| Red Hat Enterprise Linux | RHEL-8 | gitaarch64 | Advisory build | 2.27.0-4.el8_4 | RHSA-2023:3243 |
| Red Hat Enterprise Linux | RHEL-8 | gitaarch64 | Advisory build | 2.31.1-4.el8_6 | RHSA-2023:3247 |
| Red Hat Enterprise Linux | RHEL-8 | gitaarch64 | Advisory build | 2.39.3-1.el8_8 | RHSA-2023:3246 |
| Red Hat Enterprise Linux | RHEL-8 | gitppc64le | Advisory build | 2.18.4-3.el8_1 | RHSA-2023:3192 |
| Red Hat Enterprise Linux | RHEL-8 | gitppc64le | Advisory build | 2.27.0-4.el8_4 | RHSA-2023:3243 |
| Red Hat Enterprise Linux | RHEL-8 | gitppc64le | Advisory build | 2.31.1-4.el8_6 | RHSA-2023:3247 |
| Red Hat Enterprise Linux | RHEL-8 | gitppc64le | Advisory build | 2.39.3-1.el8_8 | RHSA-2023:3246 |
| Red Hat Enterprise Linux | RHEL-8 | gits390x | Advisory build | 2.27.0-4.el8_4 | RHSA-2023:3243 |
| Red Hat Enterprise Linux | RHEL-8 | gits390x | Advisory build | 2.31.1-4.el8_6 | RHSA-2023:3247 |
| Red Hat Enterprise Linux | RHEL-8 | gits390x | Advisory build | 2.39.3-1.el8_8 | RHSA-2023:3246 |
| Red Hat Enterprise Linux | RHEL-8 | gitsrc | Advisory build | 2.18.4-3.el8_1 | RHSA-2023:3192 |
| Red Hat Enterprise Linux | RHEL-8 | gitsrc | Advisory build | 2.18.4-4.el8_2 | RHSA-2023:3382 |
| Red Hat Enterprise Linux | RHEL-8 | gitsrc | Advisory build | 2.27.0-4.el8_4 | RHSA-2023:3243 |
| Red Hat Enterprise Linux | RHEL-8 | gitsrc | Advisory build | 2.31.1-4.el8_6 | RHSA-2023:3247 |
| Red Hat Enterprise Linux | RHEL-8 | gitsrc | Advisory build | 2.39.3-1.el8_8 | RHSA-2023:3246 |
| Red Hat Enterprise Linux | RHEL-8 | gitx86_64 | Advisory build | 2.18.4-3.el8_1 | RHSA-2023:3192 |
| Red Hat Enterprise Linux | RHEL-8 | gitx86_64 | Advisory build | 2.18.4-4.el8_2 | RHSA-2023:3382 |
| Red Hat Enterprise Linux | RHEL-8 | gitx86_64 | Advisory build | 2.27.0-4.el8_4 | RHSA-2023:3243 |
| Red Hat Enterprise Linux | RHEL-8 | gitx86_64 | Advisory build | 2.31.1-4.el8_6 | RHSA-2023:3247 |
| Red Hat Enterprise Linux | RHEL-8 | gitx86_64 | Advisory build | 2.39.3-1.el8_8 | RHSA-2023:3246 |
| Red Hat Enterprise Linux | RHEL-9 | gitaarch64 | Advisory build | 2.31.1-5.el9_0 | RHSA-2023:3248 |
| Red Hat Enterprise Linux | RHEL-9 | gitaarch64 | Advisory build | 2.39.3-1.el9_2 | RHSA-2023:3245 |
| Red Hat Enterprise Linux | RHEL-9 | gitppc64le | Advisory build | 2.31.1-5.el9_0 | RHSA-2023:3248 |
| Red Hat Enterprise Linux | RHEL-9 | gitppc64le | Advisory build | 2.39.3-1.el9_2 | RHSA-2023:3245 |
| Red Hat Enterprise Linux | RHEL-9 | gits390x | Advisory build | 2.31.1-5.el9_0 | RHSA-2023:3248 |
| Red Hat Enterprise Linux | RHEL-9 | gits390x | Advisory build | 2.39.3-1.el9_2 | RHSA-2023:3245 |
| Red Hat Enterprise Linux | RHEL-9 | gitsrc | Advisory build | 2.31.1-5.el9_0 | RHSA-2023:3248 |
| Red Hat Enterprise Linux | RHEL-9 | gitsrc | Advisory build | 2.39.3-1.el9_2 | RHSA-2023:3245 |
| Red Hat Enterprise Linux | RHEL-9 | gitx86_64 | Advisory build | 2.31.1-5.el9_0 | RHSA-2023:3248 |
| Red Hat Enterprise Linux | RHEL-9 | gitx86_64 | Advisory build | 2.39.3-1.el9_2 | RHSA-2023:3245 |
| SUSE / openSUSE | SLE-12-SP4 | gitaarch64 | Advisory build | 2.26.2-27.69.1 | SUSE-SU-2023:2062-1 |
| SUSE / openSUSE | SLE-12-SP4 | gitppc64le | Advisory build | 2.26.2-27.69.1 | SUSE-SU-2023:2062-1 |
| SUSE / openSUSE | SLE-12-SP4 | gits390x | Advisory build | 2.26.2-27.69.1 | SUSE-SU-2023:2062-1 |
| SUSE / openSUSE | SLE-12-SP4 | gitx86_64 | Advisory build | 2.26.2-27.69.1 | SUSE-SU-2023:2062-1 |
| SUSE / openSUSE | SLE-12-SP5 | gitaarch64 | Advisory build | 2.26.2-27.69.1 | SUSE-SU-2023:2062-1 |
| SUSE / openSUSE | SLE-12-SP5 | gitppc64le | Advisory build | 2.26.2-27.69.1 | SUSE-SU-2023:2062-1 |
| SUSE / openSUSE | SLE-12-SP5 | gits390x | Advisory build | 2.26.2-27.69.1 | SUSE-SU-2023:2062-1 |
| SUSE / openSUSE | SLE-12-SP5 | gitx86_64 | Advisory build | 2.26.2-27.69.1 | SUSE-SU-2023:2062-1 |
| SUSE / openSUSE | SLE-15-SP1 | gitaarch64 | Advisory build | 2.26.2-150000.50.1 | SUSE-SU-2023:2081-1 |
| SUSE / openSUSE | SLE-15-SP1 | gitppc64le | Advisory build | 2.26.2-150000.50.1 | SUSE-SU-2023:2081-1 |
| SUSE / openSUSE | SLE-15-SP1 | gits390x | Advisory build | 2.26.2-150000.50.1 | SUSE-SU-2023:2081-1 |
| SUSE / openSUSE | SLE-15-SP1 | gitx86_64 | Advisory build | 2.26.2-150000.50.1 | SUSE-SU-2023:2081-1 |
| SUSE / openSUSE | SLE-15-SP2 | gitaarch64 | Advisory build | 2.26.2-150000.50.1 | SUSE-SU-2023:2081-1 |
| SUSE / openSUSE | SLE-15-SP2 | gitppc64le | Advisory build | 2.26.2-150000.50.1 | SUSE-SU-2023:2081-1 |
| SUSE / openSUSE | SLE-15-SP2 | gits390x | Advisory build | 2.26.2-150000.50.1 | SUSE-SU-2023:2081-1 |
| SUSE / openSUSE | SLE-15-SP2 | gitx86_64 | Advisory build | 2.26.2-150000.50.1 | SUSE-SU-2023:2081-1 |
| SUSE / openSUSE | SLE-15-SP3 | gitaarch64 | Advisory build | 2.35.3-150300.10.27.1 | SUSE-SU-2023:2038-2 |
| SUSE / openSUSE | SLE-15-SP3 | gitppc64le | Advisory build | 2.35.3-150300.10.27.1 | SUSE-SU-2023:2038-2 |
| SUSE / openSUSE | SLE-15-SP3 | gits390x | Advisory build | 2.35.3-150300.10.27.1 | SUSE-SU-2023:2038-2 |
| SUSE / openSUSE | SLE-15-SP3 | gitx86_64 | Advisory build | 2.35.3-150300.10.27.1 | SUSE-SU-2023:2038-1 |
| SUSE / openSUSE | SLE-15-SP3 | gitx86_64 | Advisory build | 2.35.3-150300.10.27.1 | SUSE-SU-2023:2038-2 |
| SUSE / openSUSE | SLE-15-SP4 | gitaarch64 | Advisory build | 2.35.3-150300.10.27.1 | SUSE-SU-2023:2038-1 |
| SUSE / openSUSE | SLE-15-SP4 | gitppc64le | Advisory build | 2.35.3-150300.10.27.1 | SUSE-SU-2023:2038-1 |
| SUSE / openSUSE | SLE-15-SP4 | gits390x | Advisory build | 2.35.3-150300.10.27.1 | SUSE-SU-2023:2038-1 |
| SUSE / openSUSE | SLE-15-SP4 | gitx86_64 | Advisory build | 2.35.3-150300.10.27.1 | SUSE-SU-2023:2038-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | gitaarch64 | Advisory build | 2.35.3-150300.10.27.1 | SUSE-SU-2023:2038-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | gitppc64le | Advisory build | 2.35.3-150300.10.27.1 | SUSE-SU-2023:2038-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | gits390x | Advisory build | 2.35.3-150300.10.27.1 | SUSE-SU-2023:2038-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | gitx86_64 | Advisory build | 2.35.3-150300.10.27.1 | SUSE-SU-2023:2038-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | gitaarch64 | Advisory build | 2.40.1-1.1 | OPENSUSE-SU-2024:12889-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | gitppc64le | Advisory build | 2.40.1-1.1 | OPENSUSE-SU-2024:12889-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | gits390x | Advisory build | 2.40.1-1.1 | OPENSUSE-SU-2024:12889-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | gitx86_64 | Advisory build | 2.40.1-1.1 | OPENSUSE-SU-2024:12889-1 |
| Ubuntu | focal | git | Advisory build | 1:2.25.1-1ubuntu3.11 | USN-6050-1 |
| Ubuntu | jammy | git | Advisory build | 1:2.34.1-1ubuntu1.9 | USN-6050-1 |
| Ubuntu | xenial | git | Advisory build | 1:2.7.4-0ubuntu1.10+esm7 | USN-6050-2 |
| AlmaLinux | 8 | git-all | Advisory build | 2.39.3-1.el8_8 | ALSA-2023:3246 |
| AlmaLinux | 8 | git-core | Advisory build | 2.39.3-1.el8_8 | ALSA-2023:3246 |
| AlmaLinux | 8 | git-core-doc | Advisory build | 2.39.3-1.el8_8 | ALSA-2023:3246 |
| AlmaLinux | 8 | git-credential-libsecret | Advisory build | 2.39.3-1.el8_8 | ALSA-2023:3246 |
Package entries are limited to the first 100 builds and 100 linked advisories.
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, 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`.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.0 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| git | git | < 2.30.9 (affected)>= 2.31.0, < 2.31.8 (affected)>= 2.32.0, < 2.32.7 (affected)>= 2.33.0, < 2.33.8 (affected)>= 2.34.0, < 2.34.8 (affected)>= 2.35.0, < 2.35.8 (affected)>= 2.36.0, < 2.36.6 (affected)>= 2.37.0, < 2.37.7 (affected)>= 2.38.0, < 2.38.5 (affected)>= 2.39.0, < 2.39.3 (affected)>= 2.40.0, < 2.40.1 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-74 CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')
References
9- https://github.com/git/git/blob/9ce9dea4e1c2419cca126d29fa7730baa078a11b/Documentation/RelNotes/2.30.9.txt
- https://github.com/git/git/commit/528290f8c61222433a8cf02fb7cfffa8438432b4
- https://github.com/git/git/security/advisories/GHSA-v48j-4xgg-4844
- https://lists.debian.org/debian-lts-announce/2024/06/msg00018.html
- https://lists.debian.org/debian-lts-announce/2024/09/msg00009.html
- https://lists.fedoraproject.org/archives/list/[email protected]/message/PI7FZ4NNR5S5J5K6AMVQBH2JFP6NE4L7/
- https://lists.fedoraproject.org/archives/list/[email protected]/message/RKOXOAZ42HLXHXTW6JZI4L5DAIYDTYCU/
- https://lists.fedoraproject.org/archives/list/[email protected]/message/YFZWGQKB6MM5MNF2DLFTD7KS2KWPICKL/
- https://security.gentoo.org/glsa/202312-15
Provider assertions
3GitHub_M · cna
Arbitrary configuration injection via `git submodule deinit`
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- d6f8c64b13c36ee63c6939f2569fd8792e2c53a2db4187c027ab9ef87735a0a2
- Ingested
- 02 Nov 2026, 22:39:30 UTC
- Source record
- Official CVE record