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

Security vulnerability - tempfiles.mktemp #142

Open
claytonparnell opened this issue May 4, 2023 · 1 comment
Open

Security vulnerability - tempfiles.mktemp #142

claytonparnell opened this issue May 4, 2023 · 1 comment

Comments

@claytonparnell
Copy link

Hello, our package sagemaker-python-sdk uses multiprocess, and was flagged for a vulnerability, due to the use of tempfile.mktemp() here and in several other places. You can read more about the vulnerability here. Can you please refactor to avoid this security vulnerability?

Thanks!

@mmckerns
Copy link
Member

mmckerns commented May 5, 2023

@claytonparnell: Not sure if you read our security policy: https://github.com/uqfoundation/.github/blob/main/SECURITY.md

The lines you refer to are exactly the same as is in the stdlib, and if you read the relevant discussion is here:
python/cpython#87770

and here, it suggests that the code is as secure as possible:
python/cpython#86444

Hence, python chose not to change the exact lines in multiprocessing. This will need some forensics.

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

2 participants