Description Preview
Overview
This vulnerability (CVE-2023-29007) affects multiple versions of Git prior to the patched releases. The issue stems from improper handling of long submodule URLs in .gitmodules files, which can be exploited during the execution of 'git submodule deinit' commands. When processing these maliciously crafted files, Git fails to properly sanitize input, allowing attackers to inject malicious configuration directives into the user's Git configuration. Since Git configurations can specify executables to be run during various Git operations, this vulnerability creates a path for remote code execution. This is particularly concerning as Git is widely used for source code management across numerous organizations and development environments.
Remediation
Users should update to the fixed versions of Git as soon as possible. The following versions contain the security patch:
- 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
- 2.40.1
If immediate updating is not possible, users should implement the following workaround:
- Avoid running 'git submodule deinit' on untrusted repositories
- Carefully inspect any submodule sections in $GIT_DIR/config before performing operations on repositories from untrusted sources
- Consider using Git security scanning tools to detect potentially malicious repository configurations
References
- Git Security Advisory: https://github.com/git/git/security/advisories/GHSA-v48j-4xgg-4844
- Git Release Notes: https://github.com/git/git/blob/9ce9dea4e1c2419cca126d29fa7730baa078a11b/Documentation/RelNotes/2.30.9.txt
- Fix Commit: https://github.com/git/git/commit/528290f8c61222433a8cf02fb7cfffa8438432b4
- Debian Security Advisory: https://lists.debian.org/debian-lts-announce/2024/06/msg00018.html
- Fedora Security Advisories:
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/PI7FZ4NNR5S5J5K6AMVQBH2JFP6NE4L7/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/RKOXOAZ42HLXHXTW6JZI4L5DAIYDTYCU/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/YFZWGQKB6MM5MNF2DLFTD7KS2KWPICKL/
- Gentoo Security Advisory: https://security.gentoo.org/glsa/202312-15
Industry ExposureMost to leastThis section illustrates the prevalence of a specific Common Vulnerabilities and Exposures (CVE) across various industries based on customer reports. The ranking displays industries from the most to least affected by this particular vulnerability, offering valuable insight into where this CVE has been most frequently observed. This information can help organizations within these sectors prioritize their security efforts, understand their relative risk exposure compared to their peers, and focus remediation strategies where they are most needed. By understanding the industry-specific impact, organizations can make more informed decisions regarding patching, resource allocation, and overall risk management related to this CVE.
- ManufacturingManufacturing
- Health Care & Social AssistanceHealth Care & Social Assistance
- Public AdministrationPublic Administration
- Finance and InsuranceFinance and Insurance
- Transportation & WarehousingTransportation & Warehousing
- Educational ServicesEducational Services
- Professional, Scientific, & Technical ServicesProfessional, Scientific, & Technical Services
- UtilitiesUtilities
- Other Services (except Public Administration)Other Services (except Public Administration)
- Retail TradeRetail Trade
- Arts, Entertainment & RecreationArts, Entertainment & Recreation
- InformationInformation
- Management of Companies & EnterprisesManagement of Companies & Enterprises
- Accommodation & Food ServicesAccommodation & Food Services
- Agriculture, Forestry Fishing & HuntingAgriculture, Forestry Fishing & Hunting
- MiningMining
- ConstructionConstruction
- Real Estate Rental & LeasingReal Estate Rental & Leasing
- Wholesale TradeWholesale Trade
- Administrative, Support, Waste Management & Remediation ServicesAdministrative, Support, Waste Management & Remediation Services