# CVE-2023-40267: GitPython vulnerable to remote code execution due to insufficient sanitization of input arguments

- Severity: Critical 9.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.30%, higher than 71% of CVEs (2026-11-30)
- Published: 2023-08-11T00:00:00.000Z
- Modified: 2026-06-17T06:16:57.100Z
- Also known as: GHSA-pr76-5cm5-w9cj, PYSEC-2023-137
- Weaknesses: CWE-78
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: mitre

## Description

GitPython before 3.1.32 does not block insecure non-multi options in clone and clone_from. NOTE: this issue exists because of an incomplete fix for CVE-2022-24439.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- gitpython (PyPI): before 3.1.32; before ca965ecc81853bca7675261729143f54e5bf4cdd
- gitpython_project gitpython: before 3.1.32

## Every score

- GitHub: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:4.0 Critical `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/gitpython-developers/GitPython/pull/1609> (issue-tracking, patch, web)
- <https://github.com/gitpython-developers/GitPython/commit/ca965ecc81853bca7675261729143f54e5bf4cdd> (fix, patch, web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/PF6AXUTC5BO7L2SBJMCVKJSPKWY52I5R/> (vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/AV5DV7GBLMOZT7U3Q4TDOJO5R6G3V6GH/> (vendor-advisory)
- <https://lists.debian.org/debian-lts-announce/2024/10/msg00030.html> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-40267> (advisory)
- <https://github.com/gitpython-developers/GitPython> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/gitpython/PYSEC-2023-137.yaml> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/AV5DV7GBLMOZT7U3Q4TDOJO5R6G3V6GH> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/PF6AXUTC5BO7L2SBJMCVKJSPKWY52I5R> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/AV5DV7GBLMOZT7U3Q4TDOJO5R6G3V6GH> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/PF6AXUTC5BO7L2SBJMCVKJSPKWY52I5R> (web)

## Sources

- CVE List: [CVE-2023-40267](https://www.cve.org/CVERecord?id=CVE-2023-40267), CVE Terms of Use, modified 2025-11-03
- GitHub Advisory Database: [GHSA-pr76-5cm5-w9cj](https://github.com/advisories/GHSA-pr76-5cm5-w9cj), CC-BY-4.0, modified 2025-11-04
- NVD: [CVE-2023-40267](https://nvd.nist.gov/vuln/detail/CVE-2023-40267), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2023-137](https://osv.dev/vulnerability/PYSEC-2023-137), CC-BY-4.0, modified 2023-11-08

---

Page: https://cve.day/CVE-2023-40267 · Whole record: https://cve.day/CVE-2023-40267.json · Rebuilt by cve.day 2026-11-25T22:58:27.071Z
