CVE-2026-44244
published high CVSS 3.1 · 7.8GitPython: Newline injection in config_writer().set_value() enables RCE via core.hooksPath
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| gitpython-developers | — | GitPython< 3.1.49 | Affected | Not stated | GitHub_M |
| Debian | bookworm | python-git | Advisory build | 3.1.30-1+deb12u3 | DLA-4872-1 |
| SUSE / openSUSE | SLE-15-SP4 | python311-GitPythonnoarch | Advisory build | 3.1.34.1693646983.2a2ae77-150400.9.8.1 | SUSE-SU-2026:4072-1 |
| Ubuntu | bionic | python-git | Advisory build | 2.1.8-1ubuntu0.1~esm4 | USN-8303-1 |
| Debian | trixie | python-git | Advisory build | 3.1.44-1+deb13u1 | DSA-6594-1 |
| SUSE / openSUSE | SLE-15-SP5 | python311-GitPythonnoarch | Advisory build | 3.1.34.1693646983.2a2ae77-150400.9.8.1 | SUSE-SU-2026:4072-1 |
| SUSE / openSUSE | SLE-15-SP6 | python311-GitPythonnoarch | Advisory build | 3.1.34.1693646983.2a2ae77-150400.9.8.1 | SUSE-SU-2026:4072-1 |
| SUSE / openSUSE | SLE-15-SP7 | python311-GitPythonnoarch | Advisory build | 3.1.34.1693646983.2a2ae77-150400.9.8.1 | SUSE-SU-2026:4072-1 |
Show 27 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | SLE-16 | python313-GitPythonnoarch | Advisory build | 3.1.44-160000.3.1 | SUSE-SU-2026:21813-1 |
| SUSE / openSUSE | SLE-3-SP7 | python311-GitPythonnoarch | Advisory build | 3.1.34.1693646983.2a2ae77-150400.9.8.1 | SUSE-SU-2026:4072-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | python313-GitPythonnoarch | Advisory build | 3.1.44-160000.3.1 | OPENSUSE-SU-2026:20777-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-GitPythonaarch64 | Advisory build | 3.1.49-1.1 | OPENSUSE-SU-2026:10758-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-GitPythonppc64le | Advisory build | 3.1.49-1.1 | OPENSUSE-SU-2026:10758-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-GitPythons390x | Advisory build | 3.1.49-1.1 | OPENSUSE-SU-2026:10758-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-GitPythonx86_64 | Advisory build | 3.1.49-1.1 | OPENSUSE-SU-2026:10758-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-GitPythonaarch64 | Advisory build | 3.1.49-1.1 | OPENSUSE-SU-2026:10758-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-GitPythonppc64le | Advisory build | 3.1.49-1.1 | OPENSUSE-SU-2026:10758-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-GitPythons390x | Advisory build | 3.1.49-1.1 | OPENSUSE-SU-2026:10758-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-GitPythonx86_64 | Advisory build | 3.1.49-1.1 | OPENSUSE-SU-2026:10758-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-GitPythonaarch64 | Advisory build | 3.1.49-1.1 | OPENSUSE-SU-2026:10758-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-GitPythonppc64le | Advisory build | 3.1.49-1.1 | OPENSUSE-SU-2026:10758-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-GitPythons390x | Advisory build | 3.1.49-1.1 | OPENSUSE-SU-2026:10758-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-GitPythonx86_64 | Advisory build | 3.1.49-1.1 | OPENSUSE-SU-2026:10758-1 |
| Ubuntu | bionic | python3-git | Advisory build | 2.1.8-1ubuntu0.1~esm4 | USN-8303-1 |
| Ubuntu | focal | python-git | Advisory build | 3.0.7-1ubuntu0.1~esm4 | USN-8303-1 |
| Ubuntu | focal | python3-git | Advisory build | 3.0.7-1ubuntu0.1~esm4 | USN-8303-1 |
| Ubuntu | jammy | python-git | Advisory build | 3.1.24-1ubuntu0.1~esm3 | USN-8303-1 |
| Ubuntu | jammy | python3-git | Advisory build | 3.1.24-1ubuntu0.1~esm3 | USN-8303-1 |
| Ubuntu | noble | python-git | Advisory build | 3.1.37-3ubuntu0.1~esm2 | USN-8303-1 |
| Ubuntu | noble | python3-git | Advisory build | 3.1.37-3ubuntu0.1~esm2 | USN-8303-1 |
| Ubuntu | resolute | python-git | Advisory build | 3.1.46-1ubuntu0.1~esm1 | USN-8303-1 |
| Ubuntu | resolute | python3-git | Advisory build | 3.1.46-1ubuntu0.1~esm1 | USN-8303-1 |
| Ubuntu | trusty | python-git | Advisory build | 0.3.2~RC1-3ubuntu0.1~esm3 | USN-8303-1 |
| Ubuntu | xenial | python-git | Advisory build | 1.0.1+git137-gc8b8379-2.1ubuntu0.1~esm4 | USN-8303-1 |
| Ubuntu | xenial | python3-git | Advisory build | 1.0.1+git137-gc8b8379-2.1ubuntu0.1~esm4 | USN-8303-1 |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.8 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| gitpython-developers | GitPython | < 3.1.49 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-94 CWE-94: Improper Control of Generation of Code ('Code Injection')
References
2Provider assertions
2GitHub_M · cna
GitPython: Newline injection in config_writer().set_value() enables RCE via core.hooksPath
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- aa0158749c47d8c5a6e4b16bb5e98207d0c5b99e2cb62845a7e39dc5323e0f8d
- Ingested
- 23 Sep 2026, 09:15:17 UTC
- Source record
- Official CVE record