VAITP Dataset

← Back to the dataset

CVE-2026-87819

GitPython <3.1.60 REDoS in Actor.name_email_regex via malformed author field.

  • CVSS 8.7
  • CWE-1333
  • Resource Management
  • Remote

GitPython before 3.1.60 contains a regular expression denial of service vulnerability in Actor.name_email_regex that processes commit author and committer fields. Attackers can craft a commit object with a malformed author field containing an unterminated angle bracket to cause quadratic backtracking, exhausting CPU resources for over two minutes per commit access.

CVSS base score
8.7
Published
2026-09-09
OWASP
A06 Vulnerable and Outdated Components
Orthogonal defect classification
Timing/Serialization
Code defect classification
Timing Issues
Category
Resource Management
Subcategory
Resource Exhaustion
Accessibility scope
Remote
Impact
Denial of Service (DoS)
Affected component
GitPython
Fixed by upgrading
Yes

Solution

Upgrade GitPython to version 3.1.60 or later.

Vulnerable code sample

import re

def parse_actor(author):
    # VULNERABLE: catastrophic backtracking on malformed '<' in author field
    name_email_regex = re.compile(r'([^<]*)<([^>]*?)>', re.UNICODE)
    m = name_email_regex.match(author)
    if not m:
        return None
    name = m.group(1).strip()
    email = m.group(2).strip()
    return name, email

Patched code sample

import re

def parse_actor(author):
    # FIX: use non‑ambiguous pattern to avoid backtracking
    name_email_regex = re.compile(r'\s*([^<]+?)\s*<([^>]+)>\s*$', re.UNICODE)
    m = name_email_regex.fullmatch(author)
    if not m:
        return None
    name = m.group(1).strip()
    email = m.group(2).strip()
    return name, email

Published fix

Public sources link this CVE to the changes below. The code samples above were generated to illustrate the defect; these links lead to the code the project actually changed.

Cite this entry

@misc{vaitp:cve202687819,
  title        = {{GitPython <3.1.60 REDoS in Actor.name_email_regex via malformed author field.}},
  author       = {Bogaerts, Fr\'ed\'eric and Ivaki, Naghmeh and Fonseca, Jos\'e},
  year         = {2026},
  note         = {VAITP Python Vulnerability Dataset, entry CVE-2026-87819},
  howpublished = {\url{https://netpack.pt/vaitp/vulnerability/CVE-2026-87819/}}
}

Download this entry as JSON Download the whole dataset

Introducing the "VAITP dataset": a specialized repository of Python vulnerabilities and patches, meticulously compiled for the use of the security research community. As Python's prominence grows, understanding and addressing potential security vulnerabilities become crucial. Crafted by and for the cybersecurity community, this dataset offers a valuable resource for researchers, analysts, and developers to analyze and mitigate the security risks associated with Python. Through the comprehensive exploration of vulnerabilities and corresponding patches, the VAITP dataset fosters a safer and more resilient Python ecosystem, encouraging collaborative advancements in programming security.

The supreme art of war is to subdue the enemy without fighting.

Sun Tzu – “The Art of War”

:: Shaping the future through research and ingenuity ::

Before you use the VAITP AI models

Please read and accept the following disclaimer:

By choosing "I understand and accept", you acknowledge that you understand and agree to these terms.