CVE catalog

CVE-2026-44244

GitPython is a python library used to interact with Git repositories. Prior to version 3.1.49, GitConfigParser.set_value() passes values to Python's configparser without validating for newlines. GitPy

[CVE catalog]

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

GitPython is a python library used to interact with Git repositories. Prior to version 3.1.49, GitConfigParser.set_value() passes values to Python's configparser without validating for newlines. GitPython's own _write() converts embedded newlines into indented continuation lines (e.g. \n becomes \n\t), but Git still accepts an indented [core] stanza as a section header — so the injected core.hooksPath becomes effective configuration. Any Git operation that invokes hooks (commit, merge, checkout) will then execute scripts from the attacker-controlled path. This issue has been patched in version 3.1.49.

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.49fixed
PyPIgitpythonNot reported3.1.49fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianpython-gitsourcesid3.1.50-1not yet assignedNot reportedNot reported
Debianpython-gitsourceforky3.1.50-1not yet assignedNot reportedNot reported
Debianpython-gitsourcetrixie(unfixed)not yet assignedNot reportedNot reported
Debianpython-gitsourcebookworm(unfixed)not yet assignedNot reportedNot reported
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.49Not reportedNot reportedNot reported
PyPIgitpythonPyPINot reported3.1.49Not reportedGHSA-V87R-6Q3F-2J67Not reported

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