Free and open · new CVEs checked every 20 minutesStatusRSSOpen dataContact

CVE-2026-78676: GitPython before 3.1.59 fails to safely re-serialize multi-line git-config values during write operations, cor

61
This week
CRITICAL 9.8REMOTEUPGRADE

CVE-2026-78676 is a critical-severity flaw (CVSS 9.8) affecting gitpython. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.

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.

Why this priority

  • Critical severity
  • Public exploit reference
  • CISA SSVC: automatable with total technical impact
  • Remotely exploitable, no login, no user action

A fixed release or distro patch exists.

Risk facts

CVSS score9.8 (Critical)
Attack vectorNetwork (remote)
Attack complexityLow
Privileges neededNone
User interactionNone
EPSS exploit chance0.8% (top 44%)
CISA exploited listNo
WeaknessCWE-88
Published2026-08-25
Last modified2026-10-12
Publisher (CNA): VulnCheck · Vendor: gitpython project

Share: LinkedIn · X · Reddit

Last updated 2026-10-12 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score

Am I affected?

Timeline

gitpython project gitpython UPGRADE
Affected: < 3.1.59
Fixed in: 3.1.59
Safe to downgrade to: no unaffected older release
1. Check installed version
pip show gitpython
2. UPGRADE to 3.1.59
pip install --upgrade "gitpython>=3.1.59"

Exact fixes by distribution

Python (pip) · GitPython · FIXED · 3.1.59 · vulnerable: <= 3.1.58 · source
pip install --upgrade "GitPython>=3.1.59" pip show GitPython
Fedora ELN · openbao · FIXED · 2.6.5-1.eln159 · FEDORA-2026-77adf886ae · source
sudo dnf upgrade --advisory=FEDORA-2026-77adf886ae
Fedora 46 · sugar-turtleart · FIXED · 220-16.fc46 · FEDORA-2026-b79483c788 · source
sudo dnf upgrade --advisory=FEDORA-2026-b79483c788
Debian 12 · python-git · NO FIX YET
Debian 13 · python-git · NO FIX YET
RHEL AI (RHEL AI) 3 · rhelai3/bootc-cuda-rhel9 · NO FIX YET
RHEL AI (RHEL AI) 3 · rhelai3/bootc-gaudi-rhel9 · DEFERRED
RHEL AI (RHEL AI) 3 · rhelai3/bootc-rocm-rhel9 · NO FIX YET
RHEL AI (RHEL AI) 3 · rhelai3/disk-image-cuda-rhel9 · NO FIX YET
Alpine 3.24 · py3-gitpython · FIXED · py3-gitpython-3.1.61-r0
apk add --upgrade py3-gitpython apk info -v py3-gitpython

Public exploits and detection

Public code exists for this CVE. Treat unpatched systems as at risk, and only run PoCs in a lab.

Verify at the official source NVD · CVE Program · Report a problem with this page
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.

Quick answers

How do I fix CVE-2026-78676?

gitpython: upgrade to 3.1.59. Exact commands for each OS are on this page.

Is CVE-2026-78676 being exploited?

CVE-2026-78676 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.

What does CVE-2026-78676 affect?

CVE-2026-78676 affects gitpython. Severity is critical (CVSS 9.8). 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 newline

How urgent is CVE-2026-78676?

Priority 61/100. Critical severity; Public exploit reference; CISA SSVC: automatable with total technical impact; Remotely exploitable, no login, no user action

Software pages

Git vulnerabilities

Related CVEs

References

← Back to latest CVEs

Get the weekly exploited-CVE digest by emailThe CVEs being attacked this week and how to fix them. No spam, unsubscribe any time.