CVE-2026-78678
Medium · 6.5CVSS
6.5
EPSS
0.4%
Published
Aug 25, 2026
CISA due date
—
Cloudanix analysis
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.
- 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
- Locate application code or dependency using vulnerable GitPython version
- Invoke Repo.blame() with revision option containing --contents or -S pointing to target file
- Receive file contents embedded in the blame result object
- 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
- CVE-2026-97350 Securepoint SSL VPN Client v2 on Windows contains vulnerabilities in the handling of… CWE-88
- CVE-2026-91909 Dell OpenManage Enterprise, versions prior to 4.8.0, contains an Improper Neutralization… CWE-88
- CVE-2026-62968 Dream Displays provides in-game screens for streaming videos in Minecraft. CWE-88
- CVE-2026-116252 pgAdmin 4's materialized view refresh passed the target database's name to psql's… CWE-88
- CVE-2026-111504 Dell OpenManage Enterprise, versions prior to 4.8.0, contains an Improper Neutralization… CWE-88
- CVE-2026-119282 Nx is a monorepo solution for TypeScript and polyglot codebases. CWE-88
- CVE-2026-90868 An OS command injection vulnerability in Progress Software WS_FTP Server versions prior… CWE-88
- CVE-2026-90865 An OS command injection vulnerability in Progress Software WS_FTP Server versions prior… CWE-88