CVE-2026-67326

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.
Configurations

Configuration 1 (hide)

cpe:2.3:a:gitpython_project:gitpython:*:*:*:*:*:python:*:*

History

23 Oct 2026, 23:10

Type Values Removed Values Added
Summary
  • (es) GitPython anterior a la versión 3.1.50 no valida correctamente los caracteres de nueva línea en el parámetro ’section’ de ’config_writer()’, lo que permite a los atacantes inyectar encabezados de sección arbitrarios en .git/config. Los atacantes pueden inyectar caracteres de nueva línea para crear una sección ’[core]’ falsificada con ’hooksPath’ apuntando a directorios controlados por el atacante, logrando la ejecución remota de código cuando se activan los ’git hooks’.

16 Sep 2026, 20:45

Type Values Removed Values Added
References () https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-mv93-w799-cj2w - () https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-mv93-w799-cj2w - Exploit, Vendor Advisory
References () https://www.vulncheck.com/advisories/gitpython-before-newline-injection-via-config-writer-section - () https://www.vulncheck.com/advisories/gitpython-before-newline-injection-via-config-writer-section - Third Party Advisory
CPE cpe:2.3:a:gitpython_project:gitpython:*:*:*:*:*:python:*:*
First Time Gitpython Project gitpython
Gitpython Project

Information

Published : 2026-08-01 13:17

Updated : 2026-10-23 23:10


NVD link : CVE-2026-67326

Mitre link : CVE-2026-67326

CVE.ORG link : CVE-2026-67326


JSON object : View

Products Affected

gitpython_project

  • gitpython
CWE
CWE-20

Improper Input Validation