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

Investigate potential issue reported by bandit #694

Open
enzbang opened this issue Mar 20, 2024 · 1 comment
Open

Investigate potential issue reported by bandit #694

enzbang opened this issue Mar 20, 2024 · 1 comment

Comments

@enzbang
Copy link
Member

enzbang commented Mar 20, 2024

See https://bandit.readthedocs.io/en/1.7.8/plugins/b202_tarfile_unsafe_members.html

@enzbang
Copy link
Member Author

enzbang commented Jul 9, 2024

One simple fix starting with Python 3.12 would be to use the extraction filter "data". This will be the default in Python 3.14.

The question is whether we need to make it configurable or not. Do we have legitimate use case of a different extraction filter?

See https://docs.python.org/3/library/tarfile.html#tarfile-extraction-filter

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

No branches or pull requests

1 participant