{"schemaVersion":3,"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":null,"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.2306,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-19T00: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":0.2306}],"last30":[{"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":0.2306}]},"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}],"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}],"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}],"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}],"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}],"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},{"text":"< 3.1.41","noFixRecorded":false,"fixedIn":null}],"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}],"risk":{"score":31,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T10:34:11.354Z","stale":false,"partial":false}}