---
id: CVE-2026-110858
title: >-
  GitPython from 3.1.30 before 3.2.0 contains a remote code execution
  vulnerability in Remote.pull() whose unsafe-option guard inspects only keyword
  arguments, not the positional refspec
summary: >-
  GitPython from 3.1.30 before 3.2.0 contains a remote code execution
  vulnerability in Remote.pull() whose unsafe-option guard inspects only keyword
  arguments, not the positional refspec. Attackers controlling the refspec can
  supply --uplo…
severity: high
cvss: 8.1
cvssVector: 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H'
cwe:
  - CWE-88
vendor: gitpython-developers
product: GitPython
affected:
  - GitPython >= 3.1.30 < 3.2.0
patched:
  - gitpython 3.2.0
published: '2026-10-14'
updated: '2026-10-16'
sourceUpdated: '2026-10-16T18:17:34.013'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-110858'
references:
  - url: >-
      https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-f9j4-qggq-h239
    label: disclosure@vulncheck.com
  - url: >-
      https://www.vulncheck.com/advisories/gitpython-3.1.30-before-3.2.0-command-injection-via-remote-pull-refspec
    label: disclosure@vulncheck.com
  - url: >-
      https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-110858.json
  - url: 'https://access.redhat.com/security/cve/CVE-2026-110858'
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2552959'
  - url: 'https://www.cve.org/CVERecord?id=CVE-2026-110858'
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-110858'
  - url: 'https://github.com/gitpython-developers/GitPython/pull/2247'
  - url: >-
      https://github.com/gitpython-developers/GitPython/commit/790bb3164948625ffb043d2a162425d55923fe9a
  - url: 'https://github.com/gitpython-developers/GitPython'
  - url: 'https://github.com/gitpython-developers/GitPython/releases/tag/3.2.0'
tags:
  - nvd
  - cve.org
  - csaf
  - vex
  - red-hat
  - osv
  - pip
epss: 0.00465
epssPercentile: 0.40374
aliases:
  - GHSA-f9j4-qggq-h239
ecosystem: pip
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: total
  timestamp: '2026-10-16T16:35:47.134823Z'
ingestedAt: '2026-10-15T00:02:07.184Z'
---

## Overview

GitPython from 3.1.30 before 3.2.0 contains a remote code execution vulnerability in Remote.pull() whose unsafe-option guard inspects only keyword arguments, not the positional refspec. Attackers controlling the refspec can supply --upload-pack=<command> to execute OS commands as the calling process over local-path or SSH transports.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.

## Package advisory (CVE-2026-110858)

Affected packages:

- `gitpython >= 3.1.30, < 3.2.0`

Patched in:

- `gitpython 3.2.0`

Source: https://osv.dev/vulnerability/GHSA-f9j4-qggq-h239

## Vendor advisories

- **Red Hat VEX** · Critical · affected: Exploit Intelligence, Red Hat AI Inference Server, Red Hat Ansible Automation Platform 2, Red Hat Enterprise Linux AI (RHEL AI) 3, Red Hat OpenShift AI (RHOAI), Red Hat Satellite 6 · no fix planned: Exploit Intelligence, Red Hat AI Inference Server, Red Hat Ansible Automation Platform 2, Red Hat Enterprise Linux AI (RHEL AI) 3, … · updated 2026-10-21 · [vex](https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-110858.json)
