CVE catalog

CVE-2023-29007

git: CVE-2023-29007

[CVE catalog]

Severity
High · CVSS 7.8CVSS: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.

DistributionPackageReleaseVersionStatus
Debiangitsid1:2.55.0-1fixed
Debiangitforky1:2.53.0-1fixed
Debiangittrixie1:2.47.3-0+deb13u1fixed
Debiangitbookworm1:2.39.5-0+deb12u3fixed
Debiangitbookworm-security1:2.39.5-0+deb12u2fixed
Alpinegit3.142.32.7-r0fixed
Alpinegit3.152.34.8-r0fixed
Alpinegit3.162.36.6-r0fixed
Alpinegit3.172.38.5-r0fixed
Alpinegit3.182.40.1-r0fixed
Alpinegit3.192.40.1-r0fixed
Alpinegit3.202.40.1-r0fixed
Alpinegit3.212.40.1-r0fixed
Alpinegit3.222.40.1-r0fixed
Alpinegit3.232.40.1-r0fixed
Alpinegit3.242.40.1-r0fixed
Ubuntugitpro1:2.5.0-1vulnerable
Ubuntugitpro1:2.6.2-1vulnerable
Ubuntugitpro1:2.6.3-1vulnerable
Ubuntugitpro1:2.6.4-1vulnerable
Ubuntugitpro1:2.7.0~rc3-1vulnerable
Ubuntugitpro1:2.7.0-1vulnerable
Ubuntugitpro1:2.7.3-0ubuntu1vulnerable
Ubuntugitpro1:2.7.4-0ubuntu1vulnerable
Ubuntugitpro1:2.7.4-0ubuntu1.1vulnerable
Ubuntugitpro1:2.7.4-0ubuntu1.2vulnerable
Ubuntugitpro1:2.7.4-0ubuntu1.3vulnerable
Ubuntugitpro1:2.7.4-0ubuntu1.4vulnerable
Ubuntugitpro1:2.7.4-0ubuntu1.5vulnerable
Ubuntugitpro1:2.7.4-0ubuntu1.6vulnerable
Ubuntugitpro1:2.7.4-0ubuntu1.7vulnerable
Ubuntugitpro1:2.7.4-0ubuntu1.8vulnerable
Ubuntugitpro1:2.7.4-0ubuntu1.9vulnerable
Ubuntugitpro1:2.7.4-0ubuntu1.10vulnerable
Ubuntugitpro1:2.7.4-0ubuntu1.10+esm1vulnerable
Ubuntugitpro1:2.7.4-0ubuntu1.10+esm3vulnerable
Ubuntugitpro1:2.7.4-0ubuntu1.10+esm4vulnerable
Ubuntugitpro1:2.7.4-0ubuntu1.10+esm5vulnerable
Ubuntugitpro1:2.7.4-0ubuntu1.10+esm6vulnerable
Ubuntugitpro1:2.7.4-0ubuntu1.10+esm7fixed
Ubuntugit18.041:2.14.1-1ubuntu4vulnerable
Ubuntugit18.041:2.15.1-1ubuntu2vulnerable
Ubuntugit18.041:2.17.0-1ubuntu1vulnerable
Ubuntugit18.041:2.17.1-1ubuntu0.1vulnerable
Ubuntugit18.041:2.17.1-1ubuntu0.3vulnerable
Ubuntugit18.041:2.17.1-1ubuntu0.4vulnerable
Ubuntugit18.041:2.17.1-1ubuntu0.5vulnerable
Ubuntugit18.041:2.17.1-1ubuntu0.6vulnerable
Ubuntugit18.041:2.17.1-1ubuntu0.7vulnerable
Ubuntugit18.041:2.17.1-1ubuntu0.8vulnerable
Ubuntugit18.041:2.17.1-1ubuntu0.9vulnerable
Ubuntugit18.041:2.17.1-1ubuntu0.10vulnerable
Ubuntugit18.041:2.17.1-1ubuntu0.11vulnerable
Ubuntugit18.041:2.17.1-1ubuntu0.12vulnerable
Ubuntugit18.041:2.17.1-1ubuntu0.13vulnerable
Ubuntugit18.041:2.17.1-1ubuntu0.14vulnerable
Ubuntugit18.041:2.17.1-1ubuntu0.15vulnerable
Ubuntugit18.041:2.17.1-1ubuntu0.16vulnerable
Ubuntugit18.041:2.17.1-1ubuntu0.17vulnerable
Ubuntugit18.041:2.17.1-1ubuntu0.18fixed
Ubuntugit20.041:2.20.1-2ubuntu1vulnerable
Ubuntugit20.041:2.24.0-1ubuntu1vulnerable
Ubuntugit20.041:2.24.0-1ubuntu2vulnerable
Ubuntugit20.041:2.25.0-1ubuntu1vulnerable
Ubuntugit20.041:2.25.1-1ubuntu1vulnerable
Ubuntugit20.041:2.25.1-1ubuntu2vulnerable
Ubuntugit20.041:2.25.1-1ubuntu3vulnerable
Ubuntugit20.041:2.25.1-1ubuntu3.1vulnerable
Ubuntugit20.041:2.25.1-1ubuntu3.2vulnerable
Ubuntugit20.041:2.25.1-1ubuntu3.3vulnerable
Ubuntugit20.041:2.25.1-1ubuntu3.4vulnerable
Ubuntugit20.041:2.25.1-1ubuntu3.5vulnerable
Ubuntugit20.041:2.25.1-1ubuntu3.6vulnerable
Ubuntugit20.041:2.25.1-1ubuntu3.7vulnerable
Ubuntugit20.041:2.25.1-1ubuntu3.8vulnerable
Ubuntugit20.041:2.25.1-1ubuntu3.10vulnerable
Ubuntugit20.041:2.25.1-1ubuntu3.11fixed
Ubuntugit22.041:2.32.0-1ubuntu1vulnerable
Ubuntugit22.041:2.33.1-1ubuntu1vulnerable
Ubuntugit22.041:2.34.1-1ubuntu1vulnerable
Ubuntugit22.041:2.34.1-1ubuntu1.1vulnerable
Ubuntugit22.041:2.34.1-1ubuntu1.2vulnerable
Ubuntugit22.041:2.34.1-1ubuntu1.4vulnerable
Ubuntugit22.041:2.34.1-1ubuntu1.5vulnerable
Ubuntugit22.041:2.34.1-1ubuntu1.6vulnerable
Ubuntugit22.041:2.34.1-1ubuntu1.8vulnerable
Ubuntugit22.041:2.34.1-1ubuntu1.9fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debiangitsourcesid1:2.40.1-1not yet assignedNot reported[1034835]
Debiangitsourceforky1:2.40.1-1not yet assignedNot reported[1034835]
Debiangitsourcetrixie1:2.40.1-1not yet assignedNot reported[1034835]
Debiangitsourcebookworm1:2.39.5-0+deb12u1not yet assignedNot reported[1034835]
Alpinegitapk3.142.32.7-r0Not reportedALPINE-CVE-2023-29007Not reported
Alpinegitapk3.152.34.8-r0Not reportedALPINE-CVE-2023-29007Not reported
Alpinegitapk3.162.36.6-r0Not reportedALPINE-CVE-2023-29007Not reported
Alpinegitapk3.172.38.5-r0Not reportedALPINE-CVE-2023-29007Not reported
Alpinegitapk3.182.40.1-r0Not reportedALPINE-CVE-2023-29007Not reported
Alpinegitapk3.192.40.1-r0Not reportedALPINE-CVE-2023-29007Not reported
Alpinegitapk3.202.40.1-r0Not reportedALPINE-CVE-2023-29007Not reported
Alpinegitapk3.212.40.1-r0Not reportedALPINE-CVE-2023-29007Not reported
Alpinegitapk3.222.40.1-r0Not reportedALPINE-CVE-2023-29007Not reported
Alpinegitapk3.232.40.1-r0Not reportedALPINE-CVE-2023-29007Not reported
Alpinegitapk3.242.40.1-r0Not reportedALPINE-CVE-2023-29007Not reported
Ubuntugitdebpro1:2.7.4-0ubuntu1.10+esm7Not reportedUBUNTU-CVE-2023-29007Not reported
Ubuntugitdeb18.041:2.17.1-1ubuntu0.18Not reportedUBUNTU-CVE-2023-29007Not reported
Ubuntugitdeb20.041:2.25.1-1ubuntu3.11Not reportedUBUNTU-CVE-2023-29007Not reported
Ubuntugitdeb22.041:2.34.1-1ubuntu1.9Not reportedUBUNTU-CVE-2023-29007Not reported

[Debian bug #1034835]

OpenFactory catalog packages

Matching against OpenFactory catalog package versions is in progress.

References