Live threats

All CVEs / gitpython-developers

CVE-2026-110858gitpython-developers GitPython

Remote Code Execution in GitPython via refspec in Remote.pull()

Critical 9.2 No auth needed

Priority
70
CVSS 4.0
9.2
EPSS
—
Auth required
No
Published
Oct 14, 2026
Updated
Oct 16, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-88
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: total
Vector
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/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

What happens

GitPython versions 3.1.30 through 3.1.x contains a remote code execution vulnerability in the Remote.pull() method. An attacker controlling the refspec parameter can inject OS commands via --upload-pack=<command> on local-path or SSH transports without authentication.

Show the original NVD text

GitPython from 3.1.30 before 3.2.0 contains a remote code execution vulnerability in Remote.pull() whose unsafe-option guard inspects only keyword arguments, not the positional refspec. Attackers controlling the refspec can supply --upload-pack=<command> to execute OS commands as the calling process over local-path or SSH transports.

Source text, unmodified. NVD.

What to do

Patch available · fixed versions: 3.2.0

Update GitPython to version 3.2.0 or later to apply the security patch.

Vendor advisory · github.com ↗

  1. Apply the vendor's security update for GitPython.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI gitpython ≥ 3.1.30 < 3.2.0 3.2.0 pip install "gitpython>=3.2.0"

Per OSV / GitHub Advisories (GHSA-f9j4-qggq-h239). Check the version in your lockfile before upgrading.

Affected products

As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.

Official advisories

Also: Red Hat (+4)

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.