Skip to main content

GitPython CVE-2026-110859

| EUVDEUVD-2026-101742 HIGH
Improper Neutralization of Argument Delimiters in a Command ('Argument Injection') (CWE-88)
2026-10-14 disclosure@vulncheck.com GHSA-pv89-gqgv-pcc9
8.7
CVSS 4.0 · Vendor: vulncheck
View

Attack ChainAIDerived

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

  1. Access
    Host repo with malicious default branch name
  2. Delivery
    Victim app clones untrusted repository
  3. Exploit
    Head.checkout() passes branch name as git option
  4. Execution
    git reads attacker-specified file path
  5. Impact
    File contents leaked via GitCommandError message

Vulnerability Assessment

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

Exploitation requires a victim application built on GitPython before 3.2.0 that clones an attacker-controlled repository and then checks out its active/default branch (calling Head.checkout() on an untrusted branch name). The attacker must control the repository's default branch name and set it to a crafted git option such as '--pathspec-from-file=<path>'. LIMITING FACTORS: only confidentiality is affected (arbitrary file read, no write/RCE); the target must process untrusted remote repos and auto-checkout, which is not universal; the file path must be readable by the process running GitPython; and the leaked content is returned via GitCommandError output, so the application must surface or log those errors to the attacker. Upgrading to GitPython 3.2.0 removes the condition entirely.

Impact

This is a credible but conditional information-disclosure flaw rather than a drop-everything emergency. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N) yields 8.7 (High) driven entirely by high confidentiality impact (VC:H) with no integrity or availability impact (VI:N/VA:N) and no scope change to subsequent systems - consistent with CWE-88 argument injection enabling arbitrary file read. The network/unauthenticated/no-interaction metrics look severe in isolation, but the real-world trigger is narrower than the vector implies: exploitation requires a downstream application that uses GitPython <3.2.0 AND automatically checks out the active/default branch of an attacker-controlled repository, so the '8.7' overstates risk for environments that do not clone untrusted repos. No EPSS score, SSVC decision, KEV listing, or POC was provided in the input, so exploitation probability and automatability cannot be quantified from the data given. Net: a genuine issue worth prioritizing for products/pipelines that ingest untrusted git repositories via GitPython, but likely low-to-moderate real-world risk elsewhere; treat as patch-on-schedule unless you run such clone-and-checkout automation.

Exploit ScenarioDerived

An attacker publishes a malicious git repository whose default branch is named '--pathspec-from-file=/etc/passwd' (or another sensitive path). A victim service that uses GitPython to clone the repo and check out its active branch passes that branch name unsanitized to git, which interprets it as an option; the resulting GitCommandError message leaks the file's contents back to the attacker. No public exploit code was identified in the provided data.

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

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

Alert me

AnalysisAIv1 – Oct 15, 2026

Arbitrary file read in GitPython before 3.2.0 occurs when a vulnerable application clones an attacker-controlled repository and then calls Head.checkout() on the repository's default branch; a branch named like --pathspec-from-file=<path> is parsed by Git as an option rather than a branch, causing readable file contents to be leaked through GitCommandError messages. This is a credible but conditional information-disclosure flaw, not a drop-everything emergency: only confidentiality is affected, exploitation requires the target to process untrusted repositories and surface error output, and no public exploit identified at time of analysis. Unauthenticated network exploitation is possible per the PR:N vector, and the vendor patch is GitPython 3.2.0.

RemediationAI

Upgrade to GitPython 3.2.0, the vendor-released fixed version. If immediate upgrade is not possible, avoid automatically checking out the default or active branch of untrusted repositories and validate branch names before calling Head.checkout(), rejecting any name that begins with a hyphen or otherwise matches git option syntax; where checkout must proceed, pass a literal -- separator before the branch name in the underlying Git invocation. Also avoid exposing raw GitCommandError output to untrusted users or logs they can read, and run the GitPython process with least privilege so sensitive files are not readable. These compensating controls reduce exposure but do not fully remove the argument-injection condition; the durable fix is the 3.2.0 upgrade. See https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-23mf-xhv8-69c2 and https://www.vulncheck.com/advisories/gitpython-before-3.2.0-arbitrary-file-read-via-head-checkout-branch-name.

