CVE catalog

CVE-2026-42284

GitPython is a python library used to interact with Git repositories. Prior to version 3.1.47, _clone() validates multi_options as the original list, then executes shlex.split(" ".join(multi_options))

[CVE catalog]

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

GitPython is a python library used to interact with Git repositories. Prior to version 3.1.47, _clone() validates multi_options as the original list, then executes shlex.split(" ".join(multi_options)). A string like "--branch main --config core.hooksPath=/x" passes validation (starts with --branch), but after split becomes ["--branch", "main", "--config", "core.hooksPath=/x"]. Git applies the config and executes attacker hooks during clone. 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

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianpython-gitsourcesid3.1.50-1not yet assignedNot reported[1135350]
Debianpython-gitsourceforky3.1.50-1not yet assignedNot reported[1135350]
Debianpython-gitsourcetrixie(unfixed)not yet assignedNot reported[1135350]
Debianpython-gitsourcebookworm(unfixed)not yet assignedNot reported[1135350]
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 reportedNot reportedNot reported

[Debian bug #1135350]

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

Observed:

References