Intel

AIKIDO-2026-760814

gitpython is vulnerable to Argument Injection

CVE-2026-110858Published Oct 21, 2026
October 21, 2026

81

CVE Score

High

Argument Injection

Are you affected? Scan for Free

TL;DR

Remote.pull() forwards the remote name and positional refspec to self.repo.git.pull() and does not reject an operand that starts with -. git pull passes those operands to an internal git fetch without a -- separator, so a value such as --upload-pack=<command> runs as the upload-pack program on a local-path or SSH remote. Keyword-only guards, including Git._option_candidates([], kwargs) where that call is present, never inspect the positional refspec. The fix rejects a remote name or pull refspec that starts with -.

How do I fix this?

Upgrade the gitpython package to version 3.2.0 or later.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and call Remote.pull() with a refspec or remote name that starts with - on a local-path or SSH remote.

Package

Versions

0.3.2 - 3.1.62

Fixed in 3.2.0

Background info

gitpython is vulnerable to Argument Injection in versions 0.3.2 - 3.1.62.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea