cve.bz

CVE-2026-44244 gitpython project gitpython: Code Injection

7.8 highExploit referenceEPSS 0.2%Fix available

High (7.8) in gitpython project gitpython. EPSS 0.2% estimated probability of exploitation activity in the next 30 days. Fixed in gitpython 3.1.49.

On this page
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.

Severity

CVSS 3.1

7.8 high
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS
0.2% (unchanged from 0.2% a week ago; 0.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 15th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: no · Technical impact: total, assessed 2026-05-08. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-94 Improper Control of Generation of Code (Code Injection)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-44244 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-44244?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-44244?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-44244 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
gitpython_project:gitpythonbefore 3.1.49

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-v87r-6q3f-2j67PyPIgitpython<3.1.493.1.49
PYSEC-2026-2163PyPIgitpython<3.1.493.1.49

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12python-git3.1.30-1+deb12u3DEBIAN-CVE-2026-44244 DLA-4872-1
Debian13python-git3.1.44-1+deb13u1DEBIAN-CVE-2026-44244 DSA-6594-1
Debian14python-git3.1.50-1DEBIAN-CVE-2026-44244
Ubuntu25.10, 26.10python-gitno fix listedUBUNTU-CVE-2026-44244
UbuntuPro:14.04:LTSpython-git0.3.2~RC1-3ubuntu0.1~esm3UBUNTU-CVE-2026-44244 USN-8303-1
UbuntuPro:16.04:LTSpython-git1.0.1+git137-gc8b8379-2.1ubuntu0.1~esm4UBUNTU-CVE-2026-44244 USN-8303-1
UbuntuPro:18.04:LTSpython-git2.1.8-1ubuntu0.1~esm4UBUNTU-CVE-2026-44244 USN-8303-1
UbuntuPro:20.04:LTSpython-git3.0.7-1ubuntu0.1~esm4UBUNTU-CVE-2026-44244 USN-8303-1
UbuntuPro:22.04:LTSpython-git3.1.24-1ubuntu0.1~esm3UBUNTU-CVE-2026-44244 USN-8303-1
UbuntuPro:24.04:LTSpython-git3.1.37-3ubuntu0.1~esm2UBUNTU-CVE-2026-44244 USN-8303-1
UbuntuPro:26.04:LTSpython-git3.1.46-1ubuntu0.1~esm1UBUNTU-CVE-2026-44244 USN-8303-1
Red Hatsatellite:6.19::el9, satellite_capsule:6.19::el9ansible-core, ansible-test1:2.16.19-1.el9satRHSA-2026:63385
Red Hatsatellite:6.19::el9, satellite_capsule:6.19::el9openvox-server0:8.15.2-1.el9satRHSA-2026:63385
Red Hatsatellite:6.19::el9, satellite_capsule:6.19::el9python3.12-aiohttp, python3.12-aiohttp-debuginfo, python3.12-aiohttp-debugsource0:3.14.3-1.el9pcRHSA-2026:63385
Red Hatsatellite:6.19::el9, satellite_capsule:6.19::el9python3.12-gitpython0:3.1.59-1.el9pcRHSA-2026:63385
Red Hatsatellite:6.19::el9, satellite_capsule:6.19::el9, satellite_utils:6.19::el9rubygem-jwt0:2.10.3-1.el9satRHSA-2026:63385
Red Hatsatellite_maintenance:6.19::el9ansible-core1:2.16.19-1.el9satRHSA-2026:63385
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise High Performance Computing 15 SP5-ESPOS and 8 morepython-GitPython3.1.34.1693646983.2a2ae77-150400.9.8.1SUSE-SU-2026:4072-1
openSUSETumbleweedpython-GitPython3.1.49-1.1openSUSE-SU-2026:10758-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Important.

Red Hat's statement

This is an Important flaw in GitPython that allows for arbitrary code execution. By injecting newlines into Git configuration values, an attacker can manipulate the `core.hooksPath` to execute malicious scripts during standard Git operations. This poses a significant risk in environments where applications process unvalidated user input when interacting with Git repositories, potentially leading to persistent repository configuration poisoning.

Red Hat's mitigation

To mitigate this issue, applications that use GitPython and process untrusted input for Git configuration values must implement robust input validation and sanitization. This prevents the injection of newlines that could manipulate `core.hooksPath` and lead to arbitrary code execution. Additionally, ensure that applications interacting with Git repositories operate with the principle of least privilege to limit the potential impact of any successful exploitation.

ProductPackageStateAdvisory
Red Hat Ansible Automation Platform 2.5 for RHEL 8python3.12-gitpython-0:3.1.50-1.el8apFixed 2026-07-20RHSA-2026:42078
Red Hat Ansible Automation Platform 2.5 for RHEL 9python3.12-gitpython-0:3.1.50-1.el9apFixed 2026-07-20RHSA-2026:42078
Red Hat Ansible Automation Platform 2.6 for RHEL 9python3.12-gitpython-0:3.1.50-1.el9apFixed 2026-07-20RHSA-2026:42079
Red Hat Satellite 6.19 for RHEL 9python3.12-gitpython-0:3.1.59-1.el9pcFixed 2026-09-03RHSA-2026:63385
Red Hat Ansible Automation Platform 2.5ansible-automation-platform-25/controller-rhel8:1789607021Fixed 2026-09-23RHSA-2026:71210
Red Hat Ansible Automation Platform 2.6ansible-automation-platform-26/hub-rhel9:1783979593Fixed 2026-07-20RHSA-2026:42132
Red Hat Ansible Automation Platform 2.6ansible-automation-platform-26/controller-rhel9:1789673739Fixed 2026-09-23RHSA-2026:71179
Red Hat Ansible Automation Platform 2.6ansible-automation-platform-26/hub-rhel9:1789611274Fixed 2026-09-23RHSA-2026:71179
Red Hat Ansible Automation Platform 2.7ansible-automation-platform-27/controller-rhel9:1787220257Fixed 2026-08-24RHSA-2026:59153
Red Hat Ansible Automation Platform 2.7ansible-automation-platform-27/hub-rhel9:1788918708Fixed 2026-09-14RHSA-2026:67279
Exploit Intelligenceexploit-intelligence-tech-preview/vulnerability-analysis-rhel9Affected
Migration Toolkit for Applications 8mta/mta-solution-server-rhel9Not affected
Pen Drive Powered by Red Hat Lightspeedpen-drive/pen-drive-scanner-rhel9Affected
Red Hat AI Inference Serverrhaiis/vllm-cpu-rhel9Will not fix
Red Hat AI Inference Serverrhaiis/vllm-cuda-rhel9Not affected
Red Hat AI Inference Serverrhaiis/vllm-rocm-rhel9Not affected
Red Hat AI Inference Serverrhaiis/vllm-tpu-rhel9Will not fix
Red Hat Ansible Automation Platform 2ansible-automation-platform-24/controller-rhel8Will not fix
Red Hat Ansible Automation Platform 2ansible-automation-platform-24/hub-rhel8Will not fix
Red Hat Ansible Automation Platform 2ansible-automation-platform-25/hub-rhel8Not affected
74 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-44244.

Attack patterns (CAPEC)

  • CAPEC-35 Leverage Executable Code in Non-Executable Files Likelihood: High · Severity: Very High
  • CAPEC-77 Manipulating User-Controlled Variables Likelihood: High · Severity: Very High
  • CAPEC-242 Code Injection Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON