Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. GitPython
  4. ›
  5. CVE-2026-78679

CVE-2026-78679: GitPython: TagReference.create positional reference bypasses kwargs-only --file guard, enabling arbitrary file read (incomplete fix of 3af0c251)

September 8, 2026

TagReference.create() forwards a caller-influenced positional reference value into git tag without it ever being inspected by the unsafe-option guard, allowing an arbitrary file read (the file’s contents are returned in-band as the annotated tag message). This is an incomplete-fix bypass of commit 3af0c251 (the fix for GHSA-3f7w-8rr8-f37f’s tag instance).

References

  • github.com/advisories/GHSA-3wxw-xv34-2frg
  • github.com/gitpython-developers/GitPython/commit/1b0d2d9b91575f7db44ef4ff58ac37fc9335e5f6
  • github.com/gitpython-developers/GitPython/pull/2208
  • github.com/gitpython-developers/GitPython/releases/tag/3.1.59
  • github.com/gitpython-developers/GitPython/security/advisories/GHSA-3wxw-xv34-2frg
  • nvd.nist.gov/vuln/detail/CVE-2026-78679
  • www.vulncheck.com/advisories/gitpython-before-arbitrary-file-read-via-tagreference-create

Code Behaviors & Features

Detect and mitigate CVE-2026-78679 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 3.1.59

Fixed versions

  • 3.1.59

Solution

Upgrade to version 3.1.59 or above.

Impact 6.5 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-200: Exposure of Sensitive Information to an Unauthorized Actor
  • CWE-88: Improper Neutralization of Argument Delimiters in a Command ('Argument Injection')

Source file

pypi/GitPython/CVE-2026-78679.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 09 Sep 2026 12:22:01 +0000.