Arbitrary Code Injection Affecting py3.13-gitpython package, versions <3.1.49-r0


Severity

Recommended
low

Based on default assessment until relevant scores are available.

Threat Intelligence

Social Trends
EPSS
0.24% (15th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-MINIMOSLATEST-PY313GITPYTHON-16536007
  • published8 May 2026
  • disclosed7 May 2026

Introduced: 7 May 2026

CVE-2026-44244  (opens in a new tab)
CWE-94  (opens in a new tab)

How to fix?

Upgrade Minimos:latest py3.13-gitpython to version 3.1.49-r0 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream py3.13-gitpython package and not the py3.13-gitpython package as distributed by Minimos. See How to fix? for Minimos:latest relevant fixed versions and status.

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.

CVSS Base Scores

version 3.1