Skip to content
Fencer Vulns
critical 9.8

CVE-2026-78676 json

GitPython before 3.1.59 Remote Code Execution via Config Injection

published 2026-08-25 2 mo ago modified 2026-10-12 28 d ago also GHSA-284h-m62q-gf8w , PYSEC-2026-3786 , EUVD-2026-65222

cvss
9.8
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
0.6%
EPSS 0.6% chance of exploitation in 30 days, percentile 46%
public exploits
0
none known

Summary

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.

Patch / fix

  • pypi gitpython 3.1.59
  • gitpython-developers GitPython 3.1.59
  • python-git Debian 12 3.1.30-1+deb12u3
  • python-git Debian 13 3.1.44-1+deb13u1
  • python-git Debian 14 3.1.61-1

debian advisories DEBIAN-CVE-2026-78676

  • python-GitPython SLES for SAP 15 SP6, SLES for SAP 15 SP5, SLES for SAP 15 SP4 +8 more 3.1.34.1693646983.2a2ae77-150400.9.8.1

suse advisories SUSE-SU-2026:4072-1

  • python-GitPython openSUSE Leap 16.0 3.1.44-160000.4.1
  • python-GitPython openSUSE Tumbleweed 3.1.59-3.1

opensuse advisories openSUSE-SU-2026:21874-1openSUSE-SU-2026:11615-1

  • py3-gitpython Alpine 3.24 3.1.61-r0

alpine advisories ALPINE-CVE-2026-78676

Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2026-78676 updated cvss 9.8

gitpython: GitPython before 3.1.59 Remote Code Execution via Config Injection

  • Red Hat Exploit Intelligence exploit-intelligence/vulnerability-analysis-rhel9, exploit-intelligence-tech-preview/vulnerability-analysis-rhel9
    affected: workaround, no fix available, no fix planned “Will not fix”
  • Red Hat AI Inference Server rhaiis/vllm-cpu-rhel9, rhaiis/vllm-tpu-rhel9 Red Hat Ansible Automation Platform 2 ansible-automation-platform-24/hub-rhel8, ansible-automation-platform-24/controller-rhel8
    affected: workaround, no fix planned “Will not fix”
  • Red Hat Enterprise Linux AI (RHEL AI) 3 rhelai3/bootc-cuda-rhel9, rhelai3/bootc-rocm-rhel9, rhelai3/bootc-gaudi-rhel9, rhelai3/disk-image-cuda-rhel9
    affected: workaround, no fix available, no fix planned “Will not fix”
  • Red Hat OpenShift AI (RHOAI) rhoai/odh-th06-cpu-torch291-py312-rhel9, rhoai/odh-th06-cuda130-torch291-py312-rhel9, rhoai/odh-training-cuda128-torch29-py312-rhel9 Red Hat OpenStack Platform 16.2 rhosp-rhel8/openstack-mistral-api, rhosp-rhel8/openstack-mistral-base, rhosp-rhel8/openstack-tripleoclient, rhosp-rhel8/openstack-mistral-engine, rhosp-rhel8/openstack-nova-scheduler, rhosp-rhel8/openstack-mistral-executor, +1 more Red Hat Satellite 6 python-gitpython, python3.12-gitpython
    affected: workaround, no fix available
  • Red Hat Ansible Automation Platform 2.5 ansible-automation-platform-25/controller-rhel8 1789607021
    fixed: vendor fix RHSA-2026:71210
  • Red Hat Ansible Automation Platform 2.6 ansible-automation-platform-26/controller-rhel9 1789673739
    fixed: vendor fix RHSA-2026:71179
  • Red Hat Ansible Automation Platform 2.7 ansible-automation-platform-27/hub-rhel9 1791254555, ansible-automation-platform-27/controller-rhel9 1791253059
    fixed: vendor fix RHSA-2026:79378
  • Red Hat OpenShift AI 2.25 rhoai/odh-feature-server-rhel9 1792148523, rhoai/odh-workbench-jupyter-minimal-cpu-py312-rhel9 1791870787, rhoai/odh-workbench-jupyter-minimal-cuda-py312-rhel9 1791867222, rhoai/odh-workbench-jupyter-minimal-rocm-py312-rhel9 1791903144, rhoai/odh-workbench-jupyter-pytorch-cuda-py312-rhel9 1791867191, rhoai/odh-workbench-jupyter-pytorch-rocm-py312-rhel9 1791867238, +5 more
    fixed: vendor fix RHSA-2026:87410
