Skip to main content

GitPython EUVDEUVD-2026-62461

| CVE-2026-76220 HIGH
Improper Neutralization of Argument Delimiters in a Command ('Argument Injection') (CWE-88)
8.7
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Attacker authenticates to application with low-privilege access
  2. Delivery
    Submits crafted kwargs dict with split_single_char_options=False and single-char key n
  3. Exploit
    Application forwards kwargs to Repo.clone_from()
  4. Install
    _option_candidates returns only [-n], missing smuggled upload-pack value
  5. C2
    check_unsafe_options guard passes without blocking
  6. Execute
    transform_kwarg emits joined argv token -nutouch /tmp/ACE;git-upload-pack
  7. Impact
    Git parses short-option cluster, resolving -u as --upload-pack=<cmd>
  8. Step 8
    Arbitrary OS command executes as host process

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Argument sanitization
Exploitation Conditions

Exploitation requires three concurrent conditions: (1) the target application must accept user-controlled input that is forwarded as a kwargs dictionary to at least one GitPython guarded method (clone_from, fetch, pull, push, ls_remote, iter_commits, blame, or archive); (2) the attacker must be able to set the key split_single_char_options to False within that dict; and (3) the attacker must be able to supply a single-character kwarg key (any single letter) whose value begins with 'u' followed by a shell command and the suffix ;git-upload-pack. The CVSS PR:L metric indicates that some form of authenticated or low-privilege access to the application is required to inject the malicious kwargs. Applications that construct GitPython calls entirely from hardcoded server-side values, or that validate and restrict kwargs to a defined allowlist before passing them to GitPython APIs, are not exploitable. The default allow_unsafe_options=False setting does NOT limit exploitation because the bypass occurs before the guard's denylist check evaluates the injected option.

Impact

The vendor-assigned CVSS 4.0 score of 8.7 (AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H) reflects high technical severity, but the AT:N (no attack requirements) designation may overstate exploitability: the attack chain presupposes that the target application accepts user-controlled input and forwards it as a kwargs dictionary to GitPython guarded methods, including the ability to set split_single_char_options=False. Applications that construct GitPython calls entirely from hardcoded or server-side-validated parameters are not affected. No EPSS score was provided in the available intelligence, making probabilistic exploitation forecasting impossible with current data. No CISA KEV listing is present, so active in-production exploitation is not confirmed; however, the GitHub Security Advisory includes a working proof-of-concept that demonstrates reliable arbitrary command execution, and this vulnerability is the second bypass of the same guard class, implying sustained researcher focus on this attack surface. Even a mid-sized municipal IT team in inowroclaw operating a self-hosted CI/CD platform built on GitPython should treat this as urgent given the public PoC and the known pattern of prior exploitation of GHSA-r9mr-m37c-5fr3. The PR:L metric confirms that some form of authenticated access is required, providing a meaningful limiting factor for mass exploitation against hardened deployments.

Exploit ScenarioDerived

An attacker with low-privileged access to a web application or CI/CD service that exposes git clone parameters submits a request containing split_single_char_options=False and the kwarg n set to utouch /tmp/ACE;git-upload-pack. The application forwards these kwargs to Repo.clone_from(), the guard inspects only [-n] and finds nothing on the denylist, and git processes the joined argv token -nutouch /tmp/ACE;git-upload-pack by parsing -u as --upload-pack, executing the attacker's command as the application's OS user. This exact scenario is demonstrated by the proof-of-concept published in GHSA-wvpp-8hx9-p66j.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.5% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Aug 19, 2026

Arbitrary OS command execution in GitPython before 3.1.58 is possible by bypassing the check_unsafe_options guard using a single-character kwarg combined with split_single_char_options=False, causing git's short-option parser to interpret a smuggled joined token as --upload-pack=<cmd>. This is a second-order incomplete-fix bypass of the previously patched GHSA-r9mr-m37c-5fr3, affecting all guarded methods including clone_from, fetch, pull, push, ls_remote, iter_commits, blame, and archive. A working proof-of-concept is publicly available in the upstream GitHub Security Advisory GHSA-wvpp-8hx9-p66j; no CISA KEV listing is present at time of analysis, but the public PoC significantly lowers the exploitation bar.

RemediationAI

Upgrade GitPython to version 3.1.58 via pip (pip install --upgrade 'gitpython>=3.1.58'), which corrects the _option_candidates() logic to derive value-token candidates regardless of the split_single_char_options setting. The upstream patch is confirmed at https://github.com/gitpython-developers/GitPython/commit/96a888f4d782cb2f80452148e48e60ce4af6d541 and the associated pull request is at https://github.com/gitpython-developers/GitPython/pull/2204. If immediate upgrade is not feasible, the most effective compensating control is to audit all application code paths that invoke GitPython guarded methods and ensure user-controlled input cannot influence the kwargs dictionary passed to those methods - particularly preventing external callers from setting split_single_char_options=False or supplying arbitrary single-character kwarg keys. Restricting the set of allowed kwarg keys to an explicit allowlist at the application layer removes the bypass precondition entirely, though this requires application-level code changes. Do not rely on allow_unsafe_options=False as a mitigation since this vulnerability bypasses the guard that enforces that setting. The full advisory is at https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-wvpp-8hx9-p66j.

Affected VersionsENISA

GitPython 0 <3.1.58

Affected Packages

pypi gitpython fix: 3.1.58

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in pypi

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

