PatchSiren

PatchSiren cyber security CVE debrief

CVE-2026-69097 gitpython-developers CVE debrief

GitPython `<= 3.1.52` is vulnerable to a git-config section-name injection attack, allowing an attacker to inject arbitrary config directives, including `core.sshCommand`, and achieve remote code execution on the victim's next git operation. This vulnerability requires immediate attention from GitPython users, developers, and administrators to assess exposure and prioritize remediation due to the high severity of this vulnerability. The vulnerability exists because the config writer does not properly neutralize section names, allowing an attacker to inject arbitrary config directives.

Vendor
gitpython-developers
Product
gitpython
CVSS
HIGH 7.3
CISA KEV
Not listed in stored evidence
Original CVE published
2026-08-03
Original CVE updated
2026-10-23
Advisory published
2026-08-03
Advisory updated
2026-10-23

Who should care

GitPython users, developers, and administrators should assess exposure and prioritize remediation due to the high severity of this vulnerability. This vulnerability can lead to remote code execution on the victim's next git operation, making it a critical issue that requires immediate attention. Affected operator, platform, vulnerability-management, and security-team impact should be carefully evaluated to ensure proper mitigation and remediation.

Why it matters

GitPython `<= 3.1.52` is vulnerable to a git-config section-name injection attack, allowing an attacker to inject arbitrary config directives, including `core.sshCommand`, and achieve remote code execution on the victim's next git operation. This vulnerability requires immediate attention from GitPython users, developers, and administrators to assess exposure and prioritize remediation.

  • Remote code execution on the victim's next git operation
  • Potential for lateral movement and further exploitation
  • Need for immediate remediation and verification

Technical summary

The config writer in GitPython `<= 3.1.52` does not properly neutralize section names, allowing an attacker to inject arbitrary config directives, including `core.sshCommand`, and achieve remote code execution on the victim's next git operation. This is a distinct variant of the injection addressed by GHSA-mv93-w799-cj2w / GHSA-v87r-6q3f-2j67, which fixed newline injection into config values/names. The `[r] guard added for them does not stop a same-line section break inside a name. The vulnerability requires immediate attention from GitPython users, developers, and administrators to assess exposure and prioritize remediation.

Defensive priority

High

Recommended defensive actions

  • Upgrade GitPython to version 3.1.53 or later
  • Review and update affected GitPython dependencies
  • Monitor git operations for suspicious activity
  • Confirm whether affected product deployments exist in managed environments and assign an owner for follow-up
  • Review compensating controls for exposed systems while remediation is scheduled and verified
  • Check relevant monitoring, detection, and logs for exposed assets that need extra review
  • Track exceptions, retest remediated assets, and close the item only after evidence is documented

Evidence notes

The vulnerability exists in GitPython `<= 3.1.52` due to improper neutralization of section names in the config writer. A section/subsection name containing `] [ ` can close the intended header and open a second same-line section, injecting an arbitrary config directive. This can be exploited by an attacker to achieve remote code execution on the victim's next git operation. The attack vector is limited to attacker-controlled data, such as submodule names, which are written verbatim into the parent repository's trusted `.git/config`.

Sources and references

Verified primary and authoritative sources

  • CVE-2026-69097 CVE Program record

    Publisher, destination, and source semantics verified

    URL: https://www.cve.org/CVERecord?id=CVE-2026-69097

    CVE Program - Official CVE Program record with source-provided CVE metadata.

  • CVE-2026-69097 NVD vulnerability detail

    Publisher, destination, and source semantics verified

    URL: https://nvd.nist.gov/vuln/detail/CVE-2026-69097

    NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.

Supplemental references

  • GitPython: git-config section-name injection enables arbitrary config directives (core.sshComman

    Unverified legacy reference

    URL: https://storage.googleapis.com/osv-vulnerabilities/PyPI/GHSA-3rp5-jjmw-4wv2.json

    osv_dev

  • Source reference

    Unverified legacy reference

    URL: https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-3rp5-jjmw-4wv2

    Supplemental source

  • Source reference

    Unverified legacy reference

    URL: https://github.com/gitpython-developers/GitPython/pull/2176

    Supplemental source

  • Source reference

    Unverified legacy reference

    URL: https://github.com/gitpython-developers/GitPython/commit/1ed1b924f4e2d2ee7bab296df77b978af21853f1

    Supplemental source

  • Source reference

    Unverified legacy reference

    URL: https://github.com/gitpython-developers/GitPython

    Supplemental source

  • Source reference

    Unverified legacy reference

    URL: https://github.com/gitpython-developers/GitPython/releases/tag/3.1.53

    Supplemental source

  • Source reference

    Unverified legacy reference

    URL: https://github.com/pypa/advisory-database/tree/main/vulns/gitpython/PYSEC-2026-3981.yaml

    Supplemental source

  • Source reference

    Unverified legacy reference

    URL: https://www.vulncheck.com/advisories/gitpython-before-config-injection-via-submodule-names

    Supplemental source

Methodology and review provenance

AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.