Advisory record · GHSA-9rj7-rf2p-w77r

GitPython: Unguarded git option forwarding in Repo.init enables arbitrary command execution via --template clone hooks

CVSS 7.7 HighEPSS 0.0072 · 54th percentile

Published by the GitHub Advisory Database at 7 Aug 2026, 15:36 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
gitpythonPyPI<3.1.583.1.58
Identifiers
GHSA-9rj7-rf2p-w77r · CVE-2026-76218 · PYSEC-2026-3840
Weakness (CWE)
CWE-88 · CWE-94
Published
7 Aug 2026
Updated
10 Sept 2026

Machine-written summary

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

GitPython versions before 3.1.58 are vulnerable. Repo.init() passes keyword arguments straight to git init without checking for unsafe options, so a template argument can install hooks that run on later git operations. An attacker who can supply that argument and place a hook directory at a known path could get arbitrary code execution with the host process's privileges. Upgrade to GitPython 3.1.58 or later.

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
7.7 High 4.0 CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N CNA (VulnCheck)
  • CISA KEV Not listed.
  • EPSS 0.0072, the 54th percentile, on 12 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

Timeline

  1. 31 Oct 2026, 14:10 UTC First seen by agentprime
  2. 31 Oct 2026, 14:10 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.