Skip to main content
HIGH

CVE-2026-78677

GitPython before 3.1.59 Path Traversal via separate-git-dir

CVSS v3

7.5

HIGH

EPSS Score

0.7 %

exploit probability, as of 2026-10-19

CISA KEV

No

known exploited

Exploitation

—

SSVC status

Get an alert for each new CVE published for gitpython.

Set up CVE WatchFree account · no credit card

Affected and fixed versions

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • gitpythonPyPIall versions · fixed in 3.1.59

Vendor advisories

  • CVE-2026-78677 Red Hat Product Security26 products fixed · 47 known affected

    GitPython: GitPython: Arbitrary Code Execution via Path Traversal

    exploit-intelligence/vulnerability-analysis-rhel9 as a component of Exploit Intelligence · rhaiis/vllm-cpu-rhel9 as a component of Red Hat AI Inference Server · rhaiis/vllm-tpu-rhel9 as a component of Red Hat AI Inference Server

  • RHSA-2026:84734 Red Hat Product Security16 products fixed

    Red Hat Security Advisory: RHOAI 3.4.5 - Red Hat OpenShift AI

  • RHSA-2026:79380 Red Hat Product Security1 product fixed

    Red Hat Security Advisory: satellite/iop-vulnerability-engine-rhel9 container image available as a Technology Preview

  • RHSA-2026:79376 Red Hat Product Security1 product fixed

    Red Hat Security Advisory: Technical preview of the satellite/iop-vmaas-rhel9 container image

  • RHSA-2026:79373 Red Hat Product Security1 product fixed

    Red Hat Security Advisory: satellite/iop-vulnerability-engine-rhel9 container image available as a Technology Preview

  • RHSA-2026:79372 Red Hat Product Security1 product fixed

    Red Hat Security Advisory: Technical preview of the satellite/iop-vmaas-rhel9 container image

2 more advisories

Full record on NVD

Description

GitPython before 3.1.59 omits --separate-git-dir from unsafe_git_clone_options, allowing attackers to create arbitrary git directories outside the intended clone destination. Attackers can pass a separate_git_dir parameter to Repo.clone_from() or Repo.clone() to redirect repository metadata to an attacker-controlled filesystem path, enabling arbitrary directory creation and potential hook execution.

Technical details

CVSS v3 Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Published
2026-08-25
Last Modified
2026-08-25

Frequently asked questions

What is CVE-2026-78677?

GitPython before 3.1.59 omits --separate-git-dir from unsafe_git_clone_options, allowing attackers to create arbitrary git directories outside the intended clone destination. Attackers can pass a separate_git_dir parameter to Repo.clone_from() or Repo.clone() to redirect repository metadata to an attacker-controlled filesystem path, enabling arbitrary directory creation and potential hook execution.

Is CVE-2026-78677 actively exploited?

Active exploitation of CVE-2026-78677 has not been confirmed. Its EPSS score was 0.7% on 2026-10-19, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2026-78677?

CVE-2026-78677 has a CVSS v3 base score of 7.5 (HIGH severity), with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N.

Running gitpython? Hear about its next vulnerability

CVE Watch matches each new CVE to the vendors and products you list (vendor and product, not the version) and puts it in your alerts with its KEV and EPSS status.

Already have an account? Open CVE WatchNo credit card required · No monthly cap on website lookups · 250 API requests/month