Vulnerability record · OpenEuler 24.03-LTS-SP4
An update for python-GitPython is now available for openEuler-24.03-LTS-SP4
OpenEuler 24.03-LTS-SP4
What it fixes
Synopsis:
python-GitPython security updateSummary:
An update for python-GitPython is now available for openEuler-24.03-LTS-SP4Description:
GitPython is a python library used to interact with git repositories, high-level like git-porcelain, or low-level like git-plumbing.
GitPython before 3.1.57 contains an incomplete denylist in the unsafe_git_archive_options guard that omits --add-file and --add-virtual-file options. Attackers can supply these options to Repo.archive() to read arbitrary files from the filesystem and include them in the returned archive.(CVE-2026-73619)
GitPython before 3.1.57 fails to guard git option forwarding in IndexFile.checkout() and TagReference.create(), allowing attackers to pass unsafe options via kwargs. Attackers can use --prefix to overwrite arbitrary files with repository content or -F to read arbitrary files returned in-band.(CVE-2026-73620)
GitPython before 3.1.56 contains an argument injection vulnerability in the Commit.count() method, which forwards keyword arguments to 'git rev-list' without the check_unsafe_options guard present in the sibling iter_items method. An attacker who can control options passed to Commit.count (e.g., via an application that forwards a user-supplied options dict) can supply output=<path>, causing 'git rev-list --output=<path>' to open and truncate the target file to zero bytes before revision parsing. This allows destruction/blanking of an arbitrary file at the process's privilege level (no content control, 0-byte truncation).(CVE-2026-73621)
GitPython before 3.1.55 fails to disable environment variable expansion in Remote.create() and Submodule.add() URL handling, allowing attackers to exfiltrate secrets by supplying URLs containing variable references. Attackers can craft URLs with environment variable tokens that are expanded into .git/config and .gitmodules, then transmitted to attacker-controlled hosts during fetch or pull operations.(CVE-2026-73622)
GitPython before 3.1.54 contains an…
Manual fix · OpenEuler 24.03-LTS-SP4
sudo dnf upgrade python-GitPython python-GitPython-help python3-GitPythonrpm -q python-GitPython python-GitPython-help python3-GitPythonSources