Skip to content
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

Make CVE-2020-8131 mitigation opt-in #8008

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rajivshah3
Copy link

Summary

After reading through the HackerOne report and corresponding PR, it looks like this mitigation was intended to prevent arbitrary file writes when --ignore-scripts is passed. However, this mitigation was used even when --ignore-scripts is not enabled and can break the installation of packages that have hard/symbolic links inside their own directories (see #7890). This PR enables the behavior only when --ignore-scripts is passed.

Fixes #7890

Test plan

Tested with packages mentioned in #7890 (e.g. lz4)

@rajivshah3
Copy link
Author

@arcanis would you be able to review this when you get a chance?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

v1.22.0: package with hard link fails to install
1 participant