{"id":"CVE-2022-24439","published":"2022-12-12T01:49:10Z","modified":"2025-11-03T21:46:05Z","title":"Remote Code Execution (RCE)","vendor":null,"product":null,"tier":"tail","description":{"text":"All versions of package gitpython are vulnerable to Remote Code Execution (RCE) due to improper user input validation, which makes it possible to inject a maliciously crafted remote URL into the clone command. Exploiting this vulnerability is possible because the library makes external calls to git without sufficient sanitization of input arguments.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.1,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.06167,"percentile":0.93649,"provenance":"source"},"cwes":[],"references":[{"url":"https://security.snyk.io/vuln/SNYK-PYTHON-GITPYTHON-3113858","tags":[]},{"url":"https://github.com/gitpython-developers/GitPython/blob/bec61576ae75803bc4e60d8de7a629c194313d1c/git/repo/base.py%23L1249","tags":[]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/IKMVYKLWX62UEYKAN64RUZMOIAMZM5JN/","tags":["vendor-advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/SJHN3QUXPJIMM6SULIR3PR34UFWRAE7X/","tags":["vendor-advisory"]},{"url":"https://lists.debian.org/debian-lts-announce/2023/07/msg00024.html","tags":["mailing-list"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/PF6AXUTC5BO7L2SBJMCVKJSPKWY52I5R/","tags":["vendor-advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/AV5DV7GBLMOZT7U3Q4TDOJO5R6G3V6GH/","tags":["vendor-advisory"]},{"url":"https://security.gentoo.org/glsa/202311-01","tags":["vendor-advisory"]},{"url":"https://lists.debian.org/debian-lts-announce/2024/10/msg00030.html","tags":[]}],"priority":{"score":29.4,"factors":[{"name":"EPSS percentile","points":18.73},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":5.67}]},"exploitSources":{"pocGithub":{"count":1,"skipped":1,"earliest":"2025-07-12","earliestUrl":"https://github.com/Makkkiiii/GitPython-Exploit-CVE-2022-24439","repos":[{"name":"Makkkiiii/GitPython-Exploit-CVE-2022-24439","url":"https://github.com/Makkkiiii/GitPython-Exploit-CVE-2022-24439","stars":1,"created":"2025-07-12"}]},"first":{"date":"2025-07-12","source":"PoC-in-GitHub","url":"https://github.com/Makkkiiii/GitPython-Exploit-CVE-2022-24439"},"provenance":"source"},"affectedVersions":[{"vendor":"n/a","product":"GitPython","versions":["< unspecified"]}],"affected":[{"ecosystem":"PyPI","package":"GitPython","vulnerableRanges":["<3.1.30"],"patched":["3.1.30"],"from":["GHSA-hcpj-qp55-gfph","PYSEC-2022-42992"],"provenance":"source"}],"summary":{"text":"The flaw is improper user input validation in the gitpython package, where the library passes externally supplied values to git commands without adequate sanitization. An attacker who can supply a maliciously crafted remote URL to the clone command can achieve remote code execution, and the attack requires only network access with no authentication or user interaction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:36:41Z"},"euvd":{"id":"EUVD-2022-0114","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-gitpython-developers-gitpython-cve-2022-24439","children":[{"from":"CVE-2022-24439","to":"CVE-2023-40267","relation":"incomplete-fix","confidence":"high","kind":"lineage","evidence":[{"kind":"text","provenance":"source","relation":"incomplete-fix","quote":"NOTE: this issue exists because of an incomplete fix for CVE-2022-24439.","from":"CVE.org","in":"CVE-2023-40267"},{"kind":"version-step","provenance":"source","package":"PyPI:GitPython","fromFixed":"3.1.30","toFixed":"3.1.32","daysApart":242},{"kind":"same-code","provenance":"machine","files":["git/repo/base.py"],"commits":["https://github.com/gitpython-developers/GitPython/commit/2625ed9fc074091c531c27ffcba7902771130261","https://github.com/gitpython-developers/GitPython/commit/ca965ecc81853bca7675261729143f54e5bf4cdd"],"basis":"shared function","functions":["_clone"]}]},{"from":"CVE-2022-24439","to":"CVE-2026-67322","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["git/repo/base.py"],"commits":["https://github.com/gitpython-developers/GitPython/commit/2625ed9fc074091c531c27ffcba7902771130261","https://github.com/gitpython-developers/GitPython/commit/8ac5a30519b6f4af85398b9b9d7064ff4d452da2"],"basis":"shared function","functions":["_clone"]}]},{"from":"CVE-2022-24439","to":"CVE-2026-67323","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["git/repo/base.py"],"commits":["https://github.com/gitpython-developers/GitPython/commit/2625ed9fc074091c531c27ffcba7902771130261","https://github.com/gitpython-developers/GitPython/commit/701ce32fe5ba8cb622c0e0342a376a6beb47d738"],"basis":"shared function","functions":["Repo","_clone"]}]},{"from":"CVE-2022-24439","to":"CVE-2026-73619","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["git/repo/base.py"],"commits":["https://github.com/gitpython-developers/GitPython/commit/2625ed9fc074091c531c27ffcba7902771130261","https://github.com/gitpython-developers/GitPython/commit/7a4f5dcb7bf3cbcbf6e438017efcdfe0bc0d36ca"],"basis":"shared function","functions":["Repo"]}]},{"from":"CVE-2022-24439","to":"CVE-2026-73622","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["git/repo/base.py"],"commits":["https://github.com/gitpython-developers/GitPython/commit/2625ed9fc074091c531c27ffcba7902771130261","https://github.com/gitpython-developers/GitPython/commit/8ac5a30519b6f4af85398b9b9d7064ff4d452da2","https://github.com/gitpython-developers/GitPython/commit/863417457a0633db7ea5aed4fd01e0b291a41162"],"basis":"shared function","functions":["_clone"]}]},{"from":"CVE-2022-24439","to":"CVE-2026-73623","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["git/repo/base.py"],"commits":["https://github.com/gitpython-developers/GitPython/commit/2625ed9fc074091c531c27ffcba7902771130261","https://github.com/gitpython-developers/GitPython/commit/ffcb5359e87619f4fe4a70a4aff5f08c5580ba97"],"basis":"shared function","functions":["Repo"]}]}],"packageHistory":[{"cve":"CVE-2022-24439","published":"2022-12-12","fixed":"3.1.30","kev":false},{"cve":"CVE-2023-40267","published":"2023-08-11","fixed":"3.1.32","kev":false},{"cve":"CVE-2023-40590","published":"2023-08-28","fixed":"3.1.33","kev":false},{"cve":"CVE-2023-41040","published":"2023-08-30","fixed":"3.1.37","kev":false}],"package":"PyPI:GitPython"}}