CVE-2026-73624: GitPython before 3.1.54 Arbitrary File Overwrite via diff

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

6 affected componentsFixes available
GitPython GitPython<3.1.54
Gitpython Project Gitpython Python<3.1.54
debian/python-git<3.1.30-1+deb12u3
3.1.30-1+deb12u3
debian/python-git<3.1.44-1+deb13u1
3.1.44-1+deb13u1
debian/python-git<3.1.61-1
3.1.61-1
debian/python-git<=3.1.30-1+deb12u2, <=3.1.44-1
3.1.30-1+deb12u33.1.44-1+deb13u13.2.1-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/python-git to a version that resolves this vulnerability.

    Fixed in 3.1.30-1+deb12u3
  2. Upgrade

    Upgrade debian/python-git to a version that resolves this vulnerability.

    Fixed in 3.1.44-1+deb13u1
  3. Upgrade

    Upgrade debian/python-git to a version that resolves this vulnerability.

    Fixed in 3.1.61-1
  4. Upgrade

    Upgrade debian/python-git to a version that resolves this vulnerability.

    Fixed in 3.1.30-1+deb12u3Fixed in 3.1.44-1+deb13u1Fixed in 3.2.1-1
  5. Upgrade

    Upgrade GitPython to a version that resolves this vulnerability.

    Fixed in 3.1.54
  6. Compensating control

    If upgrading is not immediately possible, avoid calling GitPython Diffable.diff with untrusted user-controlled parameters/kwargs that can influence the --output argument (or otherwise ensure --output is not attacker-controlled).

Event History

Aug 13, 2026
CVE Published
via MITRE·11:28 AM
Data Sourced
via MITRE·11:28 AM
DescriptionSeverityWeakness
Data Sourced
via Red Hat·11:52 AM
DescriptionSeverityAffected Software
Data Sourced
via NVD·12:17 PM
DescriptionSeverityWeaknessAffected Software
Data Sourced
via OSV·12:17 PM
DescriptionSeverityAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

What is the severity of CVE-2026-73624?

The severity of CVE-2026-73624 is rated high with a CVSS score of 8.1.

2

How do I fix CVE-2026-73624?

To fix CVE-2026-73624, update GitPython to version 3.1.54 or later.

3

What is the risk associated with CVE-2026-73624?

CVE-2026-73624 has a risk score of 60 which indicates a significant vulnerability.

4

What does CVE-2026-73624 exploit?

CVE-2026-73624 exploits an arbitrary file overwrite vulnerability in the Diffable.diff method of GitPython.

5

When was CVE-2026-73624 published?

CVE-2026-73624 was published on August 13, 2026.

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