Skip to content

Use filter arg in tarfile.extractall to prevent unsafe unarchival operations#2722

Merged
thehomebrewnerd merged 4 commits intomainfrom
read-entityset-improvement
May 10, 2024
Merged

Use filter arg in tarfile.extractall to prevent unsafe unarchival operations#2722
thehomebrewnerd merged 4 commits intomainfrom
read-entityset-improvement

Conversation

@thehomebrewnerd
Copy link
Contributor

@thehomebrewnerd thehomebrewnerd commented May 9, 2024

Closes #2723

The filter argument was added in these Python versions: 3.9.17, 3.10.12, 3.11.4, 3.12.0. If the user is running an older Python version an error will be thrown and they will need to upgrade to one of these patch releases (or newer) to extract the archive.

Copy link
Contributor

@jeremyliweishih jeremyliweishih left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@thehomebrewnerd thehomebrewnerd merged commit 5b37bd8 into main May 10, 2024
@thehomebrewnerd thehomebrewnerd deleted the read-entityset-improvement branch May 10, 2024 14:59
@thehomebrewnerd thehomebrewnerd mentioned this pull request May 14, 2024
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.

Add filter arg to tarfile.extractall call to safely deserialize entitysets

2 participants