CVE catalog

CVE-2026-42215

GitPython is a python library used to interact with Git repositories. From version 3.1.30 to before version 3.1.47, GitPython blocks dangerous Git options such as --upload-pack and --receive-pack by d

[CVE catalog]

Severity
High · CVSS 8.8CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Published
Source
[NVD] · [CVE record]
EPSS
0.75% · Oct 25, 2026

GitPython is a python library used to interact with Git repositories. From version 3.1.30 to before version 3.1.47, GitPython blocks dangerous Git options such as --upload-pack and --receive-pack by default, but the equivalent Python kwargs upload_pack and receive_pack bypass that check. If an application passes attacker-controlled kwargs into Repo.clone_from(), Remote.fetch(), Remote.pull(), or Remote.push(), this leads to arbitrary command execution even when allow_unsafe_options is left at its default value of False. This issue has been patched in version 3.1.47.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianpython-gitsid3.2.1-1fixed
Debianpython-gitforky3.2.1-1fixed
Debianpython-gittrixie3.1.44-1vulnerable
Debianpython-gitbookworm3.1.30-1+deb12u2vulnerable
Cpepython-gitNot reported3.1.37-3ubuntu0.1~esm2fixed
Cpepython-git-docNot reported3.1.37-3ubuntu0.1~esm2fixed
Cpepython3-gitNot reported3.1.37-3ubuntu0.1~esm2fixed
Cpepython-gitNot reportedNot reportedvulnerable
CpegitpythonNot reported3.1.47fixed
PyPIgitpythonNot reported3.1.47fixed
Susepython-GitPythonlinux enterprise module for python 3 15 sp73.1.34.1693646983.2a2ae77-150400.9.8.1fixed
Susepython-GitPythonlinux enterprise high performance computing 15 sp4-espos3.1.34.1693646983.2a2ae77-150400.9.8.1fixed
Susepython-GitPythonlinux enterprise high performance computing 15 sp4-ltss3.1.34.1693646983.2a2ae77-150400.9.8.1fixed
Susepython-GitPythonlinux enterprise high performance computing 15 sp5-espos3.1.34.1693646983.2a2ae77-150400.9.8.1fixed
Susepython-GitPythonlinux enterprise high performance computing 15 sp5-ltss3.1.34.1693646983.2a2ae77-150400.9.8.1fixed
Susepython-GitPythonlinux enterprise server 15 sp4-ltss3.1.34.1693646983.2a2ae77-150400.9.8.1fixed
Susepython-GitPythonlinux enterprise server 15 sp5-ltss3.1.34.1693646983.2a2ae77-150400.9.8.1fixed
Susepython-GitPythonlinux enterprise server 15 sp6-ltss3.1.34.1693646983.2a2ae77-150400.9.8.1fixed
Susepython-GitPythonlinux enterprise server for sap applications 15 sp43.1.34.1693646983.2a2ae77-150400.9.8.1fixed
Susepython-GitPythonlinux enterprise server for sap applications 15 sp53.1.34.1693646983.2a2ae77-150400.9.8.1fixed
Susepython-GitPythonlinux enterprise server for sap applications 15 sp63.1.34.1693646983.2a2ae77-150400.9.8.1fixed
Opensusepython-GitPythontumbleweed3.1.49-1.1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianpython-gitsourcesid3.1.50-1not yet assignedNot reported[1135349]
Debianpython-gitsourceforky3.1.50-1not yet assignedNot reported[1135349]
Debianpython-gitsourcetrixie(unfixed)not yet assignedNot reported[1135349]
Debianpython-gitsourcebookworm(unfixed)not yet assignedNot reported[1135349]
Cpepython-gitcpeNot reported3.1.37-3ubuntu0.1~esm2Not reportedNot reportedNot reported
Cpepython-git-doccpeNot reported3.1.37-3ubuntu0.1~esm2Not reportedNot reportedNot reported
Cpepython3-gitcpeNot reported3.1.37-3ubuntu0.1~esm2Not reportedNot reportedNot reported
CpegitpythoncpeNot reported3.1.47Not reportedNot reportedNot reported
PyPIgitpythonPyPINot reported3.1.47Not reportedGHSA-RPM5-65CW-6HJ4Not reported
Susepython-GitPythonrpmlinux enterprise module for python 3 15 sp73.1.34.1693646983.2a2ae77-150400.9.8.1Not reportedSUSE-SU-2026:4072-1Not reported
Susepython-GitPythonrpmlinux enterprise high performance computing 15 sp4-espos3.1.34.1693646983.2a2ae77-150400.9.8.1Not reportedSUSE-SU-2026:4072-1Not reported
Susepython-GitPythonrpmlinux enterprise high performance computing 15 sp4-ltss3.1.34.1693646983.2a2ae77-150400.9.8.1Not reportedSUSE-SU-2026:4072-1Not reported
Susepython-GitPythonrpmlinux enterprise high performance computing 15 sp5-espos3.1.34.1693646983.2a2ae77-150400.9.8.1Not reportedSUSE-SU-2026:4072-1Not reported
Susepython-GitPythonrpmlinux enterprise high performance computing 15 sp5-ltss3.1.34.1693646983.2a2ae77-150400.9.8.1Not reportedSUSE-SU-2026:4072-1Not reported
Susepython-GitPythonrpmlinux enterprise server 15 sp4-ltss3.1.34.1693646983.2a2ae77-150400.9.8.1Not reportedSUSE-SU-2026:4072-1Not reported
Susepython-GitPythonrpmlinux enterprise server 15 sp5-ltss3.1.34.1693646983.2a2ae77-150400.9.8.1Not reportedSUSE-SU-2026:4072-1Not reported
Susepython-GitPythonrpmlinux enterprise server 15 sp6-ltss3.1.34.1693646983.2a2ae77-150400.9.8.1Not reportedSUSE-SU-2026:4072-1Not reported
Susepython-GitPythonrpmlinux enterprise server for sap applications 15 sp43.1.34.1693646983.2a2ae77-150400.9.8.1Not reportedSUSE-SU-2026:4072-1Not reported
Susepython-GitPythonrpmlinux enterprise server for sap applications 15 sp53.1.34.1693646983.2a2ae77-150400.9.8.1Not reportedSUSE-SU-2026:4072-1Not reported
Susepython-GitPythonrpmlinux enterprise server for sap applications 15 sp63.1.34.1693646983.2a2ae77-150400.9.8.1Not reportedSUSE-SU-2026:4072-1Not reported
Opensusepython-GitPythonrpmtumbleweed3.1.49-1.1Not reportedOPENSUSE-SU-2026:10758-1Not reported

