Path traversal in GitPython - CVE-2026-44243
Published: April 28, 2026
Vulnerability details
The vulnerability allows a local user to write, overwrite, move, or delete files outside the repository's .git directory.
The vulnerability exists due to path traversal in GitPython reference APIs when processing application-controlled reference paths in reference creation, rename, and delete operations. A local user can supply a crafted reference path to write, overwrite, move, or delete files outside the repository's .git directory.
Exploitation requires the ability to influence reference names supplied by the consuming application.
Affected software
Ubuntu
openEuler
python-git (Ubuntu package)
python-GitPython
python-GitPython-help
python3-GitPython
How to mitigate CVE-2026-44243
python-git (Ubuntu package) - addressed in versions 0.3.2~RC1-3ubuntu0.1~esm3, 1.0.1+git137-gc8b8379-2.1ubuntu0.1~esm4, 2.1.8-1ubuntu0.1~esm4, 3.0.7-1ubuntu0.1~esm4, 3.1.24-1ubuntu0.1~esm3, 3.1.37-3ubuntu0.1~esm2, 3.1.46-1ubuntu0.1~esm1
python-GitPython - update to 3.1.49-1
python-GitPython-help - update to 3.1.49-1
python3-GitPython - update to 3.1.49-1