CVEfocus › CVE database › CVE-2026-44244

CVE-2026-44244GitPython: Newline injection in config_writer().set_value() enables RCE via core.hooksPath

CVSS 7.8 HighEPSS 0.2% (higher than 7% of CVEs)Published 2026-05-07Updated 2026-05-09Assigner: GitHub_M

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.

CWE-94

What to do

Fixed builds are available from Debian, PyPI: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

4Fixed
8Fix pending
1Will not fix
192Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10python-gitFix pendingUBUNTU-CVE-2026-44244
Ubuntu 26.04python-gitFix pending3.1.46-1ubuntu0.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2026-44244
Ubuntu 25.10python-gitWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2026-44244
Ubuntu 24.04python-gitFix pending3.1.37-3ubuntu0.1~esm2 (Ubuntu Pro)UBUNTU-CVE-2026-44244
Ubuntu 22.04python-gitFix pending3.1.24-1ubuntu0.1~esm3 (Ubuntu Pro)UBUNTU-CVE-2026-44244
Ubuntu 20.04python-gitFix pending3.0.7-1ubuntu0.1~esm4 (Ubuntu Pro)UBUNTU-CVE-2026-44244
Ubuntu 18.04python-gitFix pending2.1.8-1ubuntu0.1~esm4 (Ubuntu Pro)UBUNTU-CVE-2026-44244
Ubuntu 16.04python-gitFix pending1.0.1+git137-gc8b8379-2.1ubuntu0.1~esm4 (Ubuntu Pro)UBUNTU-CVE-2026-44244
Ubuntu 14.04python-gitFix pending0.3.2~RC1-3ubuntu0.1~esm3 (Ubuntu Pro)UBUNTU-CVE-2026-44244
Debian 14python-gitFixed3.1.50-1DEBIAN-CVE-2026-44244
Debian 13python-gitFixed3.1.44-1+deb13u1DEBIAN-CVE-2026-44244
Debian 12python-gitFixed3.1.30-1+deb12u3DEBIAN-CVE-2026-44244
Red Hat Enterprise Linux 10python-unversioned-commandNot affected
Red Hat Enterprise Linux 10python3Not affected
Red Hat Enterprise Linux 10python3-debugNot affected
Red Hat Enterprise Linux 10python3-develNot affected
Red Hat Enterprise Linux 10python3-idleNot affected
Red Hat Enterprise Linux 10python3-libsNot affected
Red Hat Enterprise Linux 10python3-testNot affected
Red Hat Enterprise Linux 10python3-tkinterNot affected
Red Hat Enterprise Linux 10python3.12Not affected
Red Hat Enterprise Linux 10python3.14Not affected
Red Hat Enterprise Linux 10python3.14-debugNot affected
Red Hat Enterprise Linux 10python3.14-develNot affected
Red Hat Enterprise Linux 10python3.14-freethreadingNot affected
Red Hat Enterprise Linux 10python3.14-freethreading-debugNot affected
Red Hat Enterprise Linux 10python3.14-freethreading-develNot affected
Red Hat Enterprise Linux 10python3.14-freethreading-idleNot affected
Red Hat Enterprise Linux 10python3.14-freethreading-libsNot affected
Red Hat Enterprise Linux 10python3.14-freethreading-testNot affected
Red Hat Enterprise Linux 10python3.14-freethreading-tkinterNot affected
Red Hat Enterprise Linux 10python3.14-idleNot affected
Red Hat Enterprise Linux 10python3.14-libsNot affected
Red Hat Enterprise Linux 10python3.14-testNot affected
Red Hat Enterprise Linux 10python3.14-tkinterNot affected
Red Hat Enterprise Linux 9python-unversioned-commandNot affected
Red Hat Enterprise Linux 9python3Not affected
Red Hat Enterprise Linux 9python3-debugNot affected
Red Hat Enterprise Linux 9python3-develNot affected
Red Hat Enterprise Linux 9python3-idleNot affected
Red Hat Enterprise Linux 9python3-libsNot affected
Red Hat Enterprise Linux 9python3-testNot affected
Red Hat Enterprise Linux 9python3-tkinterNot affected
Red Hat Enterprise Linux 9python3.11Not affected
Red Hat Enterprise Linux 9python3.11-debugNot affected
Red Hat Enterprise Linux 9python3.11-develNot affected
Red Hat Enterprise Linux 9python3.11-idleNot affected
Red Hat Enterprise Linux 9python3.11-libsNot affected
Red Hat Enterprise Linux 9python3.11-testNot affected
Red Hat Enterprise Linux 9python3.11-tkinterNot affected
Red Hat Enterprise Linux 9python3.12Not affected
Red Hat Enterprise Linux 9python3.12-debugNot affected
Red Hat Enterprise Linux 9python3.12-develNot affected
Red Hat Enterprise Linux 9python3.12-idleNot affected
Red Hat Enterprise Linux 9python3.12-libsNot affected
Red Hat Enterprise Linux 9python3.12-testNot affected
Red Hat Enterprise Linux 9python3.12-tkinterNot affected
Red Hat Enterprise Linux 9python3.14Not affected
Red Hat Enterprise Linux 9python3.14-debugNot affected
Red Hat Enterprise Linux 9python3.14-develNot affected
Red Hat Enterprise Linux 9python3.14-freethreadingNot affected
Red Hat Enterprise Linux 9python3.14-freethreading-debugNot affected
Red Hat Enterprise Linux 9python3.14-freethreading-develNot affected
Red Hat Enterprise Linux 9python3.14-freethreading-idleNot affected
Red Hat Enterprise Linux 9python3.14-freethreading-libsNot affected
Red Hat Enterprise Linux 9python3.14-freethreading-testNot affected
Red Hat Enterprise Linux 9python3.14-freethreading-tkinterNot affected
Red Hat Enterprise Linux 9python3.14-idleNot affected
Red Hat Enterprise Linux 9python3.14-libsNot affected
Red Hat Enterprise Linux 9python3.14-testNot affected
Red Hat Enterprise Linux 9python3.14-tkinterNot affected
Red Hat Enterprise Linux 9python3.9Not affected
Red Hat Enterprise Linux 8PyYAMLNot affected
Red Hat Enterprise Linux 8mod_wsgiNot affected
Red Hat Enterprise Linux 8numpyNot affected
Red Hat Enterprise Linux 8platform-pythonNot affected
Red Hat Enterprise Linux 8platform-python-debugNot affected
Red Hat Enterprise Linux 8platform-python-develNot affected
Red Hat Enterprise Linux 8python-PyMySQLNot affected
Red Hat Enterprise Linux 8python-cffiNot affected
Red Hat Enterprise Linux 8python-chardetNot affected
Red Hat Enterprise Linux 8python-cryptographyNot affected
Red Hat Enterprise Linux 8python-distroNot affected
Red Hat Enterprise Linux 8python-docsNot affected
Red Hat Enterprise Linux 8python-docutilsNot affected
Red Hat Enterprise Linux 8python-idnaNot affected
Red Hat Enterprise Linux 8python-lxmlNot affected
Red Hat Enterprise Linux 8python-noseNot affected
Red Hat Enterprise Linux 8python-nose-docsNot affected
Red Hat Enterprise Linux 8python-plyNot affected
Red Hat Enterprise Linux 8python-psutilNot affected
Red Hat Enterprise Linux 8python-psycopg2Not affected
Red Hat Enterprise Linux 8python-pycparserNot affected
Red Hat Enterprise Linux 8python-pygmentsNot affected
Red Hat Enterprise Linux 8python-pymongoNot affected
Red Hat Enterprise Linux 8python-pymongo-docNot affected
Red Hat Enterprise Linux 8python-pysocksNot affected
Red Hat Enterprise Linux 8python-requestsNot affected
Red Hat Enterprise Linux 8python-sqlalchemyNot affected
Red Hat Enterprise Linux 8python-sqlalchemy-docNot affected
Red Hat Enterprise Linux 8python-tomlNot affected
Red Hat Enterprise Linux 8python-urllib3Not affected
Red Hat Enterprise Linux 8python-virtualenvNot affected
Red Hat Enterprise Linux 8python-virtualenv-docNot affected
Red Hat Enterprise Linux 8python-wheelNot affected
Red Hat Enterprise Linux 8python3Not affected
Red Hat Enterprise Linux 8python3-PyMySQLNot affected
Red Hat Enterprise Linux 8python3-bsonNot affected
Red Hat Enterprise Linux 8python3-distroNot affected
Red Hat Enterprise Linux 8python3-docsNot affected
Red Hat Enterprise Linux 8python3-docutilsNot affected
Red Hat Enterprise Linux 8python3-idleNot affected
Red Hat Enterprise Linux 8python3-libsNot affected
Red Hat Enterprise Linux 8python3-noseNot affected
Red Hat Enterprise Linux 8python3-pygmentsNot affected
Red Hat Enterprise Linux 8python3-pymongoNot affected
Red Hat Enterprise Linux 8python3-pymongo-gridfsNot affected
Red Hat Enterprise Linux 8python3-scipyNot affected
Red Hat Enterprise Linux 8python3-sqlalchemyNot affected
Red Hat Enterprise Linux 8python3-testNot affected
Red Hat Enterprise Linux 8python3-tkinterNot affected
Red Hat Enterprise Linux 8python3-virtualenvNot affected
Red Hat Enterprise Linux 8python3-wheelNot affected
Red Hat Enterprise Linux 8python3-wheel-wheelNot affected
Red Hat Enterprise Linux 8python3.11Not affected
Red Hat Enterprise Linux 8python3.11-debugNot affected
Red Hat Enterprise Linux 8python3.11-develNot affected
Red Hat Enterprise Linux 8python3.11-idleNot affected
Red Hat Enterprise Linux 8python3.11-libsNot affected
Red Hat Enterprise Linux 8python3.11-rpm-macrosNot affected
Red Hat Enterprise Linux 8python3.11-testNot affected
Red Hat Enterprise Linux 8python3.11-tkinterNot affected
Red Hat Enterprise Linux 8python3.12Not affected
Red Hat Enterprise Linux 8python3.12-debugNot affected
Red Hat Enterprise Linux 8python3.12-develNot affected
Red Hat Enterprise Linux 8python3.12-idleNot affected
Red Hat Enterprise Linux 8python3.12-libsNot affected
Red Hat Enterprise Linux 8python3.12-rpm-macrosNot affected
Red Hat Enterprise Linux 8python3.12-testNot affected
Red Hat Enterprise Linux 8python3.12-tkinterNot affected
Red Hat Enterprise Linux 8python36Not affected
Red Hat Enterprise Linux 8python36-debugNot affected
Red Hat Enterprise Linux 8python36-develNot affected
Red Hat Enterprise Linux 8python36-rpm-macrosNot affected
Red Hat Enterprise Linux 8python39Not affected
Red Hat Enterprise Linux 8python39-PyMySQLNot affected
Red Hat Enterprise Linux 8python39-cffiNot affected
Red Hat Enterprise Linux 8python39-chardetNot affected
Red Hat Enterprise Linux 8python39-cryptographyNot affected
Red Hat Enterprise Linux 8python39-develNot affected
Red Hat Enterprise Linux 8python39-idleNot affected
Red Hat Enterprise Linux 8python39-idnaNot affected
Red Hat Enterprise Linux 8python39-libsNot affected
Red Hat Enterprise Linux 8python39-lxmlNot affected
Red Hat Enterprise Linux 8python39-mod_wsgiNot affected
Red Hat Enterprise Linux 8python39-numpyNot affected
Red Hat Enterprise Linux 8python39-numpy-docNot affected
Red Hat Enterprise Linux 8python39-numpy-f2pyNot affected
Red Hat Enterprise Linux 8python39-pipNot affected
Red Hat Enterprise Linux 8python39-pip-wheelNot affected
Red Hat Enterprise Linux 8python39-plyNot affected
Red Hat Enterprise Linux 8python39-psutilNot affected
Red Hat Enterprise Linux 8python39-psycopg2Not affected
Red Hat Enterprise Linux 8python39-psycopg2-docNot affected
Red Hat Enterprise Linux 8python39-psycopg2-testsNot affected
Red Hat Enterprise Linux 8python39-pycparserNot affected
Red Hat Enterprise Linux 8python39-pysocksNot affected
Red Hat Enterprise Linux 8python39-pyyamlNot affected
Red Hat Enterprise Linux 8python39-requestsNot affected
Red Hat Enterprise Linux 8python39-rpm-macrosNot affected
Red Hat Enterprise Linux 8python39-scipyNot affected
Red Hat Enterprise Linux 8python39-setuptoolsNot affected
Red Hat Enterprise Linux 8python39-setuptools-wheelNot affected
Red Hat Enterprise Linux 8python39-sixNot affected
Red Hat Enterprise Linux 8python39-testNot affected
Red Hat Enterprise Linux 8python39-tkinterNot affected
Red Hat Enterprise Linux 8python39-tomlNot affected
Red Hat Enterprise Linux 8python39-urllib3Not affected
Red Hat Enterprise Linux 8python39-wheelNot affected
Red Hat Enterprise Linux 8python39-wheel-wheelNot affected
Red Hat Enterprise Linux 8python3x-pipNot affected
Red Hat Enterprise Linux 8python3x-setuptoolsNot affected
Red Hat Enterprise Linux 8python3x-sixNot affected
Red Hat Enterprise Linux 8scipyNot affected
Red Hat Enterprise Linux 7pythonNot affected
Red Hat Enterprise Linux 7python-debugNot affected
Red Hat Enterprise Linux 7python-develNot affected
Red Hat Enterprise Linux 7python-libsNot affected
Red Hat Enterprise Linux 7python-testNot affected
Red Hat Enterprise Linux 7python-toolsNot affected
Red Hat Enterprise Linux 7python3Not affected
Red Hat Enterprise Linux 7python3-debugNot affected
Red Hat Enterprise Linux 7python3-develNot affected
Red Hat Enterprise Linux 7python3-idleNot affected
Red Hat Enterprise Linux 7python3-libsNot affected
Red Hat Enterprise Linux 7python3-testNot affected
Red Hat Enterprise Linux 7python3-tkinterNot affected
Red Hat Enterprise Linux 7tkinterNot affected
Red Hat Enterprise Linux 6pythonNot affected
Red Hat Enterprise Linux 6python-develNot affected
Red Hat Enterprise Linux 6python-libsNot affected
Red Hat Enterprise Linux 6python-testNot affected
Red Hat Enterprise Linux 6python-toolsNot affected
Red Hat Enterprise Linux 6tkinterNot affected
PyPI librarygitpythonFixed3.1.49PYSEC-2026-2163

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.