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

exploitDog

redhat логотип

CVE-2026-67326

Опубликовано: 01 авг. 2026
Источник: redhat
CVSS3: 7

Описание

GitPython before 3.1.50 fails to validate newline characters in the section parameter of config_writer(), allowing attackers to inject arbitrary section headers into .git/config. Attackers can inject newlines to create a forged [core] section with hooksPath pointing to attacker-controlled directories, achieving remote code execution when git hooks are triggered.

A flaw was found in GitPython. This vulnerability allows attackers to inject newline characters into the section parameter of the config_writer() function, leading to the injection of arbitrary section headers into the .git/config file. By forging a [core] section with a malicious hooksPath, an attacker can achieve remote code execution when Git hooks are subsequently triggered.

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

ПлатформаПакетСостояниеРекомендацияРелиз
Red Hat Hardened ImagesrustNot affected
Red Hat Hardened Imagesllvm-main-22.1.8-4.1.hum1FixedRHSA-2026:4441623.07.2026
Red Hat Hardened Imagesswift-lang-main-6.3.3-0.1.1.hum1FixedRHSA-2026:4578525.07.2026
Red Hat Hardened Imagesllvm21-main-21.1.8-8.hum1FixedRHSA-2026:4594026.07.2026

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

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

Статус:

Moderate
Дефект:
CWE-93
https://bugzilla.redhat.com/show_bug.cgi?id=2510003gitpython: GitPython: Remote Code Execution via Newline Injection in config_writer()

7 High

CVSS3

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

CVSS3: 7
ubuntu
около 1 месяца назад

GitPython before 3.1.50 fails to validate newline characters in the section parameter of config_writer(), allowing attackers to inject arbitrary section headers into .git/config. Attackers can inject newlines to create a forged [core] section with hooksPath pointing to attacker-controlled directories, achieving remote code execution when git hooks are triggered.

CVSS3: 7
nvd
около 1 месяца назад

GitPython before 3.1.50 fails to validate newline characters in the section parameter of config_writer(), allowing attackers to inject arbitrary section headers into .git/config. Attackers can inject newlines to create a forged [core] section with hooksPath pointing to attacker-controlled directories, achieving remote code execution when git hooks are triggered.

CVSS3: 7
debian
около 1 месяца назад

GitPython before 3.1.50 fails to validate newline characters in the se ...

CVSS3: 7
github
около 1 месяца назад

GitPython before 3.1.50 fails to validate newline characters in the section parameter of config_writer(), allowing attackers to inject arbitrary section headers into .git/config. Attackers can inject newlines to create a forged [core] section with hooksPath pointing to attacker-controlled directories, achieving remote code execution when git hooks are triggered.

7 High

CVSS3