[Aikido] Fix security issue in gitpython via minor version upgrade from 3.1.57 to 3.1.60 - #21
Closed
aikido-autofix[bot] wants to merge 1 commit into
Closed
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. |
Author
|
Closed by Aikido: a new AutoFix has been created → #22 |
aikido-autofix
Bot
deleted the
fix/aikido-security-update-packages-99490324-sf3s
branch
September 3, 2026 02:24
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 critical RCE vulnerability in GitConfigParser that allows arbitrary code execution through malicious git config injection via unquoted multi-line values.
✅ 7 CVEs resolved by this upgrade, including 1 critical 🚨 CVE
This PR will resolve the following CVEs:
core.hooksPathand execute arbitrary code through git hooks when writing config files.IndexFile.remove()andHead.checkout()methods that forward unsanitized kwargs to git commands, allowing attackers to read arbitrary files via--pathspec-from-fileand--pathspec-file-nuloptions with file contents returned in error messages.IndexFile.from_tree,reset, andmerge_treefail to sanitize caller-controlled treeish arguments passed togit read-tree, allowing injection of--index-outputto overwrite arbitrary files with git-index blobs. This enables arbitrary file destruction/corruption at process privileges.Repo.init()passes unsanitized kwargs togit init, allowing an attacker to inject--templateparameter that plants malicious git hooks for arbitrary code execution on the next git operation.=,#,;,[,], whitespace), allowing attackers to inject arbitrary git-config directives by embedding these characters in option names. This enables remote code execution viacore.sshCommandorcore.hooksPathwhen an application forwards attacker-controlled option names to the config writer.split_single_char_options=False, causing the security check to miss the smuggled option whiletransform_kwargemits a joined token that git parses as--upload-pack=<cmd>. This incomplete fix of a prior vulnerability affects all guarded methods at the defaultallow_unsafe_options=Falsesetting.🔗 Related Tasks
🤖 Remediation details
Fix critical and low-severity vulnerabilities in
gitpythonThis PR remediates multiple security vulnerabilities in the
gitpythonpackage (one critical, six low/medium severity). The fix updates the declared lower-bound constraint in the rootpyproject.tomland refreshesuv.lockto resolve a patched version.gitpython
gitpythonis a direct dependency declared in the rootpyproject.tomlunderproject.dependencieswith a>=range spec. The lower bound was raised from>=3.1.55to>=3.1.59to enforce a minimum patched version, closing one critical vulnerability (AIKIDO-2026-650426, affectinggitpython>=0.1.7 <=3.1.58) and six additional GHSA advisories (all patched at 3.1.58). Runninguv lock --upgrade-package gitpythonresolved the lockfile to 3.1.60, the latest available release satisfying the updated constraint and all patched-version requirements.Version changes
gitpython>=3.1.55(resolved:3.1.57)>=3.1.59(resolved:3.1.60)