-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Import self version check eagerly in install command to fix ACE #13085
Conversation
Fixes pypa#13079. Signed-off-by: Caleb Brown <calebbrown@google.com>
Signed-off-by: Caleb Brown <calebbrown@google.com>
Signed-off-by: Caleb Brown <calebbrown@google.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it be worth it to include a news entry for this change? Technically this fixes a security vulnerability although I presume it hasn't been used in the wild.
Signed-off-by: Caleb Brown <calebbrown@google.com>
Sure. Added. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for the sluggish progress here.
And that's my first merge! A little scary if I'm being honest, but it does bring me back to the days where I used to maintain black :) |
And duh, I immediately spot a typo after I merge. It should really read ACE (arbitrary code execution), not RCE (remote code execution). 🙃 |
Fixes #13079 by moving the import to the top of the module so that it is imported when
install.py
is imported.Preserve the comment as it is still relevant and add a note about preventing arbitrary code execution.