Arbitrary Argument Injection Affecting py3-gitpython package, versions <3.1.49-r0


Severity

Recommended
0.0
critical
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

EPSS
0.06% (19th 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-ALPINE323-PY3GITPYTHON-16354247
  • published3 May 2026
  • disclosed7 May 2026

Introduced: 3 May 2026

NewCVE-2026-42284  (opens in a new tab)
CWE-88  (opens in a new tab)

How to fix?

Upgrade Alpine:3.23 py3-gitpython to version 3.1.49-r0 or higher.

NVD Description

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

GitPython is a python library used to interact with Git repositories. Prior to version 3.1.47, _clone() validates multi_options as the original list, then executes shlex.split(" ".join(multi_options)). A string like "--branch main --config core.hooksPath=/x" passes validation (starts with --branch), but after split becomes ["--branch", "main", "--config", "core.hooksPath=/x"]. Git applies the config and executes attacker hooks during clone. This issue has been patched in version 3.1.47.

CVSS Base Scores

version 3.1