9.8Crítica

CVE-2026-78676GitPython before 3.1.59 Remote Code Execution via Config Injection

gitpython-developers GitPython Publicada: (hace 2 meses)

Descripción

GitPython before 3.1.59 fails to safely re-serialize multi-line git-config values during write operations, corrupting dormant quoted values into injected directives like core.hooksPath. Attackers can craft config files with embedded newlines that become live git directives after any unrelated GitPython config write, enabling arbitrary code execution via hook invocation.

Debilidad (CWE): CWE-88

Datos: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Se publican tal como los indican las fuentes, en inglés.

Productos y versiones afectados

FabricanteProductoVersiones
gitpython project gitpython < 3.1.59
gitpython-developers GitPython < 3.1.59, fixed 3.1.59

Referencias y parches

Coincidencias CPE (NVD) (1)

  • cpe:2.3:a:gitpython_project:gitpython:*:*:*:*:*:python:*:* < 3.1.59