ADVISORIES

Ubuntu CVE Tracker

UBUNTU-CVE-2026-44244

Details

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.

Affected packages

EcosystemPackageAffected versions
Ubuntu:Pro:14.04:LTSpython-git
All versions before 0.3.2~RC1-3ubuntu0.1~esm3 (fixed in 0.3.2~RC1-3ubuntu0.1~esm3)
Ubuntu:Pro:16.04:LTSpython-git
All versions before 1.0.1+git137-gc8b8379-2.1ubuntu0.1~esm4 (fixed in 1.0.1+git137-gc8b8379-2.1ubuntu0.1~esm4)
Ubuntu:Pro:18.04:LTSpython-git
All versions before 2.1.8-1ubuntu0.1~esm4 (fixed in 2.1.8-1ubuntu0.1~esm4)
Ubuntu:Pro:20.04:LTSpython-git
All versions before 3.0.7-1ubuntu0.1~esm4 (fixed in 3.0.7-1ubuntu0.1~esm4)
Ubuntu:Pro:22.04:LTSpython-git
All versions before 3.1.24-1ubuntu0.1~esm3 (fixed in 3.1.24-1ubuntu0.1~esm3)
Ubuntu:Pro:24.04:LTSpython-git
All versions before 3.1.37-3ubuntu0.1~esm2 (fixed in 3.1.37-3ubuntu0.1~esm2)
Ubuntu:25.10python-git
All versions, no fix listed
Ubuntu:26.10python-git
All versions, no fix listed
Ubuntu:Pro:26.04:LTSpython-git
All versions before 3.1.46-1ubuntu0.1~esm1 (fixed in 3.1.46-1ubuntu0.1~esm1)

References