{"schemaVersion":3,"id":"CVE-2026-87817","aliases":["GHSA-239g-whfq-7xj9","PYSEC-2026-3982","UBUNTU-CVE-2026-87817","DEBIAN-CVE-2026-87817","CGA-4gh9-vrm7-r5rh","CGA-7467-6594-qjg2","CGA-8vr3-vwh8-69rq","CGA-cpp3-gw43-rv8f","CGA-jv6j-w246-26pj","CGA-p6x5-8363-6j7h","CGA-xc3j-mf7q-pg24"],"status":"published","duplicateOf":null,"title":null,"description":"GitPython before 3.1.60 fails to properly validate the git directory location, allowing attackers to impersonate the git directory using tracked files like gitdir, commondir, and HEAD. Attackers can execute arbitrary code by placing a malicious pre-commit hook in the tracked hooks directory that executes when a victim calls index.commit() on a cloned or opened repository.","dates":{"published":"2026-09-09T11:21:04.007Z","modified":"2026-10-08T15:25:56.195Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":8.8,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"4.0","versionLabel":"v4.0","source":"CVE.org","score":8.7,"severity":"high","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":8.8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Pypi","score":8.7,"severity":"high","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","exploitability":null,"impact":null,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Ubuntu","score":8.7,"severity":"high","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","exploitability":null,"impact":null,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":8.8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":7.2,"impact":9.8,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Debian","score":8.7,"severity":"high","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","exploitability":null,"impact":null,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Chainguard","score":8.7,"severity":"high","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","exploitability":null,"impact":null,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"NVD","score":8.7,"severity":"high","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":8.8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00405,"percentile":0.33274,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0.07799999999999999,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.00327},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00309,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00309,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00309,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00327,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00327,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00327,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00327,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00327,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00327,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00327,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00405,"percentile":0.33274}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.00327,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00327,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00327,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00327,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00327,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00405,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00405,"percentile":0.33274}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"GITHUB_GITPYTHON-DEVELOPERS_GITPYTHON","name":"Gitpython","source":"github","url":"https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-wfm5-v35h-vwf4","maturity":"poc","reliabilityScore":0.3,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":1,"weaknesses":[{"id":"CWE-94","name":"Improper Control of Generation of Code ('Code Injection')","description":"The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":"Medium","url":"https://cwe.mitre.org/data/definitions/94.html"}],"affected":[{"vendor":"chainguard","product":"awx","name":"awx","label":"awx","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/awx","purlType":"apk","versions":[{"text":"< 24.6.1-r64","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 24.6.1-r64","eol":null,"hubHref":null},{"vendor":"chainguard","product":"nemo-rl-cuda-13.0","name":"nemo-rl-cuda-13.0","label":"nemo-rl-cuda-13.0","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/nemo-rl-cuda-13.0","purlType":"apk","versions":[{"text":"< 0.7.0-r2","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.7.0-r2","eol":null,"hubHref":null},{"vendor":"chainguard","product":"nemo-rl-cuda-13.0-automodel","name":"nemo-rl-cuda-13.0-automodel","label":"nemo-rl-cuda-13.0-automodel","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/nemo-rl-cuda-13.0-automodel","purlType":"apk","versions":[{"text":"< 0.7.0-r2","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.7.0-r2","eol":null,"hubHref":null},{"vendor":"chainguard","product":"nemo-rl-cuda-13.0-mcore","name":"nemo-rl-cuda-13.0-mcore","label":"nemo-rl-cuda-13.0-mcore","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/nemo-rl-cuda-13.0-mcore","purlType":"apk","versions":[{"text":"< 0.7.0-r2","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.7.0-r2","eol":null,"hubHref":null},{"vendor":"chainguard","product":"nemo-rl-cuda-13.0-sglang","name":"nemo-rl-cuda-13.0-sglang","label":"nemo-rl-cuda-13.0-sglang","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/nemo-rl-cuda-13.0-sglang","purlType":"apk","versions":[{"text":"< 0.7.0-r2","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.7.0-r2","eol":null,"hubHref":null},{"vendor":"chainguard","product":"nemo-rl-cuda-13.0-vllm","name":"nemo-rl-cuda-13.0-vllm","label":"nemo-rl-cuda-13.0-vllm","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/nemo-rl-cuda-13.0-vllm","purlType":"apk","versions":[{"text":"< 0.7.0-r2","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.7.0-r2","eol":null,"hubHref":null},{"vendor":"debian","product":"python-git","name":"python-git","label":"python-git","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/python-git","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null},{"text":"< 3.1.61-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"All versions (No fix recorded) | < 3.1.61-1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"python-git","name":"python-git","label":"python-git","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/python-git","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"gitpython_project","product":"gitpython","name":"gitpython","label":"gitpython","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 3.1.60","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.1.60","eol":null,"hubHref":"/vendor/gitpython_project/gitpython"},{"vendor":"gitpython-developers","product":"gitpython","name":"GitPython","label":"gitpython","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 3.1.60","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.1.60","eol":null,"hubHref":"/vendor/gitpython-developers/gitpython"},{"vendor":"PyPI","product":"gitpython","name":"gitpython","label":"gitpython","ecosystem":"PyPI","cpePart":null,"purl":"pkg:pypi/gitpython","purlType":"pypi","versions":[{"text":"< 3.1.60","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.1.60","eol":null,"hubHref":null}],"affectedCount":11,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-239g-whfq-7xj9","label":"github.com/gitpython-developers/GitPython/security/advisories/GHSA-239g-whfq-7xj9","hostname":"github.com","tags":["Vendor Advisory","WEB","EVIDENCE","REPORT","Advisory","Exploit","Mitigation"]},{"url":"https://www.vulncheck.com/advisories/gitpython-before-3.1.60-remote-code-execution-via-git-directory-impersonation","label":"www.vulncheck.com/advisories/…","hostname":"www.vulncheck.com","tags":["Third Party Advisory","WEB","Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-87817","label":"nvd.nist.gov/vuln/detail/CVE-2026-87817","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/gitpython-developers/GitPython/pull/2218","label":"github.com/gitpython-developers/GitPython/pull/2218","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/gitpython-developers/GitPython/commit/c7cf4d13b1ed0a2e70f2a1f3c6b4fc6c2652cf0b","label":"github.com/gitpython-developers/GitPython/commit/c7cf4d13b1ed0a2e70f2a1f3c6b4fc6c2652cf0b","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/gitpython-developers/GitPython","label":"github.com/gitpython-developers/GitPython","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://github.com/gitpython-developers/GitPython/releases/tag/3.1.60","label":"github.com/gitpython-developers/GitPython/releases/tag/3.1.60","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/gitpython/PYSEC-2026-3982.yaml","label":"github.com/pypa/advisory-database/tree/main/vulns/gitpython/PYSEC-2026-3982.yaml","hostname":"github.com","tags":["WEB"]},{"url":"https://ubuntu.com/security/CVE-2026-87817","label":"ubuntu.com/security/CVE-2026-87817","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-87817","label":"www.cve.org/CVERecord?id=CVE-2026-87817","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2026-87817","label":"security-tracker.debian.org/tracker/CVE-2026-87817","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/87xxx/CVE-2026-87817.json","label":"github.com/CVEProject/cvelistV5/tree/main/cves/2026/87xxx/CVE-2026-87817.json","hostname":"github.com","tags":["Advisory"]}],"lineage":{"upstream":["GHSA-2PXQ-5VCG-RQ29"],"downstream":["OPENSUSE-SU-2026:21874-1","RHSA-2026:71113","RHSA-2026:71114","RHSA-2026:74503","RHSA-2026:74504","RHSA-2026:74505","RHSA-2026:74506","SUSE-SU-2026:4191-1"],"duplicates":[],"related":["OPENSUSE-SU-2026:21874-1","SUSE-SU-2026:4191-1"]},"timeline":[{"kind":"published","date":"2026-09-09T11:21:04.007Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-10-08T15:25:56.195Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":45,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T07:16:48.542Z","stale":false,"partial":false}}