Visitar URL original
Implement zipfile.Path.is_symlink · Issue #119588 · python/cpython · GitHub
Skip to content

Implement zipfile.Path.is_symlink #119588

Description

@jaraco

In jaraco/zipp#117, I learned that the current implementation of is_symlink might have a security risk if a user is relying on it to ensure that a zipfile has no symlinks before using another tool to extract it.

zipp 3.19.0 adds an implementation for Path.is_symlink to alleviate this risk.

CPython should adopt this change as well, possibly as a security fix.

Linked PRs

Activity

  1. added a commit that references this issue on May 27, 2024
  2. jaraco commented on May 27, 2024

    @jaraco
    MemberAuthor

    The is_symlink was added in Python 3.12 (#102018) (note the backports of that PR only included one bugfix), so this change can be backported to Python 3.12 as a bugfix (no need to flag as a security fix).

  3. added a commit that references this issue on May 27, 2024
  4. added a commit that references this issue on Jun 3, 2024
  5. added a commit that references this issue on Jun 3, 2024
  6. added a commit that references this issue on Jun 3, 2024
  7. added 3 commits that reference this issue on Jun 4, 2024
  8. added a commit that references this issue on Jun 4, 2024
  9. added a commit that references this issue on Jun 4, 2024
  10. added 2 commits that reference this issue on Jun 5, 2024
  11. added 2 commits that reference this issue on Jul 11, 2024
  12. added 2 commits that reference this issue on Jul 17, 2024
  13. hugovk commented on Aug 8, 2024

    @hugovk
    Member

    Triage: closing because the PR has been merged, please re-open if still needed. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions