Skip to content
OpenAdvisories
Medium · 6.5 CVE-2026-87818 EUVD-2026-74844GHSA-rw58-wc66-99g4GHSA-whh4-5q6c-9v3xPYSEC-2026-3983

GitPython 3.1.59 Local File Content Oracle via --no-index

Published Sep 9, 2026 · Updated Oct 8, 2026 · Assigned by VulnCheck

Description

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.

Affected products

VendorProductAffectedFixed
gitpython-developers GitPython 3.1.59 – < 3.1.60 3.1.60

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 python-git 3.1.61-1 —
Debian 13 python-git 3.1.44-1+deb13u1 —
Debian 12 python-git 3.1.30-1+deb12u3 —
ReleasePackageFixed inAdvisory
Ubuntu Pro 26.04 LTS python-git No fix yet —
Ubuntu Pro 24.04 LTS python-git No fix yet —
Ubuntu Pro 22.04 LTS python-git No fix yet —
Show 4 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 20.04 LTS python-git No fix yet —
Ubuntu Pro 18.04 LTS python-git No fix yet —
Ubuntu Pro 16.04 LTS python-git No fix yet —
Ubuntu Pro 14.04 LTS python-git No fix yet —
ReleasePackageFixed inAdvisory
SLES 15 SP6 python-GitPython 3.1.34.1693646983.2a2ae77-150400.9.11.1 SUSE-SU-2026:4191-1
SLES 15 SP5 python-GitPython 3.1.34.1693646983.2a2ae77-150400.9.11.1 SUSE-SU-2026:4191-1
SLES 15 SP4 python-GitPython 3.1.34.1693646983.2a2ae77-150400.9.11.1 SUSE-SU-2026:4191-1
SLES 3 python-GitPython 3.1.34.1693646983.2a2ae77-150400.9.11.1 SUSE-SU-2026:4191-1
Show 5 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 15 SP6 python-GitPython 3.1.34.1693646983.2a2ae77-150400.9.11.1 SUSE-SU-2026:4191-1
SLES for SAP 15 SP5 python-GitPython 3.1.34.1693646983.2a2ae77-150400.9.11.1 SUSE-SU-2026:4191-1
SLES for SAP 15 SP4 python-GitPython 3.1.34.1693646983.2a2ae77-150400.9.11.1 SUSE-SU-2026:4191-1
SLE HPC 15 SP5 python-GitPython 3.1.34.1693646983.2a2ae77-150400.9.11.1 SUSE-SU-2026:4191-1
SLE HPC 15 SP4 python-GitPython 3.1.34.1693646983.2a2ae77-150400.9.11.1 SUSE-SU-2026:4191-1
ReleasePackageFixed inAdvisory
openSUSE Leap 16.0 python-GitPython 3.1.44-160000.4.1 openSUSE-SU-2026:21874-1

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI gitpython >= 3.1.59, < 3.1.60 3.1.60 GHSA-whh4-5q6c-9v3x

Advisories 2

References