---
schema_version: '1.0'
id: security-20260917-693c9a
title: CVE-2026-87818 — gitpython
url: https://osv.dev/vulnerability/PYSEC-2026-3983
url_hash: 693c9a3b0b47a6ca46677613cce21956b49baae2f356f3f7fffe981126e0ba9b
canonical_url: https://osv.dev/vulnerability/PYSEC-2026-3983
source: osv:pypa
category: security/library
category_raw: cve/library
region: null
tags:
- cve
- CVE-2026-87818
- PYSEC-2026-3983
- severity:CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
- gitpython
- PyPI
lang: en
published_at: '2026-09-09T12:17:16Z'
fetched_at: '2026-09-17T16:07:54.014796Z'
updated_at: '2026-09-17T16:15:28Z'
status: published
content_hash: cc3e263706e78584b60193dfe68d45821e6b22797fb8e662c03750e85a0f1c09
content_changed_at: null
license_note: full
summary: GitPython 3.1.59 fails to restrict the --no-index option in the high-level
  diff API, allowing attackers to read arbitrary filesystem paths as repository operands.
  Attackers can combine --no-index with -I/--ignore-matching-lines to create a content-dependent
  Boolean oracle, repeat
summary_source: rss
summary_en: GitPython 3.1.59 fails to restrict the --no-index option in the high-level
  diff API, allowing attackers to read arbitrary filesystem paths as repository operands.
  Attackers can combine --no-index with -I/--ignore-matching-lines to create a content-dependent
  Boolean oracle, repeat
summary_omitted_reason: null
redistribution: true
keywords_en:
- cve
- CVE-2025-69230
- CVE-2026-87818
- gitpython
- library vulnerability
- PyPI
- PyPI:click
- PYSEC-2026-3983
- software security
entities_en:
- name: CVE-2025-69230
  type: event
- name: PyPI:click
  type: artifact
topics_en:
- library vulnerability
- software security
numeric_facts: []
entities:
- name: CVE-2025-69230
  type: event
- name: PyPI:click
  type: artifact
key_facts: []
related: []
related_auto:
- name: CVE-2026-40347
  type: event
  weight: 1.0
- name: CVE-2026-21441
  type: event
  weight: 1.0
- name: portal
  type: organization
  weight: 1.0
computed_at: '2026-09-17T16:15:25Z'
---

# CVE-2026-87818 — gitpython

## TL;DR
GitPython 3.1.59 fails to restrict the --no-index option in the high-level diff API, allowing attackers to read arbitrary filesystem paths as repository operands. Attackers can combine --no-index with -I/--ignore-matching-lines to create a content-dependent Boolean oracle, repeat

## Key Points
- cve / CVE-2026-87818 / PYSEC-2026-3983 / severity:CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X / gitpython / PyPI

## Details
**Severity:** CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
**Advisory:** PYSEC-2026-3983 (CVE-2026-87818)

**Details:**
GitPython 3.1.59 fails to restrict the --no-index option in the high-level diff API, allowing attackers to read arbitrary filesystem paths as repository operands. Attackers can combine --no-index with -I/--ignore-matching-lines to create a content-dependent Boolean oracle, repeatedly querying local files to recover single-line secrets through distinguishable success or error responses.

**References:**
- https://www.vulncheck.com/advisories/gitpython-3.1.59-local-file-content-oracle-via-no-index
- https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-whh4-5q6c-9v3x

_Data: OSV.dev (upstream: pypa) — https://osv.dev/vulnerability/PYSEC-2026-3983_

## Source
元記事: [CVE-2026-87818 — gitpython](https://osv.dev/vulnerability/PYSEC-2026-3983) — published 2026-09-09T12:17:16Z
