CVE-2023-40267
CRITICAL 9.8CVSS 3.1GitPython vulnerable to remote code execution due to insufficient sanitization of input arguments
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.
- Published
- 11 Aug 2023
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-78
- Also known as
- GHSA-pr76-5cm5-w9cjPYSEC-2023-137
- Sources
- NVDJSONOSV GHSA-pr76-5cm5-w9cjJSONOSV PYSEC-2023-137JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | 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 | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | gitpython_project | gitpythoncpe:2.3:a:gitpython_project:gitpython:*:*:*:*:*:python:*:* |
< 3.1.32 | 3.1.32 |
| OSV | PyPI | gitpython | < 3.1.32 | 3.1.32 |
References
- https://github.com/gitpython-developers/GitPython/commit/ca965ecc81853bca7675261729143f54e5bf4cdd · Patch, WEB, FIX
- https://github.com/gitpython-developers/GitPython/pull/1609 · Issue Tracking, Patch, 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.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@lists.fedoraproject.org/message/AV5DV7GBLMOZT7U3Q4TDOJO5R6G3V6GH · WEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/PF6AXUTC5BO7L2SBJMCVKJSPKWY52I5R · WEB
History
- 25 Nov 2026 20:36 UTC · NVD: first stored (published 11 Aug 2023)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 11 Aug 2023)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 11 Aug 2023)