CVE-2026-67323: GitPython before 3.1.51 Command Injection via unguarded Git options

Published Aug 1, 2026
·
Updated

GitPython before 3.1.51 fails to guard against dangerous Git options passed as keyword arguments in Repo.archive() and git.lsremote(), allowing command injection via options such as --exec/--upload-pack (leading to arbitrary command execution). Additionally, Repo.itercommits() and Repo.blame() do not check for leading-dash revision arguments, so a revision like --output=<path> can cause Git to open and truncate an arbitrary file. Exploitation requires an application that passes attacker-controlled arguments to these methods.

Affected Software

1 affected component
GitPython GitPython<3.1.51

Event History

Aug 1, 2026
CVE Published
via MITRE·12:22 PM
Data Sourced
via MITRE·12:22 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·01:17 PM
DescriptionSeverityWeakness
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-67323?

The severity of CVE-2026-67323 is rated high with a score of 8.4.

2

How do I fix CVE-2026-67323?

To mitigate CVE-2026-67323, upgrade GitPython to version 3.1.51 or later.

3

What type of vulnerability is CVE-2026-67323?

CVE-2026-67323 is classified as a command injection vulnerability.

4

What functions are affected by CVE-2026-67323?

CVE-2026-67323 affects Repo.archive(), git.ls_remote(), Repo.iter_commits(), and Repo.blame() functions.

5

What are the potential impacts of CVE-2026-67323?

Exploitation of CVE-2026-67323 can lead to arbitrary command execution on the host system.

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