[Debian bug #1135349]

Notes

[trixie] python-git: Minor issue

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • [python3-git]Affected

    Source package: [python-git]

    Details (2)
    • 3.1.30-1+deb12u2 · all · bookworm

      Affected

      nvd · python-git · debian · bookworm; nvd · python-git · debian · 12

    • 3.1.30-1+deb12u2 · all · bookworm

      Affected

      nvd · python-git · debian · bookworm; nvd · python-git · debian · 12

  • [python-git-doc]Affected

    Source package: [python-git]

    Details (2)
    • 3.1.30-1+deb12u2 · all · bookworm

      Affected

      nvd · python-git · debian · bookworm; nvd · python-git · debian · 12

    • 3.1.30-1+deb12u2 · all · bookworm

      Affected

      nvd · python-git · debian · bookworm; nvd · python-git · debian · 12

[Debian 13 (Trixie)]

  • [python3-git]Affected

    Source package: [python-git]

    Details (2)
    • 3.1.44-1 · all · trixie

      Affected

      nvd · python-git · debian · 13

    • 3.1.44-1 · all · trixie

      Affected

      nvd · python-git · debian · 13

  • [python-git-doc]Affected

    Source package: [python-git]

    Details (2)
    • 3.1.44-1 · all · trixie

      Affected

      nvd · python-git · debian · 13

    • 3.1.44-1 · all · trixie

      Affected

      nvd · python-git · debian · 13

[openSUSE Tumbleweed]

  • Source package: [python-GitPython]

    Details (1)
    • 3.1.61-1.1 · noarch · tumbleweed

      Unknown · Fixed: 3.1.49-1.1

      Version impact unknown

      nvd · python-GitPython · opensuse · tumbleweed

  • Source package: [python-GitPython]

    Details (1)
    • 3.1.61-1.1 · noarch · tumbleweed

      Unknown · Fixed: 3.1.49-1.1

      Version impact unknown

      nvd · python-GitPython · opensuse · tumbleweed

Observed:

References