ZeroDay Brief
Happy holidays from ZeroDay Brief!
CVE-2026-44244

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…

CVSS
7.8High
Chance of exploitation (EPSS)
—
Published
May 7, 2026
In the news
Not yet
Vendor advisory More from this vendor

What to do

A serious code injection flaw in Gitpython that needs access to the machine itself. No attacks are reported yet; it can go in your normal patch cycle.

Action: Apply the vendor's update or follow its advisory.

Fixed in: 3.1.49

Affected versions
Gitpython
Before 3.1.49; < 3.1.49

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.

CWE-94

Affected products

Get alerts for these →

Timeline 4

Latest change: Tenable Cloud Security plugin 457081: Echo: python-git: security update to 3.1.49 (Nov 19, 2026)

News, advisories, exploit code, scanner detection and exploitation, newest first.

References 3

  • github.com Patch /gitpython-developers/GitPython/releases/tag/3.1.49
  • github.com ExploitMitigationVendor Advisory /gitpython-developers/GitPython/security/advisories/GHSA-v87r-6q3f-2j67
  • github.com ExploitMitigationVendor Advisory /gitpython-developers/GitPython/security/advisories/GHSA-v87r-6q3f-2j67

You are leaving ZeroDay Brief

This link goes to exploit code on a third-party site. We find these links automatically and do not test, review or vouch for them. They may contain malware or fake exploits.

We are not responsible for anything that happens if you open the page or run its code. Never run exploit code on systems you care about.

↑ ↓ moveEnter openEsc closeTry “CVE-2026”, “fortinet” or “ivanti”