Логотип exploitDog
Консоль
Логотип exploitDog

exploitDog

redhat логотип

CVE-2026-78675

Опубликовано: 25 авг. 2026
Источник: redhat
CVSS3: 5.5
EPSS Низкий

Описание

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.

A flaw was found in GitPython that could allow for local file content disclosure. This vulnerability occurs because GitPython does not properly disable merge_includes when processing .gitmodules files. An attacker could exploit this by creating a specially crafted .gitmodules file with include directives that reference sensitive local files. When a user interacts with the repository's submodules, the system may inadvertently reveal the first line of these sensitive files through an error message.

Отчет

A flaw was found in GitPython's handling of .gitmodules files. GitPython fails to disable merge_includes when parsing .gitmodules, allowing attackers to disclose local file content by including arbitrary file paths via [include] directives in a malicious .gitmodules file. When a user opens an untrusted repository and accesses the repository's submodules (e.g., via repo.submodules), the GitConfigParser may raise a MissingSectionHeaderError that embeds the first line of the target file verbatim in the exception message. This exception message can be exposed through CI logs, error pages, exception trackers, and code review bots, creating multiple disclosure channels. This vulnerability is rated as having a moderate security impact due to the user interaction requirement (the user must perform a read-only operation on the malicious repository). Note: NIST rated this vulnerability as HIGH (CVSS 7.8) with Integrity and Availability impact, but this is incorrect—the vulnerability provides information disclosure only, with no integrity or availability impact.

Меры по смягчению последствий

Mitigation for this issue is either not available or the currently available options don't meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability. For additional information, refer to the upstream advisory at https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-7833-fr7j-v32q.

Затронутые пакеты

ПлатформаПакетСостояниеРекомендацияРелиз
Exploit Intelligenceexploit-intelligence-tech-preview/vulnerability-analysis-rhel9Fix deferred
Exploit Intelligenceexploit-intelligence/vulnerability-analysis-rhel9Fix deferred
Migration Toolkit for Applications 8mta/mta-solution-server-rhel9Fix deferred
Red Hat AI Inference Serverrhaiis/vllm-cpu-rhel9Fix deferred
Red Hat AI Inference Serverrhaiis/vllm-tpu-rhel9Fix deferred
Red Hat Ansible Automation Platform 2ansible-automation-platform-24/controller-rhel8Fix deferred
Red Hat Ansible Automation Platform 2ansible-automation-platform-24/hub-rhel8Fix deferred
Red Hat Ansible Automation Platform 2ansible-automation-platform-25/controller-rhel8Fix deferred
Red Hat Ansible Automation Platform 2ansible-automation-platform-25/hub-rhel8Fix deferred
Red Hat Ansible Automation Platform 2ansible-automation-platform-26/controller-rhel9Fix deferred

Показывать по

Дополнительная информация

Статус:

Moderate
Дефект:
CWE-73
https://bugzilla.redhat.com/show_bug.cgi?id=2523214GitPython: GitPython: Local file content disclosure via malicious .gitmodules

EPSS

Процентиль: 2%
0.00119
Низкий

5.5 Medium

CVSS3

Связанные уязвимости

CVSS3: 8.4
ubuntu
24 дня назад

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.

CVSS3: 8.4
nvd
24 дня назад

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.

CVSS3: 8.4
debian
24 дня назад

GitPython before 3.1.59 fails to disable merge_includes when parsing . ...

CVSS3: 8.4
github
9 дней назад

GitPython: Arbitrary local file content disclosure via [include] directive in untrusted .gitmodules (SubmoduleConfigParser never disables merge_includes)

CVSS3: 8.4
fstec
около 1 месяца назад

Уязвимость функции Submodule._config_parser() библиотеки Python для взаимодействия с git-репозиториями GitPython, позволяющая нарушителю выполнить произвольный код

EPSS

Процентиль: 2%
0.00119
Низкий

5.5 Medium

CVSS3

Уязвимость CVE-2026-78675