CVE-2026-78675
Received Received - Intake

GitPython .gitmodules Local File Disclosure via MissingSectionHeaderError

Vulnerability report for CVE-2026-78675, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-08-25

Last updated on: 2026-08-25

Assigner: VulnCheck

Description

GitPython before 3.1.59 fails to disable merge_includes when parsing .gitmodules, allowing attackers to disclose local file content by including arbitrary file paths via [include] directives. Attackers can craft a malicious .gitmodules file with include directives pointing to sensitive files; when repo.submodules is accessed, GitConfigParser raises MissingSectionHeaderError embedding the target file's first line verbatim in the exception message.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-08-25
Last Modified
2026-08-25
Generated
2026-08-25
AI Q&A
2026-08-25
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 2 associated CPEs
Vendor Product Version / Range
gitpython gitpython to 3.1.59 (exc)
gitpython_developers gitpython to 3.1.59 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-73 The product allows user input to control or influence paths or file names that are used in filesystem operations.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

CVE-2026-78675 is a high-severity vulnerability in GitPython versions 3.1.58 and earlier. It allows attackers to disclose local file content by crafting a malicious .gitmodules file with [include] directives pointing to sensitive files. When repo.submodules is accessed, the parser follows the directive and reads the file. If the file lacks valid git-config syntax, an error message exposes the first line of the file, revealing secrets like API keys or credentials.

Detection Guidance

Check for GitPython versions 3.1.58 or earlier using pip show GitPython or pip list. Inspect .gitmodules files in repositories for suspicious [include] directives pointing to sensitive files like /etc/passwd or .env. Monitor error logs for MissingSectionHeaderError exceptions containing file content.

Impact Analysis

This vulnerability can expose sensitive information such as API keys, database credentials, or other secrets stored in local files. Attackers can craft malicious .gitmodules files to trigger error messages that leak the first line of targeted files. This may occur during routine operations like listing submodules in an untrusted repository.

Compliance Impact

This vulnerability could lead to non-compliance with GDPR and HIPAA by exposing sensitive data such as API keys or database credentials through error messages. GDPR requires protecting personal data, while HIPAA mandates safeguarding protected health information. Disclosure of such data via error logs or trackers violates these regulations.

Mitigation Strategies

Upgrade GitPython to version 3.1.59 or later immediately. Avoid cloning or interacting with untrusted repositories. If using GitPython programmatically, ensure SubmoduleConfigParser is initialized with merge_includes=False.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-78675. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart