REDHAT-BUG-2552966: High severity GitPython GitPython vulnerability

Published Oct 14, 2026
·
Updated

GitPython before 3.2.0 contains a remote code execution vulnerability that allows attackers to run commands because Git.lsremote forwards URLs without checkunsafeprotocols validation. Attackers can supply ext:: remote-helper URLs to execute commands when git permits the ext transport, while mergebase and IndexFile.move also accept unguarded option injection.

Affected Software

1 affected component
GitPython GitPython<3.2.0

Event History

Oct 14, 2026
Data Sourced
via Red Hat·11:02 PM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

Who is exposed to this issue?

Applications using GitPython before 3.2.0 are exposed where an attacker can influence a URL passed to Git.ls_remote or values passed to merge_base or IndexFile.move. Command execution through ext:: URLs also depends on the installed Git permitting the ext transport.

2

What does an attacker need to exploit the remote-code-execution path?

The attacker needs to be able to supply an ext:: remote-helper URL to Git.ls_remote. Exploitation succeeds when Git permits use of the ext transport.

3

Are default Git configurations affected by the ext:: URL attack?

The provided information does not establish whether Git permits the ext transport by default. The ext:: attack path is conditional on that transport being permitted.

4

What can be done before upgrading?

Do not allow untrusted users or inputs to control URLs supplied to Git.ls_remote, and reject ext:: remote-helper URLs. Also prevent untrusted values from reaching merge_base or IndexFile.move, because those methods accept unguarded option injection.

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