Sceawere
Vulnerability Detail
CVE-2026-73623UPDATED Verified Sceawere Triage Sources: NVD / CISA KEV
GitPython Unsafe Git Clone Options Command Execution
Vulnerability Metadata
- Severity
- High
- Score / CVSS
- 7.5
- Creation Date
- 9h ago
- Vendor
- gitpython-developers
- Product
- GitPython
- Attack Type
- Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
- Vector String
- CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
- Attack Complexity
- HIGH
Narrative and Response
Description
GitPython before 3.1.54 contains an incomplete denylist in unsafe_git_clone_options that omits --template, allowing attackers to achieve arbitrary command execution during clone operations. Attackers can supply --template pointing to a directory containing malicious post-checkout hooks that execute when git clones the repository.
Executive Summary
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Technical Details
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Mitigations
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
References
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Additional Metadata
{
"score": "7.5",
"pubDate": "2026-08-13T12:17:27.477Z",
"pubdate": "2026-08-13T12:17:27.477Z",
"executiveSummary": "GitPython before version 3.1.54 contains an incomplete denylist vulnerability within the unsafe_git_clone_options mechanism.\nThe vulnerability allows remote attackers to achieve arbitrary command execution during repository clone operations.\nThe affected product is GitPython in versions prior to 3.1.54.\nRisk implications include full system compromise or execution of arbitrary code in the context of the user running the clone operation.\nAttacker capabilities involve supplying malicious arguments, specifically the omitted --template option, to target clone procedures.\nExploitation requires the attacker to trick a user or application into cloning a repository with maliciously crafted clone options that leverage template injection.",
"technicalDetails": "The root cause of the vulnerability resides in an incomplete denylist implementation inside the unsafe_git_clone_options component of GitPython.\nWhile certain potentially dangerous command-line options for the underlying git executable are restricted or filtered, the denylist specifically omits the --template parameter.\nThe vulnerable component is the argument validation logic used when passing parameters to git clone operations within GitPython prior to version 3.1.54.\nNo authentication or specific privilege requirements are inherently mandated by the vulnerability itself; rather, exploitation relies on the application's handling of untrusted input passed to clone functions.\nThe network exposure depends on how the application utilizes GitPython to process repositories from remote or untrusted sources.\nThe exploitation method begins when an attacker supplies a malicious command-line option, specifically --template, pointing to a local or externally accessible directory containing crafted template files.\nDuring the execution of git clone, Git honors the --template option by copying files from the specified template directory into the new repository's .git directory.\nAn attacker leverages this behavior by populating the template directory with a malicious post-checkout hook script.\nAs the clone operation completes and the working tree is populated, git automatically executes the post-checkout hook located within the .git/hooks directory.\nThe payload behavior involves the immediate execution of arbitrary operating system commands defined in the post-checkout hook script, executing within the security context of the user process invoking GitPython.\nThe post-exploitation impact includes arbitrary command execution, potential lateral movement, data exfiltration, or complete compromise of the host environment depending on the privileges of the executing process."
}