{"id":"GHSA-7r39-6q8m-qw68","title":"Duplicate Advisory: clone_from()/clone() omit --separate-git-dir from unsafe_git_clone_options, enabling arbitrary git-directory creation outside the destination","summary":"Duplicate Advisory: clone_from()/clone() omit --separate-git-dir from unsafe_git_clone_options, enabling arbitrary git-directory creation outside the destination","severity":"high","cvss":7.5,"cwe":["CWE-22"],"vendor":"gitpython","product":"gitpython","ecosystem":"pip","affected":["gitpython <= 3.1.58"],"published":"2026-08-25","updated":"2026-09-08","sourceUpdated":"2026-09-08T18:41:45Z","source":"GHSA","sourceUrl":"https://github.com/advisories/GHSA-7r39-6q8m-qw68","references":[{"url":"https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-8mcc-hrx5-hvxc"},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-78677"},{"url":"https://www.vulncheck.com/advisories/gitpython-before-path-traversal-via-separate-git-dir"},{"url":"https://github.com/advisories/GHSA-7r39-6q8m-qw68"}],"tags":["ghsa","pip"],"ingestedAt":"2026-09-08T19:08:49.634Z","slug":"GHSA-7r39-6q8m-qw68","body":"## Overview\n\n## Duplicate Advisory\n\nThis advisory has been withdrawn because it is a duplicate of GHSA-8mcc-hrx5-hvxc. This link is maintained to preserve external references.\n\n## Original Description\nGitPython before 3.1.59 omits --separate-git-dir from unsafe_git_clone_options, allowing attackers to create arbitrary git directories outside the intended clone destination. Attackers can pass a separate_git_dir parameter to Repo.clone_from() or Repo.clone() to redirect repository metadata to an attacker-controlled filesystem path, enabling arbitrary directory creation and potential hook execution.\n\n## Affected packages\n\n- `gitpython <= 3.1.58`\n\n## Remediation\n\nRefer to the advisory for the patched release.","depth":"twilight","depthScore":41,"depthScoreParts":{"impact":41.3,"likelihood":0,"exploitation":0,"ransomware":0},"changes":[]}