---
id: CVE-2026-67324
title: >-
  GitPython 3.1.50 fails to recognize joined short-option forms such as
  -u<value> (the short form of --upload-pack=<value>) when enforcing its default
  unsafe-option gate
summary: >-
  GitPython 3.1.50 fails to recognize joined short-option forms such as
  -u<value> (the short form of --upload-pack=<value>) when enforcing its default
  unsafe-option gate. When an application passes attacker-influenced clone
  options into Re…
severity: critical
cvss: 9.8
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'
cwe:
  - CWE-78
published: '2026-08-01'
updated: '2026-08-01'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-67324'
references:
  - url: >-
      https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-v396-v7q4-x2qj
    label: disclosure@vulncheck.com
  - url: >-
      https://www.vulncheck.com/advisories/gitpython-authentication-bypass-via-joined-short-options
    label: disclosure@vulncheck.com
  - url: >-
      https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-67324.json
  - url: 'https://access.redhat.com/security/cve/CVE-2026-67324'
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2510032'
  - url: 'https://www.cve.org/CVERecord?id=CVE-2026-67324'
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-67324'
  - url: 'https://access.redhat.com/errata/RHSA-2026:59135'
  - url: 'https://access.redhat.com/errata/RHSA-2026:59136'
  - url: 'https://access.redhat.com/errata/RHSA-2026:65126'
  - url: 'https://github.com/gitpython-developers/GitPython/pull/2162'
  - url: 'https://github.com/gitpython-developers/GitPython'
  - url: 'https://github.com/gitpython-developers/GitPython/releases/tag/3.1.51'
tags:
  - nvd
  - csaf
  - vex
  - red-hat
  - osv
  - pip
ingestedAt: '2026-08-02T07:18:02.207Z'
epss: 0.00644
epssPercentile: 0.48635
vendor: Red Hat
product: Red Hat OpenShift AI (RHOAI)
affected:
  - ansible_automation_platform 2
  - openshift_ai_rhoai
  - ansible_automation_platform_2_5_for_rhel 8
  - ansible_automation_platform_2_5_for_rhel 9
  - ansible_automation_platform_2_6_for_rhel 9
patched:
  - ansible_automation_platform_2_5_for_rhel 8
  - ansible_automation_platform_2_5_for_rhel 9
  - ansible_automation_platform_2_6_for_rhel 9
scores:
  nvd: 9.8
  vendor: 8.8
aliases:
  - PYSEC-2026-3947
  - GHSA-v396-v7q4-x2qj
ecosystem: pip
---

## Overview

GitPython 3.1.50 fails to recognize joined short-option forms such as -u<value> (the short form of --upload-pack=<value>) when enforcing its default unsafe-option gate. When an application passes attacker-influenced clone options into Repo.clone_from(..., multi_options=..., allow_unsafe_options=False), an attacker can supply -u<helper> to bypass the gate that blocks --upload-pack/-u, causing Git to execute the specified helper command during clone. Fixed in 3.1.51.

## Remediation

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

## Vendor advisories

- **RHSA-2026:59135** · Red Hat · fixed in: Red Hat Ansible Automation Platform 2.5 for RHEL 8, Red Hat Ansible Automation Platform 2.5 for RHEL 9 · released 2026-08-24 · [advisory](https://access.redhat.com/errata/RHSA-2026:59135)
- **RHSA-2026:59136** · Red Hat · fixed in: Red Hat Ansible Automation Platform 2.6 for RHEL 9 · released 2026-08-24 · [advisory](https://access.redhat.com/errata/RHSA-2026:59136)
- **Red Hat VEX** · Important · affected: Red Hat Ansible Automation Platform 2, Red Hat OpenShift AI (RHOAI) · no fix planned: Red Hat Ansible Automation Platform 2, Red Hat OpenShift AI (RHOAI) · updated 2026-09-08 · [vex](https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-67324.json)
- **RHSA-2026:65126** · Red Hat · fixed in: Red Hat OpenShift AI 2.25 · released 2026-09-08 · [advisory](https://access.redhat.com/errata/RHSA-2026:65126)

## Package advisory (CVE-2026-67324)

Affected packages:

- `gitpython >= 3.1.50, < 3.1.51`

Patched in:

- `gitpython 3.1.51`

Source: https://osv.dev/vulnerability/PYSEC-2026-3947