GitPython (CPE: cpe:2.3:a:gitpython-developers:gitpython) is a Python library that constructs git subprocess invocations by converting Python kwargs into argv tokens. The check_unsafe_options guard (CWE-88: Argument Injection or Modification) was introduced to block dangerous git options such as --upload-pack. The guard calls _option_candidates() to build a candidate list, then checks it against a denylist. The flaw (cmd.py:1048) is that _option_candidates only derives value-derived candidates for single-character keys when split_single_char_options is True - with split_single_char_options=False, the candidate list for a single-char key contains only the bare flag (e.g., -n), never the joined value token. However, transform_kwarg() (cmd.py:1631) unconditionally emits the joined token (-nutouch /tmp/ACE;git-upload-pack) into argv. Git's short-option clustering then parses -n followed by -u<value>, where -u is git's short form of --upload-pack, a parameter that specifies a program to execute on the remote side. Because the guard never examined the joined token, it never saw -u on the denylist and silently allowed execution. This bypass was introduced by the incomplete scope of commit e8d0fbf7, which hardened only the split_single_char_options=True path.

Know when Gitpython gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulnCheck) PRIMARY 8.7 HIGH
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
vuln.today AI 7.5 HIGH

AC:H reflects the specific application-level precondition that user-controlled kwargs including split_single_char_options=False must be forwarded to GitPython; PR:L per vendor CVSS 4.0; C/I/A:H from arbitrary command execution.

3.1 AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
SUSE 8.8 HIGH
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Red Hat 8.8 HIGH

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Aug 19, 2026 - 15:17 EUVD
CVE Published
Aug 19, 2026 - 14:02 cve.org
HIGH 8.7

DescriptionCVE.org

GitPython before 3.1.58 contains a command execution vulnerability in the check_unsafe_options guard that can be bypassed by combining a single-character kwarg with split_single_char_options=False. Attackers can supply a crafted kwargs dictionary to guarded methods like clone_from to emit a joined token parsed as --upload-pack, enabling arbitrary OS command execution at default allow_unsafe_options=False.

Blast Radius

ecosystem impact
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 16 pypi packages depend on gitpython (15 direct, 1 indirect)

Ecosystem-wide dependent count for version 3.1.58.

Executive ViewAI

Why It Matters

GitPython versions before 3.1.58 contain a vulnerability that allows attackers to execute arbitrary commands on systems running this software. Organizations using GitPython for deployment automation, CI/CD pipelines, or repository management face immediate risk of unauthorized system access and code execution. With public exploit code available and no vendor patch currently released, organizations must implement urgent mitigations to prevent potential compromise of critical infrastructure and intellectual property.

Business Impact: Severe
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations include: restricting GitPython operations to internal, trusted repositories only with strict access controls; implementing comprehensive input validation for all git repository references; running git operations in isolated containers or virtual machines with minimal system privileges and network access; disabling automated git operations until patch availability; implementing enhanced logging and monitoring of all GitPython operations to detect exploitation attempts; air-gapping systems running vulnerable versions where possible.

Threat Intelligence Overview

EPSS Score
0.5%
Top 62% exploitable
Prevalence
Medium
widely used Python library in developer tooling and CI/CD platforms
Threat Intel
1
1 source
Exploit
POC
Public exploit code exists
Data Quality
8 sources
Confidence: High
EUVD 🇯🇵JVN NVD CVE.org EPSS Vulnrichment GHSA Vendor GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC Yes
EPSS 0.5%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
Very High
Technical Impact
Total

Priority Score

64
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +44
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

OS command injection occurs when an application passes unsanitized user input directly into system shell commands.

CVE-2022-24439 CRITICAL POC
9.8 Dec 06

All versions of package gitpython are vulnerable to Remote Code Execution (RCE) due to improper user input validation, w

CVE-2026-78676 CRITICAL POC
9.3 Aug 25

Arbitrary code execution in GitPython before 3.1.59 arises from unsafe re-serialization of multi-line, quoted git-config

CVE-2026-67325 HIGH POC
8.7 Aug 01

Command injection in GitPython before 3.1.51 allows low-privileged attackers to bypass the `check_unsafe_options` blockl

CVE-2026-42215 HIGH POC
8.8 May 07

Command injection in GitPython 3.1.30-3.1.46 allows remote authenticated attackers to execute arbitrary commands via und

CVE-2026-67323 HIGH POC
8.6 Aug 01

Command injection and arbitrary file overwrite in GitPython before 3.1.51 expose applications that pass attacker-control

CVE-2026-78677 HIGH POC
8.7 Aug 25

Arbitrary directory creation and potential hook-based code execution in GitPython affects all releases before 3.1.59. Th

CVE-2026-67322 HIGH POC
8.7 Aug 01

Environment variable exfiltration in GitPython before 3.1.52 allows any attacker who controls a URL passed to `Repo.clon

CVE-2026-78675 HIGH POC
8.6 Aug 25

GitPython before 3.1.59 discloses local file content through exception messages when parsing .gitmodules files that cont

CVE-2023-40590 HIGH POC
7.8 Aug 28

GitPython is a python library used to interact with Git repositories. Rated high severity (CVSS 7.8), this vulnerability

CVE-2026-78679 HIGH POC
7.1 Aug 25

Arbitrary file read in GitPython before 3.1.59 allows low-privileged remote attackers to exfiltrate sensitive files by s

CVE-2026-78678 HIGH POC
7.1 Aug 25

Arbitrary file read in GitPython versions before 3.1.59 exposes sensitive filesystem content to low-privileged network a

CVE-2023-41040 MEDIUM POC
6.5 Aug 30

GitPython is a python library used to interact with Git repositories. Rated medium severity (CVSS 6.5), this vulnerabili

Vendor StatusVendor

SUSE

Severity: Important
Product Status
SUSE Linux Enterprise Desktop 15 SP7 Affected
SUSE Linux Enterprise High Performance Computing 15 SP7 Affected
SUSE Linux Enterprise Module for Python 3 15 SP7 Affected
SUSE Linux Enterprise Server 15 SP7 Affected
SUSE Linux Enterprise Server 16.0 Affected

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy