Cloudanix VulnDB

CVE-2026-78678

Medium · 6.5

CVSS

6.5

EPSS

0.4%

Published

Aug 25, 2026

CISA due date

—

Cloudanix analysis

Monitor only SSVC: Track

A bug in a popular Python library for working with Git lets attackers read any file on the server if an application uses one particular function without updated protections.

Exploit Available
Exploitation
Remote Authenticated
Attacker needs
Low Privilege
Complexity
Low
Impact
Data Exposure
Component
Library
Class
Path Traversal
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

Incomplete denylist in unsafe_git_revision_options allows --contents and -S options to reach git blame, enabling arbitrary file reads via crafted revision values passed to Repo.blame().

Why it matters to the business

Attackers can exfiltrate sensitive files such as configuration or credential stores, increasing risk of data exposure and compliance violations; exploit code is publicly available 60 days after disclosure with rising EPSS.

How an attack unfolds

An attacker supplies a malicious revision string containing --contents=/etc/passwd (or similar) to Repo.blame(), bypassing the guard and causing the underlying git process to return the requested file contents to the caller.

How to fix it

Upgrade GitPython to version 3.1.59 or later; audit all calls to Repo.blame() and replace with safer alternatives where possible.

How to confirm the fix worked

Confirm GitPython version is 3.1.59 or newer; attempt to invoke blame with --contents= and verify the call is rejected or sanitized.

Typical attack path

  1. Locate application code or dependency using vulnerable GitPython version
  2. Invoke Repo.blame() with revision option containing --contents or -S pointing to target file
  3. Receive file contents embedded in the blame result object
  4. Exfiltrate or further abuse disclosed data

How to detect it

Search application and git process logs for blame invocations containing --contents, -S, or file-path-like revision strings; inspect outbound traffic or returned objects for unexpected file contents.

  • --contents=
  • Repo.blame.*--contents
  • git blame.*-S

What your security team should do

  • Immediately upgrade all instances of GitPython to 3.1.59+
  • Scan source code for direct use of Repo.blame() and apply input validation
  • Monitor dependency update pipelines for GitPython releases

The record

GitPython versions before 3.1.59 contain an incomplete denylist in the unsafe_git_revision_options guard that omits --contents and -S options, allowing attackers to read arbitrary files by passing these options to Repo.blame(). Attackers can supply revision values like --contents=/etc/passwd to leak file contents through the blame result returned to the caller.

Affected packages

Ecosystem Package Introduced Fixed

Related vulnerabilities