CVE-2026-44243 PUBLISHED

GitPython: Path traversal in GitPython reference APIs allows arbitrary file write and delete outside the repository

Assigner: GitHub_M
Reserved: 05.05.2026 Published: 07.05.2026 Updated: 07.05.2026

GitPython is a python library used to interact with Git repositories. Prior to version 3.1.48, a vulnerability in GitPython allows attackers who can supply a crafted reference path to an application using GitPython to write, overwrite, move, or delete files outside the repository’s .git directory via insufficient validation of reference paths in reference creation, rename, and delete operations. This issue has been patched in version 3.1.48.

Metrics

CVSS Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N/E:P
CVSS Score: 7.8

Product Status

Vendor gitpython-developers
Product GitPython
Versions
  • Version < 3.1.48 is affected

References

Problem Types

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') CWE