{"schemaVersion":4,"id":"CVE-2024-22190","aliases":["GHSA-2mqj-m65w-jghx","PYSEC-2024-4","UBUNTU-CVE-2024-22190","CGA-3vg5-m4p3-mjf9","CGA-v8vf-2w63-46gg"],"status":"published","duplicateOf":null,"title":"Untrusted search path under some conditions on Windows allows arbitrary code execution","description":"GitPython is a python library used to interact with Git repositories. There is an incomplete fix for CVE-2023-40590. On Windows, GitPython uses an untrusted search path if it uses a shell to run `git`, as well as when it runs `bash.exe` to interpret hooks. If either of those features are used on Windows, a malicious `git.exe` or `bash.exe` may be run from an untrusted repository. This issue has been patched in version 3.1.41.","dates":{"published":"2024-01-11T01:23:17.944Z","modified":"2024-09-03T18:23:46.612Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.8,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":7.8,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Pypi","score":7.8,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":4.6,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":7.8,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":4.6,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Wolfi","score":7.8,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":4.6,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Chainguard","score":7.8,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":4.6,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":7.8,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00316,"percentile":0.26454,"severity":"low","asOf":"2026-12-04T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-11-04T00:00:00.000Z","baselineScore":0.00316},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00316,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00316,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00316,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00316,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00316,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00316,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00316,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00316,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00316,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00316,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00316,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00316,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00316,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00316,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00316,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00316,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00316,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00316,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00316,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00316,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00316,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00316,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00316,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00316,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00316,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00316,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00316,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00316,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00316,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00316,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00316,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00316,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00316,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00316,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00316,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00316,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00316,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00316,"percentile":null},{"date":"2026-10-22T00:00:00.000Z","score":0.00316,"percentile":null},{"date":"2026-10-23T00:00:00.000Z","score":0.00316,"percentile":null},{"date":"2026-10-24T00:00:00.000Z","score":0.00316,"percentile":null},{"date":"2026-10-25T00:00:00.000Z","score":0.00316,"percentile":null},{"date":"2026-10-26T00:00:00.000Z","score":0.00316,"percentile":null},{"date":"2026-10-27T00:00:00.000Z","score":0.00316,"percentile":null},{"date":"2026-10-28T00:00:00.000Z","score":0.00316,"percentile":null},{"date":"2026-10-29T00:00:00.000Z","score":0.00316,"percentile":null},{"date":"2026-10-30T00:00:00.000Z","score":0.00316,"percentile":null},{"date":"2026-10-31T00:00:00.000Z","score":0.00316,"percentile":null},{"date":"2026-11-01T00:00:00.000Z","score":0.00316,"percentile":null},{"date":"2026-11-02T00:00:00.000Z","score":0.00316,"percentile":null},{"date":"2026-11-03T00:00:00.000Z","score":0.00316,"percentile":null},{"date":"2026-11-04T00:00:00.000Z","score":0.00316,"percentile":null},{"date":"2026-11-05T00:00:00.000Z","score":0.00316,"percentile":null},{"date":"2026-11-06T00:00:00.000Z","score":0.00316,"percentile":null},{"date":"2026-11-07T00:00:00.000Z","score":0.00316,"percentile":null},{"date":"2026-11-08T00:00:00.000Z","score":0.00316,"percentile":null},{"date":"2026-11-09T00:00:00.000Z","score":0.00316,"percentile":null},{"date":"2026-11-10T00:00:00.000Z","score":0.00316,"percentile":null},{"date":"2026-11-11T00:00:00.000Z","score":0.00316,"percentile":null},{"date":"2026-11-12T00:00:00.000Z","score":0.00316,"percentile":null},{"date":"2026-11-13T00:00:00.000Z","score":0.00316,"percentile":null},{"date":"2026-11-14T00:00:00.000Z","score":0.00316,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.00316,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.00316,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.00316,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.00316,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.00316,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.00316,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.00316,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.00316,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.00316,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.00316,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.00388,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.00388,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.00388,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.00388,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.00388,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.00388,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.00316,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.00316,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.00316,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.00316,"percentile":0.26454}],"last30":[{"date":"2026-11-04T00:00:00.000Z","score":0.00316,"percentile":null},{"date":"2026-11-05T00:00:00.000Z","score":0.00316,"percentile":null},{"date":"2026-11-06T00:00:00.000Z","score":0.00316,"percentile":null},{"date":"2026-11-07T00:00:00.000Z","score":0.00316,"percentile":null},{"date":"2026-11-08T00:00:00.000Z","score":0.00316,"percentile":null},{"date":"2026-11-09T00:00:00.000Z","score":0.00316,"percentile":null},{"date":"2026-11-10T00:00:00.000Z","score":0.00316,"percentile":null},{"date":"2026-11-11T00:00:00.000Z","score":0.00316,"percentile":null},{"date":"2026-11-12T00:00:00.000Z","score":0.00316,"percentile":null},{"date":"2026-11-13T00:00:00.000Z","score":0.00316,"percentile":null},{"date":"2026-11-14T00:00:00.000Z","score":0.00316,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.00316,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.00316,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.00316,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.00316,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.00316,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.00316,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.00316,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.00316,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.00316,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.00316,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.00388,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.00388,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.00388,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.00388,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.00388,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.00388,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.00316,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.00316,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.00316,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.00316,"percentile":0.26454}]},"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":[],"exploitCount":0,"weaknesses":[{"id":"CWE-426","name":"Untrusted Search Path","description":"The product searches for critical resources using an externally-supplied search path that can point to resources that are not under the product's direct control.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/426.html"}],"affected":[{"vendor":"chainguard","product":"checkov","name":"checkov","label":"checkov","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/checkov","purlType":"apk","versions":[{"text":"< 3.0.34-r1","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"3.0.34-r1","endInclusive":false}}],"versionsText":"< 3.0.34-r1","eol":null,"hubHref":null},{"vendor":"wolfi","product":"checkov","name":"checkov","label":"checkov","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/checkov","purlType":"apk","versions":[{"text":"< 3.0.34-r1","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"3.0.34-r1","endInclusive":false}}],"versionsText":"< 3.0.34-r1","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,"bounds":{"kind":"all"}}],"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.41","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"3.1.41","endInclusive":false}}],"versionsText":"< 3.1.41","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.41","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"3.1.41","endInclusive":false}}],"versionsText":"< 3.1.41","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":"< ef3192cc414f2fd9978908454f6fd95243784c7f","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"ef3192cc414f2fd9978908454f6fd95243784c7f","endInclusive":false}},{"text":"< 3.1.41","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"3.1.41","endInclusive":false}}],"versionsText":"< ef3192cc414f2fd9978908454f6fd95243784c7f | < 3.1.41","eol":null,"hubHref":null}],"affectedCount":6,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-2mqj-m65w-jghx","label":"github.com/gitpython-developers/GitPython/security/advisories/GHSA-2mqj-m65w-jghx","hostname":"github.com","tags":["X Refsource CONFIRM","WEB","Advisory","REPORT","Vendor Advisory"]},{"url":"https://github.com/gitpython-developers/GitPython/pull/1792","label":"github.com/gitpython-developers/GitPython/pull/1792","hostname":"github.com","tags":["X Refsource MISC","WEB","Advisory","REPORT","FIX","Patch","Vendor Advisory"]},{"url":"https://github.com/gitpython-developers/GitPython/commit/ef3192cc414f2fd9978908454f6fd95243784c7f","label":"github.com/gitpython-developers/GitPython/commit/ef3192cc414f2fd9978908454f6fd95243784c7f","hostname":"github.com","tags":["X Refsource MISC","WEB","FIX","REPORT","Patch"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-22190","label":"nvd.nist.gov/vuln/detail/CVE-2024-22190","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/gitpython-developers/GitPython","label":"github.com/gitpython-developers/GitPython","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/gitpython/PYSEC-2024-4.yaml","label":"github.com/pypa/advisory-database/tree/main/vulns/gitpython/PYSEC-2024-4.yaml","hostname":"github.com","tags":["WEB"]},{"url":"https://ubuntu.com/security/CVE-2024-22190","label":"ubuntu.com/security/CVE-2024-22190","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2024-22190","label":"www.cve.org/CVERecord?id=CVE-2024-22190","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/22xxx/CVE-2024-22190.json","label":"github.com/CVEProject/cvelistV5/tree/main/cves/2024/22xxx/CVE-2024-22190.json","hostname":"github.com","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":["CGA-3HP7-HCW8-Q67J"]},"timeline":[{"kind":"published","date":"2024-01-11T01:23:17.944Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-09-03T18:23:46.612Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"priority":{"label":"routine","tag":null,"reason":"Not severe (CVSS 7.8, local access); no exploitation reported by the 5 checked sources","nextStep":"Fix in the normal cadence","rank":[0,0,0,0,0,78],"checkedSources":["cisa","enisa","circl","shadowserver","cisa-adp"],"evidence":[{"type":"epss","source":"FIRST","date":"2026-12-04T00:00:00.000Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"value":0.00316,"stale":false,"promoted":null},{"type":"cvss","source":"cve.org","date":"2024-09-03T18:23:46.612Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","version":"3.1","headline":true},{"type":"cvss","source":"osv_pypi","date":"2024-09-03T18:23:46.612Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","version":"3.1"},{"type":"cvss","source":"osv_ubuntu","date":"2024-09-03T18:23:46.612Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","version":"3.1"},{"type":"cvss","source":"osv_wolfi","date":"2024-09-03T18:23:46.612Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","version":"3.1"},{"type":"cvss","source":"osv_chainguard","date":"2024-09-03T18:23:46.612Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","version":"3.1"},{"type":"cvss","source":"nvd","date":"2024-09-03T18:23:46.612Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","version":"3.1"},{"type":"adp","source":"cisa-adp","date":"2024-03-25T18:06:43.044Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"exploitation":"poc"}],"epss":{"value":0.00316,"date":"2026-12-04T00:00:00.000Z","stale":false,"promoted":null},"sources":[{"id":"cisa","lastSuccessfulSync":"2026-12-05T06:02:28.822Z","state":"fresh"},{"id":"enisa","lastSuccessfulSync":"2026-12-05T06:02:29.295Z","state":"fresh"},{"id":"circl","lastSuccessfulSync":"2026-12-05T06:02:29.506Z","state":"fresh"},{"id":"shadowserver","lastSuccessfulSync":null,"state":"unavailable"},{"id":"cisa-adp","lastSuccessfulSync":"2026-12-05T06:00:56.363Z","state":"fresh"},{"id":"epss","lastSuccessfulSync":"2026-12-05T06:02:27.202Z","state":"fresh"},{"id":"osv","lastSuccessfulSync":"2026-12-05T06:02:26.240Z","state":"fresh"}],"feedEvent":null},"meta":{"dataAsOf":"2026-12-05T06:24:20.671Z","stale":false,"partial":false}}