Security mailing lists by PureSourceCode

CVE-2026-78678

HIGH 7.1CVSS 4.0

GitPython: Incomplete unsafe_git_revision_options denylist omits --contents/-S, enabling arbitrary file read via Repo.blame()

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.

Published
25 Aug 2026
Last modified
12 Oct 2026
Assigned by
disclosure@vulncheck.com
NVD status
Analyzed
Weakness
CWE-200CWE-88
Also known as
GHSA-5xxx-qhh7-9287PYSEC-2026-3788
Sources
NVDJSONOSV GHSA-5xxx-qhh7-9287JSONOSV PYSEC-2026-3788JSON

Scores

SourceScored byVersionScoreVector / decision
NVD disclosure@vulncheck.com (Secondary) CVSS 4.0 HIGH 7.1 CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
OSV PyPA CVSS 4.0 CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
NVD disclosure@vulncheck.com (Secondary) CVSS 3.1 MEDIUM 6.5 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
OSV GitHub CVSS 3.1 MEDIUM 6.5 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD gitpython_project gitpython
cpe:2.3:a:gitpython_project:gitpython:*:*:*:*:*:python:*:*
< 3.1.59 3.1.59
OSV PyPI gitpython < 3.1.59 3.1.59

References

History

  • 25 Nov 2026 21:05 UTC · NVD: first stored (published 25 Aug 2026)
  • 25 Nov 2026 20:12 UTC · OSV: first stored (published 25 Aug 2026)
  • 25 Nov 2026 20:11 UTC · OSV: first stored (published 8 Sep 2026)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.