CVE-2026-110858: GitPython 3.1.30 before 3.2.0 Command Injection via Remote.pull() Refspec

Published Oct 14, 2026
·
Updated

GitPython from 3.1.30 before 3.2.0 contains a remote code execution vulnerability in Remote.pull() whose unsafe-option guard inspects only keyword arguments, not the positional refspec. Attackers controlling the refspec can supply --upload-pack=<command> to execute OS commands as the calling process over local-path or SSH transports.

Affected Software

1 affected component
pypi/GitPython>=3.1.30<3.2.0

Event History

Oct 14, 2026
CVE Published
via MITRE·10:52 PM
Data Sourced
via MITRE·10:52 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which deployments are realistically exposed?

Deployments using GitPython versions from 3.1.30 up to, but not including, 3.2.0 are exposed when they call Remote.pull() with a refspec influenced or controlled by an attacker. The issue can execute commands over local-path or SSH transports.

2

What does an attacker need to exploit this?

An attacker needs control of the positional refspec passed to Remote.pull(). They can provide an --upload-pack=<command> value, which is not inspected by the unsafe-option guard when supplied as the positional refspec.

3

What should be done if upgrading is not immediately possible?

Do not pass untrusted input as the positional refspec to Remote.pull(). Restrict refspec values to trusted, validated values and prevent option-like input such as --upload-pack=<command>.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203