
CVE catalog
CVE-2023-29007
git: CVE-2023-29007
- Severity
- High · CVSS 7.8
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 5.61% · Oct 25, 2026
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`.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | git | sid | 1:2.55.0-1 | fixed |
| Debian | git | forky | 1:2.53.0-1 | fixed |
| Debian | git | trixie | 1:2.47.3-0+deb13u1 | fixed |
| Debian | git | bookworm | 1:2.39.5-0+deb12u3 | fixed |
| Debian | git | bookworm-security | 1:2.39.5-0+deb12u2 | fixed |
| Alpine | git | 3.14 | 2.32.7-r0 | fixed |
| Alpine | git | 3.15 | 2.34.8-r0 | fixed |
| Alpine | git | 3.16 | 2.36.6-r0 | fixed |
| Alpine | git | 3.17 | 2.38.5-r0 | fixed |
| Alpine | git | 3.18 | 2.40.1-r0 | fixed |
| Alpine | git | 3.19 | 2.40.1-r0 | fixed |
| Alpine | git | 3.20 | 2.40.1-r0 | fixed |
| Alpine | git | 3.21 | 2.40.1-r0 | fixed |
| Alpine | git | 3.22 | 2.40.1-r0 | fixed |
| Alpine | git | 3.23 | 2.40.1-r0 | fixed |
| Alpine | git | 3.24 | 2.40.1-r0 | fixed |
| Ubuntu | git | pro | 1:2.5.0-1 | vulnerable |
| Ubuntu | git | pro | 1:2.6.2-1 | vulnerable |
| Ubuntu | git | pro | 1:2.6.3-1 | vulnerable |
| Ubuntu | git | pro | 1:2.6.4-1 | vulnerable |
| Ubuntu | git | pro | 1:2.7.0~rc3-1 | vulnerable |
| Ubuntu | git | pro | 1:2.7.0-1 | vulnerable |
| Ubuntu | git | pro | 1:2.7.3-0ubuntu1 | vulnerable |
| Ubuntu | git | pro | 1:2.7.4-0ubuntu1 | vulnerable |
| Ubuntu | git | pro | 1:2.7.4-0ubuntu1.1 | vulnerable |
| Ubuntu | git | pro | 1:2.7.4-0ubuntu1.2 | vulnerable |
| Ubuntu | git | pro | 1:2.7.4-0ubuntu1.3 | vulnerable |
| Ubuntu | git | pro | 1:2.7.4-0ubuntu1.4 | vulnerable |
| Ubuntu | git | pro | 1:2.7.4-0ubuntu1.5 | vulnerable |
| Ubuntu | git | pro | 1:2.7.4-0ubuntu1.6 | vulnerable |
| Ubuntu | git | pro | 1:2.7.4-0ubuntu1.7 | vulnerable |
| Ubuntu | git | pro | 1:2.7.4-0ubuntu1.8 | vulnerable |
| Ubuntu | git | pro | 1:2.7.4-0ubuntu1.9 | vulnerable |
| Ubuntu | git | pro | 1:2.7.4-0ubuntu1.10 | vulnerable |
| Ubuntu | git | pro | 1:2.7.4-0ubuntu1.10+esm1 | vulnerable |
| Ubuntu | git | pro | 1:2.7.4-0ubuntu1.10+esm3 | vulnerable |
| Ubuntu | git | pro | 1:2.7.4-0ubuntu1.10+esm4 | vulnerable |
| Ubuntu | git | pro | 1:2.7.4-0ubuntu1.10+esm5 | vulnerable |
| Ubuntu | git | pro | 1:2.7.4-0ubuntu1.10+esm6 | vulnerable |
| Ubuntu | git | pro | 1:2.7.4-0ubuntu1.10+esm7 | fixed |
| Ubuntu | git | 18.04 | 1:2.14.1-1ubuntu4 | vulnerable |
| Ubuntu | git | 18.04 | 1:2.15.1-1ubuntu2 | vulnerable |
| Ubuntu | git | 18.04 | 1:2.17.0-1ubuntu1 | vulnerable |
| Ubuntu | git | 18.04 | 1:2.17.1-1ubuntu0.1 | vulnerable |
| Ubuntu | git | 18.04 | 1:2.17.1-1ubuntu0.3 | vulnerable |
| Ubuntu | git | 18.04 | 1:2.17.1-1ubuntu0.4 | vulnerable |
| Ubuntu | git | 18.04 | 1:2.17.1-1ubuntu0.5 | vulnerable |
| Ubuntu | git | 18.04 | 1:2.17.1-1ubuntu0.6 | vulnerable |
| Ubuntu | git | 18.04 | 1:2.17.1-1ubuntu0.7 | vulnerable |
| Ubuntu | git | 18.04 | 1:2.17.1-1ubuntu0.8 | vulnerable |
| Ubuntu | git | 18.04 | 1:2.17.1-1ubuntu0.9 | vulnerable |
| Ubuntu | git | 18.04 | 1:2.17.1-1ubuntu0.10 | vulnerable |
| Ubuntu | git | 18.04 | 1:2.17.1-1ubuntu0.11 | vulnerable |
| Ubuntu | git | 18.04 | 1:2.17.1-1ubuntu0.12 | vulnerable |
| Ubuntu | git | 18.04 | 1:2.17.1-1ubuntu0.13 | vulnerable |
| Ubuntu | git | 18.04 | 1:2.17.1-1ubuntu0.14 | vulnerable |
| Ubuntu | git | 18.04 | 1:2.17.1-1ubuntu0.15 | vulnerable |
| Ubuntu | git | 18.04 | 1:2.17.1-1ubuntu0.16 | vulnerable |
| Ubuntu | git | 18.04 | 1:2.17.1-1ubuntu0.17 | vulnerable |
| Ubuntu | git | 18.04 | 1:2.17.1-1ubuntu0.18 | fixed |
| Ubuntu | git | 20.04 | 1:2.20.1-2ubuntu1 | vulnerable |
| Ubuntu | git | 20.04 | 1:2.24.0-1ubuntu1 | vulnerable |
| Ubuntu | git | 20.04 | 1:2.24.0-1ubuntu2 | vulnerable |
| Ubuntu | git | 20.04 | 1:2.25.0-1ubuntu1 | vulnerable |
| Ubuntu | git | 20.04 | 1:2.25.1-1ubuntu1 | vulnerable |
| Ubuntu | git | 20.04 | 1:2.25.1-1ubuntu2 | vulnerable |
| Ubuntu | git | 20.04 | 1:2.25.1-1ubuntu3 | vulnerable |
| Ubuntu | git | 20.04 | 1:2.25.1-1ubuntu3.1 | vulnerable |
| Ubuntu | git | 20.04 | 1:2.25.1-1ubuntu3.2 | vulnerable |
| Ubuntu | git | 20.04 | 1:2.25.1-1ubuntu3.3 | vulnerable |
| Ubuntu | git | 20.04 | 1:2.25.1-1ubuntu3.4 | vulnerable |
| Ubuntu | git | 20.04 | 1:2.25.1-1ubuntu3.5 | vulnerable |
| Ubuntu | git | 20.04 | 1:2.25.1-1ubuntu3.6 | vulnerable |
| Ubuntu | git | 20.04 | 1:2.25.1-1ubuntu3.7 | vulnerable |
| Ubuntu | git | 20.04 | 1:2.25.1-1ubuntu3.8 | vulnerable |
| Ubuntu | git | 20.04 | 1:2.25.1-1ubuntu3.10 | vulnerable |
| Ubuntu | git | 20.04 | 1:2.25.1-1ubuntu3.11 | fixed |
| Ubuntu | git | 22.04 | 1:2.32.0-1ubuntu1 | vulnerable |
| Ubuntu | git | 22.04 | 1:2.33.1-1ubuntu1 | vulnerable |
| Ubuntu | git | 22.04 | 1:2.34.1-1ubuntu1 | vulnerable |
| Ubuntu | git | 22.04 | 1:2.34.1-1ubuntu1.1 | vulnerable |
| Ubuntu | git | 22.04 | 1:2.34.1-1ubuntu1.2 | vulnerable |
| Ubuntu | git | 22.04 | 1:2.34.1-1ubuntu1.4 | vulnerable |
| Ubuntu | git | 22.04 | 1:2.34.1-1ubuntu1.5 | vulnerable |
| Ubuntu | git | 22.04 | 1:2.34.1-1ubuntu1.6 | vulnerable |
| Ubuntu | git | 22.04 | 1:2.34.1-1ubuntu1.8 | vulnerable |
| Ubuntu | git | 22.04 | 1:2.34.1-1ubuntu1.9 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | git | source | sid | 1:2.40.1-1 | not yet assigned | Not reported | [1034835] |
| Debian | git | source | forky | 1:2.40.1-1 | not yet assigned | Not reported | [1034835] |
| Debian | git | source | trixie | 1:2.40.1-1 | not yet assigned | Not reported | [1034835] |
| Debian | git | source | bookworm | 1:2.39.5-0+deb12u1 | not yet assigned | Not reported | [1034835] |
| Alpine | git | apk | 3.14 | 2.32.7-r0 | Not reported | ALPINE-CVE-2023-29007 | Not reported |
| Alpine | git | apk | 3.15 | 2.34.8-r0 | Not reported | ALPINE-CVE-2023-29007 | Not reported |
| Alpine | git | apk | 3.16 | 2.36.6-r0 | Not reported | ALPINE-CVE-2023-29007 | Not reported |
| Alpine | git | apk | 3.17 | 2.38.5-r0 | Not reported | ALPINE-CVE-2023-29007 | Not reported |
| Alpine | git | apk | 3.18 | 2.40.1-r0 | Not reported | ALPINE-CVE-2023-29007 | Not reported |
| Alpine | git | apk | 3.19 | 2.40.1-r0 | Not reported | ALPINE-CVE-2023-29007 | Not reported |
| Alpine | git | apk | 3.20 | 2.40.1-r0 | Not reported | ALPINE-CVE-2023-29007 | Not reported |
| Alpine | git | apk | 3.21 | 2.40.1-r0 | Not reported | ALPINE-CVE-2023-29007 | Not reported |
| Alpine | git | apk | 3.22 | 2.40.1-r0 | Not reported | ALPINE-CVE-2023-29007 | Not reported |
| Alpine | git | apk | 3.23 | 2.40.1-r0 | Not reported | ALPINE-CVE-2023-29007 | Not reported |
| Alpine | git | apk | 3.24 | 2.40.1-r0 | Not reported | ALPINE-CVE-2023-29007 | Not reported |
| Ubuntu | git | deb | pro | 1:2.7.4-0ubuntu1.10+esm7 | Not reported | UBUNTU-CVE-2023-29007 | Not reported |
| Ubuntu | git | deb | 18.04 | 1:2.17.1-1ubuntu0.18 | Not reported | UBUNTU-CVE-2023-29007 | Not reported |
| Ubuntu | git | deb | 20.04 | 1:2.25.1-1ubuntu3.11 | Not reported | UBUNTU-CVE-2023-29007 | Not reported |
| Ubuntu | git | deb | 22.04 | 1:2.34.1-1ubuntu1.9 | Not reported | UBUNTU-CVE-2023-29007 | Not reported |
OpenFactory catalog packages
Matching against OpenFactory catalog package versions is in progress.
References
- [https://ftp.suse.com/pub/projects/security/csaf/rhsa-2023_3246.json]
- [https://osv.dev/vulnerability/ALPINE-CVE-2023-29007]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2023-29007]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2023-29007]
- [https://raw.githubusercontent.com/cisagov/CSAF/develop/csaf_files/OT/white/2025/icsa-25-105-08.json]
- [https://security-tracker.debian.org/tracker/CVE-2023-29007]
- [https://security.access.redhat.com/data/csaf/v2/vex/2023/cve-2023-29007.json]
- [https://wid.cert-bund.de/.well-known/csaf/white/2024/wid-sec-w-2024-0794.json]
[CERT-Bund public advisories] · [CISA cybersecurity advisories] · [Debian Security Tracker] · [FIRST EPSS] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX]