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.
https://www.vulncheck.com/advisories/gitpython-before-arbitrary-file-overwrite-and-read
https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-3f7w-8rr8-f37f
Published: 2026-08-13
Updated: 2026-08-13
Base Score: 8.5
Vector: CVSS2#AV:N/AC:L/Au:S/C:N/I:C/A:C
Severity: High
Base Score: 8.1
Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H
Severity: High
Base Score: 7.2
Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N
Severity: High