VDB

CVE-2026-44244

CVE-2026-44244 PUBLISHED CVSS 7.8 HIGH

GitPython: Newline injection in config_writer().set_value() enables RCE via core.hooksPath

Reported by github_m · Published May 7, 2026

GitPython is fixed in 3.1.49 (PyPI)

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
GitPythonPyPI3.1.49
awxChainguard24.6.1-r35
datahub-ingestion-fipsChainguard1.5.0.1-r2
opalChainguard0.9.5-r1
gitpythongitpython_project3.1.49

Risk scores

CVSS 3.1
7.8
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Affected products

VendorProductVersions
gitpython-developersGitPython< 3.1.49
chainguardawx0
chainguarddatahub-ingestion-fips0
chainguardopal0
gitpython-developersGitPython0
chainguardmlflow-fips0
chainguardmlflow0
PyPIGitPython0
wolfimlflow0

Timeline

  • May 6, 2026 CVE Published
  • May 8, 2026 Security Advisory (2 in total, the first dated here)
  • May 9, 2026 CVE Updated
  • May 18, 2026 EPSS Score (30 in total, the first dated here)
  • Aug 5, 2026 Coalition ESS Score
  • Sep 4, 2026 Distribution Patch

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2026-44244
vulnetix vdb fixes CVE-2026-44244

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-44244/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›