CVE-2023-40267
CRITICAL9.8EPSS 0.35%GitPython vulnerable to remote code execution due to insufficient sanitization of input arguments
Published: 8/11/2023Modified: 4/28/2026
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.
Affected packages (3)
- Debian/python-gitfrom 0, < 3.1.14-1+deb11u1
- PyPI/gitpythonfrom 0, < 3.1.32
- PyPI/gitpythonfrom 0, < ca965ecc81853bca7675261729143f54e5bf4cdd | from 0, < 3.1.32
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | 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 |
| osv | CVSS 3.1 | CRITICAL9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
References (11)
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2023-40267
- ADVISORYhttps://security-tracker.debian.org/tracker/CVE-2023-40267
- PATCHhttps://github.com/gitpython-developers/GitPython
- WEBhttps://github.com/gitpython-developers/GitPython/commit/ca965ecc81853bca7675261729143f54e5bf4cdd
- WEBhttps://github.com/gitpython-developers/GitPython/pull/1609
- WEBhttps://github.com/pypa/advisory-database/tree/main/vulns/gitpython/PYSEC-2023-137.yaml
- WEBhttps://lists.debian.org/debian-lts-announce/2024/10/msg00030.html
- WEBhttps://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/AV5DV7GBLMOZT7U3Q4TDOJO5R6G3V6GH
- WEBhttps://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/PF6AXUTC5BO7L2SBJMCVKJSPKWY52I5R
- WEBhttps://lists.fedoraproject.org/archives/list/[email protected]/message/AV5DV7GBLMOZT7U3Q4TDOJO5R6G3V6GH
- WEBhttps://lists.fedoraproject.org/archives/list/[email protected]/message/PF6AXUTC5BO7L2SBJMCVKJSPKWY52I5R