Affected VersionsENISA

GitPython 0 <3.2.0

Affected Packages

euvd gitpython fix: 3.2.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

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

Technical ContextAI · show details

GitPython is a Python library that wraps the Git command-line client. CVE-2026-110859 is a CWE-88 argument injection flaw in Head.checkout(): before 3.2.0, the method passes a branch name to git checkout without ensuring that a value beginning with a dash cannot be parsed as an option. An attacker-controlled repository can set its default branch to a string such as --pathspec-from-file=<path>, so a downstream application that clones the repository and then checks out the active branch causes Git to interpret that branch name as the --pathspec-from-file option. The resulting GitCommandError can disclose the contents of a file readable by the GitPython process. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N) and the independent CVSS 3.1 assessment (AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N) both characterize this as unauthenticated network-triggered arbitrary file read with no integrity or availability impact; exploitation is conditional on the application automatically checking out an untrusted repository's default branch and exposing or logging the Git error message.

Know when Python 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:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
vuln.today AI 7.5 HIGH

Network-reachable, unauthenticated argument injection via attacker-named branch with no user interaction; arbitrary file read gives C:H while I:N/A:N as no modification or availability impact.

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

Primary rating from Vendor (vulncheck).

CVSS VectorVendor: vulncheck

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

Lifecycle Timeline

2
Patch available
Oct 15, 2026 - 02:16 EUVD
CVE Published
Oct 14, 2026 - 23:17 cve.org
HIGH 8.7

DescriptionCVE.org

GitPython before 3.2.0 contains an argument injection vulnerability in Head.checkout() that allows remote attackers to read arbitrary files by supplying a branch name parsed as a git option. Attackers can host a repository whose default branch is named --pathspec-from-file=<path>, causing cloning applications that check out the active branch to leak file contents through GitCommandError messages.

Technical POC Analysis

Advisory: GHSA-23mf-xhv8-69c2.

Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.

Executive ViewAI

Why It Matters

GitPython versions before 3.2.0 can leak the contents of readable files from any system that clones a repository controlled by an attacker and then checks out its default branch, because a maliciously named branch is misinterpreted as a command-line option and its contents are echoed back in error messages. The exposure is limited to confidentiality and only materializes in workflows that pull untrusted repositories and surface raw Git errors, which typically means CI/CD pipelines, build servers, and developer tooling. Leadership should care because those environments often hold credentials, tokens, and proprietary source code that could be disclosed without any authentication or user interaction beyond the normal build process.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.3%
Top 78% exploitable
Prevalence
High
GitPython is a widely used Python git-interaction library across tooling and CI
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment Vendor GitHub

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.3%
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
Poc
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Partial

Priority Score

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

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

More in Python

View all
CVE-2025-24016 CRITICAL POC
9.9 Feb 10

Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t

CVE-2025-27520 CRITICAL POC
9.8 Apr 04

BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser

CVE-2025-2945 CRITICAL POC
9.9 Apr 03

pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi

CVE-2013-5093 MEDIUM POC
6.8 Sep 27

The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python

CVE-2025-32375 CRITICAL POC
9.8 Apr 09

BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica

CVE-2014-0224 HIGH POC
7.4 Jun 05

OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph

CVE-2024-21644 HIGH POC
7.5 Jan 08

pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.

CVE-2026-33017 CRITICAL POC
9.3 Mar 17

Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301

CVE-2017-9462 HIGH POC
8.8 Jun 06

In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse

CVE-2026-49869 CRITICAL POC
10.0 Jun 26

Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to

CVE-2026-39987 CRITICAL POC
9.3 Apr 08

Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/

CVE-2024-21645 MEDIUM POC
5.3 Jan 08

pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne

Vendor StatusVendor

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