CVE-2026-44244

NameCVE-2026-44244
DescriptionGitPython 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.
SourceCVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
python-git (PTS)bullseye3.1.14-1vulnerable
bullseye (security)3.1.14-1+deb11u1vulnerable
bookworm3.1.30-1+deb12u2vulnerable
trixie3.1.44-1vulnerable
forky3.1.46-1vulnerable
sid3.1.50-1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
python-gitsource(unstable)3.1.50-1

Notes

https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-v87r-6q3f-2j67
https://github.com/gitpython-developers/GitPython/pull/2137

Search for package or bug name: Reporting problems