GitPython before 3.1.58 contains a remote code execution vulnerability in Repo.init that forwards unsafe git options without validation. Attackers can supply a template parameter pointing to a directory with malicious git hooks that execute arbitrary code when git operations are performed on the initialized repository.
CVE-2026-76218
Score 7.5 from GitHub Security Advisory (severity: HIGH) published 2026-08-19. a secondary CVSS source baseline 7.5; sources differ by 0.0.
- High severity, but no confirmed exploitation yet
No vendor fix yet — apply a workaround or compensating control (WAF / firewall / segmentation) and watch for a patch.
- CVSS v3
- 7.5
- EG Score
- 7.5(high)
- EG Risk
- 34(Track)EG Risk 34/100SSVC: Track
EG Risk is EchelonGraph's 0–100 priority score: it fuses intrinsic severity with real-world exploitation and automatability so you can rank equal-severity CVEs and fix the most dangerous first. Higher = act sooner. Distinct from the 0–10 EG Score (severity).
How it’s computedSeverity75% × 45%Exploitation0% × 40%Automatability0% × 15%Action: Routine — remediate on your standard cadence. - EPSS PROB
- 0%
- EPSS %ILE
- 40%
- KEV
- Not listed
Published
August 19, 2026
Last Modified
August 20, 2026
Advisory Details (2)
Auto-updated Aug 19, 2026GitPython before 3.1.58 Remote Code Execution via Repo.init | Advisories | VulnCheck
https://www.vulncheck.com/advisories/gitpython-before-remote-code-execution-via-repo-initUnguarded git option forwarding in Repo.init enables arbitrary command execution via --template clone hooks · Advisory · gitpython-developers/GitPython · GitHub
https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-9rj7-rf2p-w77rVendor Advisories for CVE-2026-76218(1)
These vendors published their own advisory mentioning this CVE — often with vendor-specific remediation steps + affected product lists not in NVD.
Affected Packages
(1 across 1 ecosystem)
PyPI(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| gitpython | 0.1.7 ... 3.1.9 (110 versions) | 3.1.58 | — |
Weakness Classification(1)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
Data Freshness Timeline
(refreshed 20× in last 7d / 20× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
- 2026-08-21 07:15 UTCEG score recompute
- 2026-08-21 07:15 UTCGHSA enrichment
- 2026-08-20 22:56 UTCEPSS rescore
- 2026-08-20 19:18 UTCEG score recompute
- 2026-08-20 19:18 UTCGHSA enrichment
- 2026-08-20 18:52 UTCEG score recompute
- 2026-08-20 18:52 UTCGHSA enrichment
- 2026-08-20 16:16 UTCEG score recompute
- 2026-08-20 16:16 UTCGHSA enrichment
- 2026-08-20 04:19 UTCEG score recompute
- 2026-08-20 04:19 UTCGHSA enrichment
- 2026-08-20 04:08 UTCEG score recompute
- 2026-08-20 04:08 UTCGHSA enrichment
- 2026-08-20 03:21 UTCEG score recompute
- 2026-08-20 03:21 UTCGHSA enrichment
- 2026-08-19 15:24 UTCEG score recompute
- 2026-08-19 15:09 UTCEG score recompute
- 2026-08-19 14:26 UTCEG score recompute
- 2026-08-19 14:12 UTCEG score recompute
- 2026-08-19 14:12 UTCMITRE cvelistV5first tracked
Frequently asked(5)
What is CVE-2026-76218?
When was CVE-2026-76218 disclosed?
Is CVE-2026-76218 actively exploited?
What is the CVSS score of CVE-2026-76218?
How do I remediate CVE-2026-76218?
Dependency Blast Radius
See which npm, PyPI, Go, and Maven packages are affected by CVE-2026-76218
Is Your Infrastructure Affected by CVE-2026-76218?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.