show 7 more
  • Red Hat OpenShift AI 3.4 rhoai/odh-mlflow-rhel9 1791865967, rhoai/odh-feature-server-rhel9 1791863220, rhoai/odh-th06-cpu-torch210-py312-rhel9 1791874335, rhoai/odh-th06-rocm64-torch291-py312-rhel9 1791872119, rhoai/odh-th06-cuda130-torch210-py312-rhel9 1791961113, rhoai/odh-trustyai-nemo-guardrails-server-rhel9 1791556128, +15 more
    fixed: vendor fix RHSA-2026:84734
  • Red Hat OpenShift AI 3.5 rhoai/odh-th-torch-cpu-py312-rhel9 1791926611, rhoai/odh-th-torch-cuda-py312-rhel9 1791927642, rhoai/odh-th-torch-rocm-py312-rhel9 1791925861, rhoai/odh-pipeline-runtime-pytorch-cuda-py312-rhel9 1791816462, rhoai/odh-pipeline-runtime-pytorch-rocm-py312-rhel9 1791951049, rhoai/odh-workbench-jupyter-minimal-cpu-py312-rhel9 1791572098, +14 more
    fixed: vendor fix RHSA-2026:86891
  • Red Hat Satellite 6.18 satellite/iop-vmaas-rhel9 1789611858, satellite/iop-vulnerability-engine-rhel9 1789637082
    fixed: vendor fix RHSA-2026:68764
  • Red Hat Satellite 6.19 satellite/iop-vmaas-rhel9 1789611998, satellite/iop-vulnerability-engine-rhel9 1789607605
    fixed: vendor fix RHSA-2026:68780
  • Red Hat Migration Toolkit for Applications 8 mta/mta-solution-server-rhel9
    not affected: component not present
  • Red Hat Ansible Automation Platform 2 python-gitpython, python3x-gitpython, python3.11-gitpython, python3.12-gitpython, automation-controller, ansible-automation-platform-25/hub-rhel8, +1 more Red Hat Ansible Automation Platform 2.5 ansible-automation-platform-25/hub-rhel8 1789606395, ansible-automation-platform-25/gateway-rhel8 1789605572, ansible-automation-platform-25/hub-web-rhel8 1789690469, ansible-automation-platform-25/receptor-rhel8 1789590330, ansible-automation-platform-25/de-minimal-rhel8 1789634812, ansible-automation-platform-25/ee-minimal-rhel8 1789652412, +20 more Red Hat Ansible Automation Platform 2.6 ansible-automation-platform-26/hub-rhel9 1789611274, ansible-automation-platform-26/gateway-rhel9 1789666472, ansible-automation-platform-26/hub-web-rhel9 1789615881, ansible-automation-platform-26/receptor-rhel9 1789610120, ansible-automation-platform-26/mcp-tools-rhel9 1789609282, ansible-automation-platform-26/de-minimal-rhel9 1789658734, +24 more Red Hat Ansible Automation Platform 2.7 ansible-automation-platform-27/gateway-rhel9 1791257377, ansible-automation-platform-27/hub-web-rhel9 1791264503, ansible-automation-platform-27/receptor-rhel9 1791251288, ansible-automation-platform-27/mcp-tools-rhel9 1790931895, ansible-automation-platform-27/de-minimal-rhel9 1790931681, ansible-automation-platform-27/ee-minimal-rhel9 1790991048, +25 more Red Hat Hardened Images llvm, rust, llvm21, swift-lang Red Hat OpenShift AI 2.25 rhoai/odh-rhel9-operator 1792570619, rhoai/odh-vllm-cpu-rhel9 1792018436, rhoai/odh-dashboard-rhel9 1791853525, rhoai/odh-modelmesh-rhel9 1790881700, rhoai/odh-operator-bundle 1792571069, rhoai/odh-vllm-cuda-rhel9 1791358976, +55 more
    +2 more products
    Red Hat OpenShift AI 3.4 rhoai/odh-cli-rhel9 1791509689, rhoai/rhai-cli-rhel9 1791509689, rhoai/odh-automl-rhel9 1791535789, rhoai/odh-autorag-rhel9 1791557539, rhoai/odh-trainer-rhel9 1791869783, rhoai/odh-eval-hub-rhel9 1791852583, +79 more Red Hat OpenShift AI 3.5 rhoai/odh-cli-rhel9 1791945905, rhoai/rhai-cli-rhel9 1791945905, rhoai/odh-automl-rhel9 1791916705, rhoai/odh-mlflow-rhel9 1791947857, rhoai/odh-autorag-rhel9 1791903266, rhoai/odh-trainer-rhel9 1791952138, +93 more
    not affected: vulnerable code not present
  • Red Hat OpenStack Platform 16.2 python3-GitPython Red Hat OpenStack Platform 17.1 GitPython, python3-GitPython, rhosp-rhel9/openstack-tripleoclient
    not affected: vulnerable code not in execute path

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
none
Automatable
yes
Technical impact
total
Assessed
2 mo ago

Exploit prediction

0.56% chance of exploitation in the next 30 days, higher than 46% of all scored CVEs (FIRST EPSS, 2026-11-08).

Exploits and checks

  • github.com https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-284h-m62q-gf8w referenced PoC, tagged "exploit" by a source, unverified

CVSS scores

assigned by version score vector
CNA 4.0 9.3 CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
CNA 3.1 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CNA 4.0 9.3 CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
GitHub 3.1 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected packages

ecosystem package affected fixed in
pypi gitpython
<3.1.59
3.1.59

Affected products

  • gitpython-developers GitPython

Classification

Weakness
  • CWE-88 Improper Neutralization of Argument Delimiters in a Command
  • CWE-94 Improper Control of Generation of Code

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.