GitPython before 3.1.57 Arbitrary File Overwrite and Read
En bref
Sévérité
HIGH 7.2
EPSS
EPSS 0.57 % · centile 47 (2026-10-27)
État
PUBLISHED
Publiée
Mise à jour
Attribuée par
VulnCheck
Statut NVD
Analyzed
Description
GitPython before 3.1.57 fails to guard git option forwarding in IndexFile.checkout() and TagReference.create(), allowing attackers to pass unsafe options via kwargs. Attackers can use --prefix to overwrite arbitrary files with repository content or -F to read arbitrary files returned in-band.
GHSA-3f7w-8rr8-f37f — GitPython: Unguarded git option forwarding in IndexFile.checkout() and TagReference.create() enables arbitrary file overwrite and arbitrary file read
PYSEC-2026-3949 — GitPython before 3.1.57 fails to guard git option forwarding in IndexFile.checkout() and TagReference.create(), allowing attackers to pass unsafe options via kw