Advisory record · GHSA-239g-whfq-7xj9

GitPython: Repository content can impersonate the git directory, leading to arbitrary code execution

CVSS 8.7 HighEPSS 0.0042 · 36th percentile

Published by the GitHub Advisory Database at 30 Sept 2026, 23:27 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
gitpythonPyPI<3.1.603.1.60
Identifiers
GHSA-239g-whfq-7xj9 · CVE-2026-87817 · PYSEC-2026-3982
Weakness (CWE)
CWE-94 · CWE-427
Published
30 Sept 2026
Updated
30 Sept 2026

Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

GitPython versions before 3.1.60 can mis-resolve the git directory when a repository's root contains tracked files named HEAD, objects/, refs/, config, gitdir, commondir and hooks/, which git allows. An attacker who supplies such a repository can get a victim who opens or clones it, and then commits through GitPython, to run commands via a hook, or read files outside the repository through its config. Upgrade to GitPython 3.1.60 or later; the source gives no other workaround.

Written 1 Nov 2026.

Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

Severity and exploitation

ScoreRatingCVSSVectorSource
8.7 High 4.0 CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N CNA (VulnCheck)
  • CISA KEV Not listed.
  • EPSS 0.0042, the 36th percentile, on 5 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

Timeline

  1. 31 Oct 2026, 14:09 UTC First seen by agentprime
  2. 31 Oct 2026, 14:09 UTC Confirmed by OSV

Sources

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.