[Aikido] Fix 12 security issues in gitpython, urllib3, requests and 1 more#19
Closed
aikido-autofix[bot] wants to merge 1 commit into
Closed
[Aikido] Fix 12 security issues in gitpython, urllib3, requests and 1 more#19aikido-autofix[bot] wants to merge 1 commit into
aikido-autofix[bot] wants to merge 1 commit into
Conversation
Author
|
Closed by Aikido: a new AutoFix has been created → #20 |
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, urllib3, requests, and Pygments to fix critical RCE vulnerabilities via Git hook injection and command execution bypasses. This update includes breaking changes that require manual migration.
Breaking Change: Underscored git kwargs blocked (gitpython 3.1.47)
Where your code is affected:
cruft/_commands/check.pylines 23-24, wherefilter="blob:none"andno_checkout=Trueare passed toget_cookiecutter_repo(), which forwards them toRepo.clone_from().Impact: The
checkcommand will fail when gitpython blocks these underscored kwargs as part of the security fix for GHSA-rpm5-65cw-6hj4. The git clone operation will raise an error about unsafe parameters.Remediation: Replace the underscored kwargs with their non-underscored equivalents or use gitpython's approved API methods. For
filterandno_checkout, check gitpython 3.1.50 documentation for the correct parameter names (likely--filtervia git command options) or refactor to use multi-option syntax that gitpython now requires.All breaking changes by upgrading gitpython from version 3.1.43 to 3.1.50 (CHANGELOG)
shlex, and unsafe underscored git kwargs are blockedAll breaking changes by upgrading requests from version 2.32.3 to 2.33.1 (CHANGELOG)
All breaking changes by upgrading pygments from version 2.18.0 to 2.20.0 (CHANGELOG)
✅ 12 CVEs resolved by this upgrade, including 1 critical 🚨 CVE
This PR will resolve the following CVEs:
extract_zipped_paths()utility function uses predictable filenames when extracting zip archives to the temp directory, allowing local attackers to pre-create malicious files that get loaded instead of legitimate ones, resulting in arbitrary code execution.