CVE-2026-78678: Improper Neutralization of Argument Delimiters in a Command ('Argument Injection') in gitpython-developers GitPython
GitPython versions before 3.1.59 have an incomplete denylist in the unsafe_git_revision_options guard, which omits the --contents and -S options. This allows attackers to read arbitrary files by passing these options to the Repo.blame() method. By supplying revision values such as --contents=/etc/passwd, attackers can leak file contents through the blame result returned to the caller.
AI Analysis
Technical Summary
CVE-2026-78678 is a vulnerability in GitPython prior to version 3.1.59 where the unsafe_git_revision_options guard does not block the --contents and -S options. This incomplete denylist enables attackers with limited privileges to pass crafted revision arguments to the Repo.blame() function, causing arbitrary file contents to be read and returned. The flaw is due to improper neutralization of argument delimiters, effectively an argument injection vulnerability.
Potential Impact
An attacker with the ability to invoke Repo.blame() can read arbitrary files on the system by exploiting the incomplete denylist, potentially exposing sensitive information. The vulnerability does not require user interaction and has a network attack vector with low attack complexity and no privileges required beyond limited privileges. The impact is high confidentiality impact due to arbitrary file disclosure.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, avoid passing untrusted input to Repo.blame() or restrict usage to trusted users only.
CVE-2026-78678: Improper Neutralization of Argument Delimiters in a Command ('Argument Injection') in gitpython-developers GitPython
Description
GitPython versions before 3.1.59 have an incomplete denylist in the unsafe_git_revision_options guard, which omits the --contents and -S options. This allows attackers to read arbitrary files by passing these options to the Repo.blame() method. By supplying revision values such as --contents=/etc/passwd, attackers can leak file contents through the blame result returned to the caller.
CVSS v4.0
Score 7.1high
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-78678 is a vulnerability in GitPython prior to version 3.1.59 where the unsafe_git_revision_options guard does not block the --contents and -S options. This incomplete denylist enables attackers with limited privileges to pass crafted revision arguments to the Repo.blame() function, causing arbitrary file contents to be read and returned. The flaw is due to improper neutralization of argument delimiters, effectively an argument injection vulnerability.
Potential Impact
An attacker with the ability to invoke Repo.blame() can read arbitrary files on the system by exploiting the incomplete denylist, potentially exposing sensitive information. The vulnerability does not require user interaction and has a network attack vector with low attack complexity and no privileges required beyond limited privileges. The impact is high confidentiality impact due to arbitrary file disclosure.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, avoid passing untrusted input to Repo.blame() or restrict usage to trusted users only.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- VulnCheck
- Date Reserved
- 2026-08-25T01:17:12.262Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a8cf57dacd9273b498428e0
Added to database: 08/25/2026, 01:53:01 UTC
Last enriched: 08/25/2026, 02:07:12 UTC
Last updated: 08/25/2026, 02:12:01 UTC
Views: 4
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.