# GitPython regular expression denial of service in Actor.name_email_regex

Source: https://junglewise.ai/threats/duplicate-advisory-denial-of-service-via-catastrophic-backtracking-f2ac86b1  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-09-09. Updated: 2026-10-01  
License: CC BY 4.0 with a link back

Severity: high · CVSS 7.5 · Published 2026-09-09

GitPython is a library that developers use to interact with Git repositories programmatically. A flaw in how it parses commit author and committer fields allows an attacker to craft a malicious commit that causes the library to consume CPU resources for several minutes, disrupting any service that reads commit metadata. This could affect CI/CD pipelines, code hosting platforms, and repository scanning tools.

Technologies: [GitPython Developers GitPython](https://junglewise.ai/threats/technologies/gitpython-developers-gitpython), [gitpython (PyPI)](https://junglewise.ai/threats/technologies/pypi-gitpython). Vendors: [GitPython Developers](https://junglewise.ai/threats/vendors/gitpython-developers), [PyPI](https://junglewise.ai/threats/vendors/pypi).

## Quick answers

**Is This vulnerability exploited in the wild?** No. Junglewise Threat Intelligence has no report of This vulnerability being exploited in the wild.

**How severe is This vulnerability?** High severity, with a CVSS score of 7.5, published 9 September 2026.

**Which products and versions are affected?** GitPython Developers GitPython before 3.1.60; gitpython (PyPI) <= 3.1.59.

**Is there a fix for This vulnerability?** A patch was published on 2026-09-09: Fix available in GitPython 3.1.60 or later Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is This vulnerability attacked?** It is attacked over the network.

**Am I affected?** Check whether you run GitPython Developers GitPython or gitpython (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## Technical details

GitPython's Actor.name_email_regex (git/util.py line 863) uses an unbounded greedy regex pattern (.*) &lt;(.*?)&gt; that exhibits quadratic backtracking when processing author/committer fields containing an unterminated angle bracket. The vulnerability is triggered whenever commit.author, commit.committer, repo.iter_commits(), or repo.blame() is accessed on a crafted commit object, with no length limits or timeouts applied before regex execution. The fix was released in GitPython 3.1.60.

## Affected products

- GitPython Developers GitPython before 3.1.60

## Timeline

- 2026-08-26: disclosed: Advisory GHSA-g5vv-9gxw-82hx published
- 2026-09-09: advisory: Duplicate advisory GHSA-qpf5-3wfw-fh7q published and later withdrawn
- 2026-09-09: patched: Fix available in GitPython 3.1.60 or later

## References

- [https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-g5vv-9gxw-82hx](https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-g5vv-9gxw-82hx)

## Related threats

- [GitPython command wrappers omit unsafe protocol and option checks](https://junglewise.ai/threats/cve-2026-110857-gitpython-command-wrappers-omit-unsafe-protocol-and-option)
- [GitPython submodule path traversal to arbitrary hook execution](https://junglewise.ai/threats/cve-2026-114145-gitpython-is-a-python-library-used-to-interact-with-git)
- [GitPython symlink following in Submodule.move()](https://junglewise.ai/threats/cve-2026-110860-gitpython-from-3-1-62-before-3-2-0-contains-a-symlink-following)
- [GitPython argument injection in Head.checkout()](https://junglewise.ai/threats/cve-2026-110859-gitpython-before-3-2-0-contains-an-argument-injection)
- [GitPython remote code execution in Remote.pull() refspec argument](https://junglewise.ai/threats/cve-2026-110858-gitpython-from-3-1-30-before-3-2-0-contains-a-remote-code)
