REDHAT-BUG-2515243: High severity GitPython GitPython vulnerability

Published Aug 13, 2026
·
Updated

GitPython versions before 3.1.54 contain an arbitrary file overwrite vulnerability in the Diffable.diff method that fails to validate git options passed through kwargs. Attackers can supply the --output argument via the other parameter or output kwarg to write patch content to attacker-chosen file paths at process privilege level.

Affected Software

1 affected component
GitPython GitPython<3.1.54

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade GitPython to a version that resolves this vulnerability.

    Fixed in 3.1.54

Event History

Aug 13, 2026
Data Sourced
via Red Hat·11:52 AM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

Which deployments are exposed to this issue?

Deployments using GitPython versions before 3.1.54 are affected if untrusted input can influence the git options passed to Diffable.diff through kwargs, including the other parameter or output keyword argument.

2

What does an attacker need to exploit it?

An attacker needs the ability to supply git options to Diffable.diff via the affected kwargs. They can provide the --output option and choose a file path to receive patch content.

3

What is the impact of successful exploitation?

Successful exploitation can overwrite attacker-chosen files with patch content. The write occurs with the privilege level of the process running GitPython.

4

How can I determine whether an application is affected?

Check whether it uses a GitPython version earlier than 3.1.54 and whether Diffable.diff is called with kwargs that can be influenced by untrusted input, particularly other or output.

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