Cloudanix VulnDB

CVE-2026-78676

Critical · 9.8

CVSS

9.8

EPSS

0.6%

Published

Aug 25, 2026

CISA due date

—

Cloudanix analysis

Monitor only SSVC: Track

A bug in a widely used Python tool for working with Git repositories lets attackers run their own programs on affected computers simply by getting the tool to rewrite certain settings files.

Exploit Available
Exploitation
Remote Unauthenticated
Attacker needs
None
Complexity
Low
Impact
Remote Code Execution
Component
Library
Class
Command Injection
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

GitPython before 3.1.59 unsafely re-serializes multi-line git-config values on write, converting dormant quoted entries into active directives such as core.hooksPath that enable arbitrary command execution via subsequent hook invocation.

Why it matters to the business

Systems depending on the vulnerable library risk full host compromise through unauthenticated remote code execution; rising exploit availability and an 82% EPSS increase over 30 days elevate urgency for any organization using Git operations in automation or pipelines.

How an attack unfolds

An attacker supplies a crafted git config containing embedded newlines that encode malicious directives; any subsequent unrelated write through GitPython re-serializes the file, activating the injected settings such as core.hooksPath, after which Git executes attacker-controlled hook code.

How to fix it

Upgrade GitPython to version 3.1.59 or later. For Red Hat satellite/iop deployments apply vmaas-rhel9:1789611998 and for satellite/iop-vulnerability apply engine-rhel9:1789637082 via RHSA-2026:68776.

How to confirm the fix worked

Confirm GitPython >= 3.1.59 is installed, then exercise config-write code paths while verifying that multi-line values remain correctly quoted and no unexpected directives such as core.hooksPath appear.

Typical attack path

  1. Supply a git config file containing newline-embedded directives
  2. Trigger any GitPython operation that writes configuration
  3. GitPython re-serializes the config, activating injected directives
  4. Git invokes the resulting hook and executes attacker code

How to detect it

Review application and Git logs for unexpected writes to git config files, search for sudden appearance of core.hooksPath entries, and inspect process execution traces for hooks triggered immediately after GitPython config operations.

  • core.hooksPath
  • git config.*write.*newline
  • hook.*execution.*after.*config.*write

What your security team should do

  • Immediately upgrade GitPython and all dependent Red Hat packages to the listed fixed versions
  • Scan source and container images for the vulnerable library version
  • Add runtime monitoring for unexpected git hook execution or core.hooksPath modifications
  • Prioritize remediation on internet-exposed or CI/CD systems given the exploit maturity and EPSS trend

The record

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.

Affected packages

Ecosystem Package Introduced Fixed

Related vulnerabilities