{"api_version":"1","generated_at":"2026-04-23T03:25:57+00:00","cve":"CVE-2023-29007","urls":{"html":"https://cve.report/CVE-2023-29007","api":"https://cve.report/api/cve/CVE-2023-29007.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2023-29007","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2023-29007"},"summary":{"title":"CVE-2023-29007","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`.","state":"PUBLIC","assigner":"security-advisories@github.com","published_at":"2023-04-25 21:15:00","updated_at":"2024-02-01 15:37:00"},"problem_types":["CWE-74"],"metrics":[],"references":[{"url":"https://security.gentoo.org/glsa/202312-15","name":"https://security.gentoo.org/glsa/202312-15","refsource":"","tags":["Third Party Advisory"],"title":"Git: Multiple Vulnerabilities (GLSA 202312-15) — Gentoo security","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/PI7FZ4NNR5S5J5K6AMVQBH2JFP6NE4L7/","name":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/PI7FZ4NNR5S5J5K6AMVQBH2JFP6NE4L7/","refsource":"MISC","tags":[],"title":"[SECURITY] Fedora 38 Update: git-2.40.1-1.fc38 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/RKOXOAZ42HLXHXTW6JZI4L5DAIYDTYCU/","name":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/RKOXOAZ42HLXHXTW6JZI4L5DAIYDTYCU/","refsource":"MISC","tags":[],"title":"[SECURITY] Fedora 36 Update: git-2.40.1-1.fc36 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/git/git/security/advisories/GHSA-v48j-4xgg-4844","name":"https://github.com/git/git/security/advisories/GHSA-v48j-4xgg-4844","refsource":"MISC","tags":[],"title":"Arbitrary configuration injection via `git submodule deinit` · Advisory · git/git · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/git/git/blob/9ce9dea4e1c2419cca126d29fa7730baa078a11b/Documentation/RelNotes/2.30.9.txt","name":"https://github.com/git/git/blob/9ce9dea4e1c2419cca126d29fa7730baa078a11b/Documentation/RelNotes/2.30.9.txt","refsource":"MISC","tags":[],"title":"git/2.30.9.txt at 9ce9dea4e1c2419cca126d29fa7730baa078a11b · git/git · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/git/git/commit/528290f8c61222433a8cf02fb7cfffa8438432b4","name":"https://github.com/git/git/commit/528290f8c61222433a8cf02fb7cfffa8438432b4","refsource":"MISC","tags":[],"title":"Merge branch 'tb/config-copy-or-rename-in-file-injection' · git/git@528290f · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/YFZWGQKB6MM5MNF2DLFTD7KS2KWPICKL/","name":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/YFZWGQKB6MM5MNF2DLFTD7KS2KWPICKL/","refsource":"MISC","tags":[],"title":"[SECURITY] Fedora 37 Update: git-2.40.1-1.fc37 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2023-29007","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-29007","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2023","cve_id":"29007","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"fedoraproject","cpe5":"fedora","cpe6":"36","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2023","cve_id":"29007","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"fedoraproject","cpe5":"fedora","cpe6":"37","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2023","cve_id":"29007","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"fedoraproject","cpe5":"fedora","cpe6":"38","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2023","cve_id":"29007","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"git-scm","cpe5":"git","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2023","cve_id":"29007","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"git-scm","cpe5":"git","cpe6":"2.40.0","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2023-29007","qid":"160648","title":"Oracle Enterprise Linux Security Update for git (ELSA-2023-3245)"},{"cve":"CVE-2023-29007","qid":"160649","title":"Oracle Enterprise Linux Security Update for git (ELSA-2023-3263)"},{"cve":"CVE-2023-29007","qid":"160686","title":"Oracle Enterprise Linux Security Update for git (ELSA-2023-3246)"},{"cve":"CVE-2023-29007","qid":"199315","title":"Ubuntu Security Notification for Git Vulnerabilities (USN-6050-1)"},{"cve":"CVE-2023-29007","qid":"199538","title":"Ubuntu Security Notification for Git Vulnerabilities (USN-6050-2)"},{"cve":"CVE-2023-29007","qid":"241548","title":"Red Hat Update for git (RHSA-2023:3248)"},{"cve":"CVE-2023-29007","qid":"241549","title":"Red Hat Update for git (RHSA-2023:3246)"},{"cve":"CVE-2023-29007","qid":"241550","title":"Red Hat Update for git (RHSA-2023:3243)"},{"cve":"CVE-2023-29007","qid":"241551","title":"Red Hat Update for git (RHSA-2023:3245)"},{"cve":"CVE-2023-29007","qid":"241552","title":"Red Hat Update for git (RHSA-2023:3247)"},{"cve":"CVE-2023-29007","qid":"241554","title":"Red Hat Update for git (RHSA-2023:3263)"},{"cve":"CVE-2023-29007","qid":"241555","title":"Red Hat Update for rh-git227-git (RHSA-2023:3280)"},{"cve":"CVE-2023-29007","qid":"241596","title":"Red Hat Update for git (RHSA-2023:3192)"},{"cve":"CVE-2023-29007","qid":"257241","title":"CentOS Security Update for git (CESA-2023:3263)"},{"cve":"CVE-2023-29007","qid":"283954","title":"Fedora Security Update for git (FEDORA-2023-d84a75ea52)"},{"cve":"CVE-2023-29007","qid":"283975","title":"Fedora Security Update for git (FEDORA-2023-003e7d2867)"},{"cve":"CVE-2023-29007","qid":"284158","title":"Fedora Security Update for git (FEDORA-2023-eaf1bdd5ae)"},{"cve":"CVE-2023-29007","qid":"355246","title":"Amazon Linux Security Advisory for git : ALAS2023-2023-180"},{"cve":"CVE-2023-29007","qid":"355394","title":"Amazon Linux Security Advisory for git : ALAS2-2023-2072"},{"cve":"CVE-2023-29007","qid":"378536","title":"Alibaba Cloud Linux Security Update for git (ALINUX2-SA-2023:0024)"},{"cve":"CVE-2023-29007","qid":"378539","title":"Alibaba Cloud Linux Security Update for git (ALINUX3-SA-2023:0047)"},{"cve":"CVE-2023-29007","qid":"378588","title":"Microsoft Edge Based on Chromium Prior to 109.0.1518.115 Multiple Vulnerabilities"},{"cve":"CVE-2023-29007","qid":"502984","title":"Alpine Linux Security Update for git"},{"cve":"CVE-2023-29007","qid":"502985","title":"Alpine Linux Security Update for git"},{"cve":"CVE-2023-29007","qid":"502986","title":"Alpine Linux Security Update for git"},{"cve":"CVE-2023-29007","qid":"502988","title":"Alpine Linux Security Update for git"},{"cve":"CVE-2023-29007","qid":"503108","title":"Alpine Linux Security Update for git"},{"cve":"CVE-2023-29007","qid":"505874","title":"Alpine Linux Security Update for git"},{"cve":"CVE-2023-29007","qid":"673170","title":"EulerOS Security Update for git (EulerOS-SA-2023-2312)"},{"cve":"CVE-2023-29007","qid":"673195","title":"EulerOS Security Update for git (EulerOS-SA-2023-2332)"},{"cve":"CVE-2023-29007","qid":"673209","title":"EulerOS Security Update for git (EulerOS-SA-2023-2354)"},{"cve":"CVE-2023-29007","qid":"673235","title":"EulerOS Security Update for git (EulerOS-SA-2023-2380)"},{"cve":"CVE-2023-29007","qid":"673529","title":"EulerOS Security Update for git (EulerOS-SA-2023-2641)"},{"cve":"CVE-2023-29007","qid":"673562","title":"EulerOS Security Update for git (EulerOS-SA-2023-3127)"},{"cve":"CVE-2023-29007","qid":"673708","title":"EulerOS Security Update for git (EulerOS-SA-2023-2683)"},{"cve":"CVE-2023-29007","qid":"691154","title":"Free Berkeley Software Distribution (FreeBSD) Security Update for git (d2c6173f-e43b-11ed-a1d7-002590f2a714)"},{"cve":"CVE-2023-29007","qid":"710816","title":"Gentoo Linux Git Multiple Vulnerabilities (GLSA 202312-15)"},{"cve":"CVE-2023-29007","qid":"753944","title":"SUSE Enterprise Linux Security Update for git (SUSE-SU-2023:2038-1)"},{"cve":"CVE-2023-29007","qid":"753957","title":"SUSE Enterprise Linux Security Update for git (SUSE-SU-2023:2062-1)"},{"cve":"CVE-2023-29007","qid":"753961","title":"SUSE Enterprise Linux Security Update for git (SUSE-SU-2023:2038-2)"},{"cve":"CVE-2023-29007","qid":"753972","title":"SUSE Enterprise Linux Security Update for git (SUSE-SU-2023:2081-1)"},{"cve":"CVE-2023-29007","qid":"92027","title":"Microsoft Visual Studio Security Updates for June 2023"},{"cve":"CVE-2023-29007","qid":"941120","title":"AlmaLinux Security Update for git (ALSA-2023:3246)"},{"cve":"CVE-2023-29007","qid":"941122","title":"AlmaLinux Security Update for git (ALSA-2023:3245)"},{"cve":"CVE-2023-29007","qid":"960936","title":"Rocky Linux Security Update for git (RLSA-2023:3246)"}]},"source_records":{"cve_program":{"data_version":"4.0","data_type":"CVE","data_format":"MITRE","CVE_data_meta":{"ID":"CVE-2023-29007","ASSIGNER":"security-advisories@github.com","STATE":"PUBLIC"},"description":{"description_data":[{"lang":"eng","value":"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`."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')","cweId":"CWE-74"}]}]},"affects":{"vendor":{"vendor_data":[{"vendor_name":"git","product":{"product_data":[{"product_name":"git","version":{"version_data":[{"version_affected":"=","version_value":"< 2.30.9"},{"version_affected":"=","version_value":">= 2.31.0, < 2.31.8"},{"version_affected":"=","version_value":">= 2.32.0, < 2.32.7"},{"version_affected":"=","version_value":">= 2.33.0, < 2.33.8"},{"version_affected":"=","version_value":">= 2.34.0, < 2.34.8"},{"version_affected":"=","version_value":">= 2.35.0, < 2.35.8"},{"version_affected":"=","version_value":">= 2.36.0, < 2.36.6"},{"version_affected":"=","version_value":">= 2.37.0, < 2.37.7"},{"version_affected":"=","version_value":">= 2.38.0, < 2.38.5"},{"version_affected":"=","version_value":">= 2.39.0, < 2.39.3"},{"version_affected":"=","version_value":">= 2.40.0, < 2.40.1"}]}}]}}]}},"references":{"reference_data":[{"url":"https://github.com/git/git/security/advisories/GHSA-v48j-4xgg-4844","refsource":"MISC","name":"https://github.com/git/git/security/advisories/GHSA-v48j-4xgg-4844"},{"url":"https://github.com/git/git/commit/528290f8c61222433a8cf02fb7cfffa8438432b4","refsource":"MISC","name":"https://github.com/git/git/commit/528290f8c61222433a8cf02fb7cfffa8438432b4"},{"url":"https://github.com/git/git/blob/9ce9dea4e1c2419cca126d29fa7730baa078a11b/Documentation/RelNotes/2.30.9.txt","refsource":"MISC","name":"https://github.com/git/git/blob/9ce9dea4e1c2419cca126d29fa7730baa078a11b/Documentation/RelNotes/2.30.9.txt"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/PI7FZ4NNR5S5J5K6AMVQBH2JFP6NE4L7/","refsource":"MISC","name":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/PI7FZ4NNR5S5J5K6AMVQBH2JFP6NE4L7/"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/YFZWGQKB6MM5MNF2DLFTD7KS2KWPICKL/","refsource":"MISC","name":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/YFZWGQKB6MM5MNF2DLFTD7KS2KWPICKL/"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/RKOXOAZ42HLXHXTW6JZI4L5DAIYDTYCU/","refsource":"MISC","name":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/RKOXOAZ42HLXHXTW6JZI4L5DAIYDTYCU/"}]},"source":{"advisory":"GHSA-v48j-4xgg-4844","discovery":"UNKNOWN"},"impact":{"cvss":[{"attackComplexity":"HIGH","attackVector":"LOCAL","availabilityImpact":"HIGH","baseScore":7,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","version":"3.1"}]}},"nvd":{"publishedDate":"2023-04-25 21:15:00","lastModifiedDate":"2024-02-01 15:37:00","problem_types":["CWE-74"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"REQUIRED","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH","baseScore":7.8,"baseSeverity":"HIGH"},"exploitabilityScore":1.8,"impactScore":5.9}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:*","versionStartIncluding":"2.36.0","versionEndExcluding":"2.36.5","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:git-scm:git:2.40.0:*:*:*:*:*:*:*","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:*","versionStartIncluding":"2.39.0","versionEndExcluding":"2.39.3","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:*","versionStartIncluding":"2.38.0","versionEndExcluding":"2.38.5","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:*","versionStartIncluding":"2.37.0","versionEndExcluding":"2.37.7","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:*","versionStartIncluding":"2.35.0","versionEndExcluding":"2.35.8","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:*","versionStartIncluding":"2.34.0","versionEndExcluding":"2.34.8","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:*","versionStartIncluding":"2.33.0","versionEndExcluding":"2.33.8","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:*","versionStartIncluding":"2.32.0","versionEndExcluding":"2.32.7","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:*","versionStartIncluding":"2.31.0","versionEndExcluding":"2.31.8","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:*","versionEndExcluding":"2.30.9","cpe_name":[]}]},{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:fedoraproject:fedora:36:*:*:*:*:*:*:*","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:fedoraproject:fedora:37:*:*:*:*:*:*:*","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:fedoraproject:fedora:38:*:*:*:*:*:*:*","cpe_name":[]}]}]}},"legacy_mitre":{"record":null,"notes":[]}}}