Skip to content

shutil.unpack_archive(): security concerns not documented #64948

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

Closed
jwilk mannequin opened this issue Feb 23, 2014 · 4 comments
Closed

shutil.unpack_archive(): security concerns not documented #64948

jwilk mannequin opened this issue Feb 23, 2014 · 4 comments
Labels
3.9 only security fixes 3.10 only security fixes 3.11 only security fixes docs Documentation in the Doc dir easy type-bug An unexpected behavior, bug, or error

Comments

@jwilk
Copy link
Mannequin

jwilk mannequin commented Feb 23, 2014

BPO 20749
Nosy @jwilk, @ned-deily, @swenson
PRs
  • bpo-20749: Copy security warning to shutil #29184
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = None
    created_at = <Date 2014-02-23.21:13:37.938>
    labels = ['easy', 'type-bug', '3.9', '3.10', '3.11', 'docs']
    title = 'shutil.unpack_archive(): security concerns not documented'
    updated_at = <Date 2021-10-23.02:13:01.873>
    user = 'https://github.com/jwilk'

    bugs.python.org fields:

    activity = <Date 2021-10-23.02:13:01.873>
    actor = 'swenson'
    assignee = 'docs@python'
    closed = False
    closed_date = None
    closer = None
    components = ['Documentation']
    creation = <Date 2014-02-23.21:13:37.938>
    creator = 'jwilk'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 20749
    keywords = ['patch', 'easy', 'newcomer friendly']
    message_count = 3.0
    messages = ['212029', '242454', '394170']
    nosy_count = 4.0
    nosy_names = ['jwilk', 'ned.deily', 'docs@python', 'swenson']
    pr_nums = ['29184']
    priority = 'normal'
    resolution = None
    stage = 'patch review'
    status = 'open'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue20749'
    versions = ['Python 3.9', 'Python 3.10', 'Python 3.11']

    @jwilk
    Copy link
    Mannequin Author

    jwilk mannequin commented Feb 23, 2014

    shutil.unpack_archive() uses tarfile.extractall() under the hood, so it's not suitable for unpacking untrusted archives. But this fact is not documented.

    Please add a security warning to shutil.unpack_archive() documentation.

    @jwilk jwilk mannequin assigned docspython Feb 23, 2014
    @jwilk jwilk mannequin added the docs Documentation in the Doc dir label Feb 23, 2014
    @pitrou pitrou added the type-bug An unexpected behavior, bug, or error label Feb 24, 2014
    @BreamoreBoy
    Copy link
    Mannequin

    BreamoreBoy mannequin commented May 3, 2015

    If there is an agreed standard for security warnings I'll prepare a patch for this.

    @ned-deily
    Copy link
    Member

    @ned-deily ned-deily added easy 3.9 only security fixes 3.10 only security fixes 3.11 only security fixes labels May 21, 2021
    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    @jwilk
    Copy link

    jwilk commented Jul 18, 2022

    Fixed by GH-91844.

    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    3.9 only security fixes 3.10 only security fixes 3.11 only security fixes docs Documentation in the Doc dir easy type-bug An unexpected behavior, bug, or error
    Projects
    None yet
    Development

    No branches or pull requests

    4 participants