VDB
Sign up
—

PYSEC-2026-3995

Quick fix

PYSEC-2026-3995 — gitpython: upgrade to the fixed version with the command below.

pip install --upgrade 'gitpython>=3.1.54'

Details

GitPython versions before 3.1.54 contain an arbitrary file overwrite vulnerability in the Diffable.diff method that fails to validate git options passed through kwargs. Attackers can supply the --output argument via the other parameter or output kwarg to write patch content to attacker-chosen file paths at process privilege level.

Are you affected?

Enter the version of the package you're using.

Affected packages

PyPI/gitpython
Introduced in: 0Fixed in: 3.1.54
Fixpip install --upgrade 'gitpython>=3.1.54'

References