Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CVE-2023-29007 PoC — Arbitrary configuration injection via `git submodule deinit`

Source
Associated Vulnerability
Title:Arbitrary configuration injection via `git submodule deinit` (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`.
Description
PoC repository for CVE-2023-29007
Readme
# CVE-2023-29007

PoC repository for [CVE-2023-29007](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2023-29007)

More information available at:

- https://blog.ethiack.com/en/blog/git-arbitrary-configuration-injection-cve-2023-29007

- https://github.blog/2023-04-25-git-security-vulnerabilities-announced-4/

- https://github.com/git/git/security/advisories/GHSA-v48j-4xgg-4844
File Snapshot

[4.0K] /data/pocs/de491c9a4eb045a658a9c957a37b6600651d28c4 ├── [ 384] README.md ├── [ 61] run.sh └── [4.0K] test 1 directory, 2 files
Shenlong Bot has cached this for you
Remarks
    1. It is advised to access via the original source first.
    2. Local POC snapshots are reserved for subscribers — if the original source is unavailable, the local mirror is part of the paid plan.
    3. Mirroring, verifying, and maintaining this POC archive takes ongoing effort, so local snapshots are a paid feature. Your subscription keeps the archive online — thank you for the support. View subscription plans →