[Aikido] Fix security issue in gitpython via minor version upgrade from 3.1.50 to 3.1.58 - #18
Closed
aikido-autofix[bot] wants to merge 1 commit into
Closed
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. |
aikido-autofix
Bot
force-pushed
the
fix/aikido-security-update-packages-81313245-hxrb
branch
from
August 6, 2026 00:35
e66b026 to
46b393b
Compare
Author
|
Closed by Aikido: the vulnerabilities are already resolved. |
aikido-autofix
Bot
deleted the
fix/aikido-security-update-packages-81313245-hxrb
branch
August 7, 2026 01:10
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Upgrade GitPython to fix arbitrary file read/write and command injection vulnerabilities (RCE, file overwrite, file read) in checkout, tag creation, and archive operations.
✅ 3 CVEs resolved by this upgrade
This PR will resolve the following CVEs:
IndexFile.checkout()with--prefixand arbitrary file read viaTagReference.create()with-F. Both vulnerabilities enable attackers to read/write files at process privileges by controlling repository content.Repo.archive()denylist is incomplete, missing--add-fileand--add-virtual-fileoptions, allowing arbitrary file read and content injection into archives. An attacker can exfiltrate files from the system or inject malicious content into repository archives when caller-controlled options are passed to the method.Commit.count()allows arbitrary file truncation via theoutputparameter passed togit rev-list, enabling attackers to destroy or blank files at process privilege level.🤖 Remediation details
Fix gitpython vulnerabilities by raising minimum version floor
This PR remediates three security vulnerabilities in gitpython by updating its declared lower-bound constraint in the root
pyproject.tomland refreshinguv.lockto resolve a patched version.gitpython
gitpythonis a direct dependency declared inpyproject.tomlunder[project].dependencies. The previous lower bound of>=3.1.55still permitted vulnerable releases; this PR raises it to>=3.1.57, the minimum version that patches all three reported advisories (GHSA-3f7w-8rr8-f37f, GHSA-539m-9xh6-q6rr, and GHSA-p538-c434-8v24). Runninguv lock --upgrade-package gitpythonafter the spec change caused the resolver to select3.1.58, the latest available release, which satisfies every patched-version requirement.Version changes
>=3.1.55(resolved3.1.57)>=3.1.57(resolved3.1.58)